Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Action
Message
 
To
24/10/2002 16:21:30
General information
Forum:
ASP.NET
Category:
Other
Title:
Re: Action
Miscellaneous
Thread ID:
00715138
Message ID:
00715868
Views:
11
>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.
------------------
Jose Marcenaro
Tercer Planeta - Argentina
http://www.tercerplaneta.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform