"If at first you don't succeed; call it version 1.0" :-Unknown

Pages

Saturday, March 19, 2011

FindControl On javascript

hi *.*,
ha ha it's sounds funny na... last day i tried it's worked i can't believe. ho ho 
here it's go...

    <script language="javascript">
       
function myfunction(val) {
            document
.getElementById('<%= this.Master.FindControl("Contentid").FindControl("ASP-Control-Id") .ClientID %>').value = val;
       
}
   
</script> 

i have no idea that it will work when this logic comes to mind, anyway implement that 'n it clicked :) 
Cheers to life...Stay Tune.... 

Have a nice day... 'N happy Coding :)

No comments: