asp.net - How to know that we come to a page after redirecting from another page -
I am using a single page for two different purposes, by default it is a behavior and one After being redirected through the link button, it has a different behavior when it comes to the same page, such as changing the master page etc ...
How can I locate it and change behavior accordingly Can i
If you have a page with two different behaviors, then I would suggest that you Query string parameters to differentiate between two objectives (like somepage.aspx? Mode = changeMaster) After this you can check this value and change your behavior accordingly.
If you are treating from one place to another, then perhaps its easiest process, instead of requiring mode parameters, you will have to change all your links on the page, just a link button). It will be more reliable than relying on the referer and other such things which are not always sent.
Comments
Post a Comment