I'm using ajax so I can load the content of the page two on the page one . I'm doing this with javascript code (cannot user UpdatePanel) . The problem is : I need to execute some c# code , and ONLY AFTER that , execute the javascript code to open the page . But when the javascript is executed , the page had postback , which means the page one is gone . So , I REALLY need to stop the postback . Any ideas ?
Thanks in advance .
can't you use a page method web service and call that to execute your c# code - that will return you to your javascript.
not really got what u mean by stopping postback...
u are able to handle postbacks
if (Page.IsPostBack)
{
//ur c# code here
//and after u are done with c# call/exec js
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With