PostBack on Posted Page

  • Thread starter Thread starter M F
  • Start date Start date
M

M F

In my code, I used javascript to update the action value in the form
and post it to another aspx page. But the second aspx page is taking
it as a postback event and running the form submittal and validation.
How can I stop the postback!!

Mark
 
Let the first page submit to itself and then on its postback use
server.transfer to pass the execution (and form values) over to the second
page.
 
M F said:
In my code, I used javascript to update the action value in the form
and post it to another aspx page. But the second aspx page is taking
it as a postback event and running the form submittal and validation.
How can I stop the postback!!

You can't. ASP.NET wants you to _always_ post BACK to the same form. Once
you get there, you can decide to use Response.Redirect or Server.Transfer to
go to a different page.
 
Back
Top