I would suggest to go through an article:
http://www.c-sharpcorner.c
OnClientClick is available in ASP.NET 2.x onwards, Incase if you are trying to do in ASP.NET 1.x, you have to use following syntax in Page_Load or Prerender
<YourControl>.Attributes.A
To fire Javascript functin on button click:
btnaddheader.Attributes.Ad
In Validate function, you can validate input values on your form and return true or false to postback or not.
Let us know if you need more help.
MaulikCE
Main Topics
Browse All Topics





by: JR2003Posted on 2007-06-30 at 03:50:51ID: 19395445
in the aspx page you can set the OnClientClick property to some Java script