form Submittion problem ?

Results 1 to 2 of 2

Thread: form Submittion problem ?

  1. #1
    Join Date
    Dec 1969

    Default form Submittion problem ?

    Hi, <BR><BR>i have two pages p1.aspx and p2.aspx. i have some fields on p1.aspx file and a submit button. when i click submit button, my control is transferred to p2.aspx file which shows all the form fields of p1.aspx file. <BR><BR>Now the problem is that with submit button click, my control is transferred to p2.aspx BUT on internet explorer address bar it shows p1.aspx. <BR><BR>can anyone tell me why it doesnt change even though i m transfered to p2.aspx. and also how to solve it. <BR><BR>i am using the following code for submission on p1.aspx file. <BR><BR><BR>Sub Page_Transfer(sender As Object, e As EventArgs)<BR><BR> Server.Transfer("p2.aspx")<BR><BR>End sub<BR><BR>Thanks in advance.

  2. #2
    Join Date
    Dec 1969

    Default RE: form Submittion problem ?

    In simple terms, it&#039;s because that&#039;s how Server.Transfer works. If you want p2.aspx to appear in the address bar, you can either change the Server.Transfer to Response.Redirect, or take runat="server" out of the form tag, and set the action attribute to p2.aspx

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts