Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Action
Message
 
À
24/10/2002 16:21:30
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Re: Action
Divers
Thread ID:
00715138
Message ID:
00715868
Vues:
12
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform