get form value from another page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mentor
    New Member
    • Mar 2007
    • 24

    get form value from another page

    in first page,
    [HTML]<form id="form1" runat="server" action="page2.a spx">
    <TEXTAREA id="txt1" runat=server></TEXTAREA>
    <INPUT type=submit value=submit name=rev_submit >[/HTML]
    in second page(c#)
    Code:
     string str = Request.Form["txt1"];
    In this way, data can be posted to second page. But I found when the first page is posted back, the content in browser is still that of first page, not second page.

    How to jump to page2.aspx, while using the data in fomr1 posted back ?
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    You could it the old fashion way, steal oops I mean, use the post method in the scripts objRequest.Meth od = "POST";. HTH.

    Comment

    Working...