Last post Jul 28, 2011 01:24 AM by kamalchhabra
Jul 26, 2011 10:59 PM|vks|LINK
I have 2 forms in Asp.Net application. Form1.aspx has 2 buttons. When the page is transferred to form2.aspx,
in the page_load of form2.aspx can we know whether this transfer becoz of button1 or button2 of form1.
button1 and button2 transfer different parameter values.
Jul 26, 2011 11:11 PM|senthilwaits|LINK
If you are using Response.Redirect, you can append some dummy query string to the URL and identify which control caused the postback.
Jul 27, 2011 09:53 AM|msdnphani|LINK
if u think,query strings would compromise on security, u can set a session value in either of button clicks
and nullify in the next page after detecting the corresponding button clicked ..
Jul 28, 2011 01:24 AM|kamalchhabra|LINK
Thanks For Reply ....It's a Perfect Solution......