I have created a web application in which there are two menus which load the same page. I need to check a condition in the page so that I can load different data based on the variable passed to this page. However, I don’t want to use a query string, since that would require using a different URL, which would interfere with SEO.
Is there a way to do this without using query strings or session data? I need to pass different values on clicking different links in the master page.
Using the reference in the PreviousPage property, you can search for controls on the source page and extract their value. You typically do this with the FindControl method.
use PreviousPage.FindControl(“yourcontrolname”)
these link may help you
How to: Pass Values Between ASP.NET Web Pages
PreviousPage Property