Click here to Skip to main content
Rate this: bad
good
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
(unknown member)
Comments
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)

  Print Answers RSS
0 DamithSL 320
1 Sergey Alexandrovich Kryukov 222
2 OriginalGriff 155
3 Peter Leow 115
4 Afzaal Ahmad Zeeshan 114
0 OriginalGriff 7,510
1 DamithSL 5,519
2 Sergey Alexandrovich Kryukov 5,044
3 Maciej Los 4,961
4 Kornfeld Eliyahu Peter 4,514


Advertise | Privacy | Mobile
Web01 | 2.8.141223.1 | Last Updated 8 Nov 2012
Copyright © CodeProject, 1999-2014
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