Click here to Skip to main content
15,896,154 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a modal popup,on submit button click am refreshing parent page using parent.document.forms[0].submit(),

How to detect , this particular statement caused postback in parent page, without setting/getting hidden variables and checking them, I just want to confirm that this caused the parent page postback with some other stuff like SENDER/EVENTARGS or something else, moreover I have to check this in is postback of parent page itself.
Posted
Comments
[no name] 8-Nov-12 23:32pm    
string strTrigger = Request.Form["__EVENTTARGET"];

returns empty string
[no name] 8-Nov-12 23:33pm    
Even this:
string ctrlname = Page.Request.Params.Get("__EVENTTARGET");

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900