Click here to Skip to main content
11,432,627 members (61,108 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C# ASP.NET
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 8-Nov-12 18:25pm
shabari7 at 8-Nov-12 23:32pm
string strTrigger = Request.Form["__EVENTTARGET"];

returns empty string
shabari7 at 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)

Advertise | Privacy | Mobile
Web02 | 2.8.150428.2 | Last Updated 8 Nov 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100