Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: .NET2.0 C#2.0 ASP.NET
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 28-Dec-11 1:11am
Edited 28-Dec-11 3:11am
v2
Comments
koolprasad2003 at 28-Dec-11 6:14am
   
please explain more
RaviRanjankr at 28-Dec-11 8:12am
   
[Edited]pre tag is removed from normal texts[/Edited]
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

then that code u placed in
if(!isPostback)
{
  //your code here
}
hope it will work
try out.
  Permalink  
v2
Comments
RaisKazi at 28-Dec-11 8:08am
   
Edited: Added "pre" tag.
RaviRanjankr at 28-Dec-11 8:13am
   
Please avoid of using short text words like u instead of using 'You'
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

If it's a javascript method, you want to do something like this in your web page:
 
<body onload="onclientclick()">
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

call javascript function at onload event of body. try this.
  Permalink  

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



Advertise | Privacy | Mobile
Web01 | 2.8.1411022.1 | Last Updated 28 Dec 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100