Click here to Skip to main content
15,867,686 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi i have a server side checkbox that in onclientclick event enable or disable an client side image button with javascript.now I want to call this function in first load ?
Posted
Updated 28-Dec-11 2:11am
v2
Comments
koolprasad2003 28-Dec-11 6:14am    
please explain more
RaviRanjanKr 28-Dec-11 8:12am    
[Edited]pre tag is removed from normal texts[/Edited]

then that code u placed in
C#
if(!isPostback)
{
  //your code here
}
hope it will work
try out.
 
Share this answer
 
v2
Comments
RaisKazi 28-Dec-11 8:08am    
Edited: Added "pre" tag.
RaviRanjanKr 28-Dec-11 8:13am    
Please avoid of using short text words like u instead of using 'You'
If it's a javascript method, you want to do something like this in your web page:

HTML
<body onload="onclientclick()">
 
Share this answer
 
call javascript function at onload event of body. try this.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900