How to implement back functionality in a asp.net web page? -
I have a page that has different buttons to load different pages. In that panel I have two buttons "Search Products" and one "Add Product". When I click on Add Product, this page is loaded on this page, on this page I have a button that takes me back to the Search Product page, now I want to know somehow that this page (Search Product) has been opened with Add Product Cause, then enable some buttons on the Search Products page, and if I click the Panels button to go directly to the search page then I do not want to enable those buttons. Ta said.
I did not find anything, please help me with anyone.
You can use the value in context to achieve it. Add it before going from the current page to the goal page
context.Items ["PageOpener"] = "AddProduct.aspx";
Check whether this reference is null or not in the target page. If this is empty the page is not loaded from the first page.
It can be used when you are doing the server. Transfer from page.
Comments
Post a Comment