c# - How to get a previous page value -
Using C #,
I have to get a value from the previous page.
For example,
I have a text box value like "apples" in page A, I want to get the same value in Page B
< / Pre>Page One Code.
& lt; "Href = And added lt; / A & gt;
The above code is adding page B to page B
How to obtain a value page A textbox value in the page page
Help
Why not just open the pageB.aspx in your call as the parameter value Do you pass?
& lt; A href = "javascript: void (0)" onclick = "window.open ('pageB.aspx? Param =' + document.getElementById ('text boxfreempage'). Value, 'add', 'width = 700, height = 400 ') "& gt; And added lt; / A & gt;
this pageB.aspx? Param = Apple will generate the URL of
. After that, behind the page B.aspx code, you can access that value by using the request ("param")
call.
Comments
Post a Comment