>Hello everybody. The below code statement is in javascript.
>
>document.Form1.action = "
http://csnmxirt01:81/supplies/Orders2.aspx?SubmitClicked=1"
>
>Can anyone tell me the equivalent to this statement that would go in the code behind? The code behind is VB.NET code. Thanks for the help.
Hi Randy.
In a normal Web Form page (which contains the <asp:form> tag) you dont have programatic control over the generated "action" attribute because it should allways target the same page. That allows the postback events to work. In these cases, when you want to transfer control -after validating the user input-, you should rather call Response.Redirect or Server.Transfer
Regards
Jose.