form submit using javascript
ASP.NET
3
Posts
3
Posters
0
Views
1
Watching
-
hi I am using a button in asp.net 2.0 ,, i have to submit the form in javascript , called by the onclick event of the button
You could do something like this.
Response.Write("function doSubmit(){var form = getElementById('" + AspButton.ClientID + "'); form.submit(); }");
This will first get the form object and then call the submit() function on it. Assign a call to this funtion on the buttons onClick event and you are home free.
Kind Regards, John Petersen
-
hi I am using a button in asp.net 2.0 ,, i have to submit the form in javascript , called by the onclick event of the button