Click here to Skip to main content
12,898,516 members (59,776 online)
Rate this:
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 17:25pm
shabari7 8-Nov-12 23:32pm
string strTrigger = Request.Form["__EVENTTARGET"];

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

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170424.1 | Last Updated 8 Nov 2012
Copyright © CodeProject, 1999-2017
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