but it gives error:An unhandled exception of type 'System.StackOverflowException' occurred in httpretrivalpage.dll
Because I'm submiting to the same page.
Any ideas?
Is there is a way to call client side Javascript from ASP.NET?
Umm...what function does submitting a form to itself once it's already on the server serve? You already have all the information from the client in that instance of that page.
I can't think of a case where I'd need to do what you're asking. JavaScript runs on the client. If you want a script to run when the server is done processing and the page is served back to the user, then use the "RegisterStartupScript" method.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.