Search code examples
c#asp.netmaster-pageslinkbutton

linkbutton open new page and pass value without using query string and session


I'm working the linkbutton in a nested masterpage and want to pass a value to a new page .

What I want to do is once I click the link button. a new page will be open and keep the current page. in the same time, i can pass a value to the new open page.

how can I do without using Query String and session?

Thanks


Solution

  • If you have control over the HTML of the new page, you can include a hidden input field:

    <input type="hidden" name="fieldname" value="your value">