I have a datagrid in page1.aspx
I would like, when the user clicks on the Edit button
(<asp:EditCommandColumn for ex.), to redirect him to the page2.aspx with the
value of the first column passed as a parameter (equivalent of POST method
in ASP, Request.Form in page2.aspx...).
I know the datagrid as to be located in a FORM with runat=SERVER ; so,
anything i write in the *action=* (page2.aspx.....) in the FORM is ignored.
How can i do this in ASP.Net. It was simple in ASP= ? I must be wrong in my
way of thinking.
Sebastien Bovo Microsoft France ---------- Ce message est fourni en l'état, sans garantie d'aucune sorte, et ne vous confère aucun droit. Vous assumez tous les risques liés à son utilisation.
"Lionel" wrote in message news:
Hi,
I have a datagrid in page1.aspx I would like, when the user clicks on the Edit button (<asp:EditCommandColumn for ex.), to redirect him to the page2.aspx with the value of the first column passed as a parameter (equivalent of POST method in ASP, Request.Form in page2.aspx...). I know the datagrid as to be located in a FORM with runat=SERVER ; so, anything i write in the *action=* (page2.aspx.....) in the FORM is ignored.
How can i do this in ASP.Net. It was simple in ASP= ? I must be wrong in my way of thinking.
Thanks.
Hello,
ASP.NET does not allow to post the form on another Webform. You should
examine working with a unique page and then use on server side :
Sebastien Bovo
Microsoft France
----------
Ce message est fourni en l'état, sans garantie d'aucune sorte, et ne vous
confère aucun droit. Vous assumez tous les risques liés à son utilisation.
"Lionel" <nospam@org.org> wrote in message
news:Ofp32bv9EHA.3472@TK2MSFTNGP14.phx.gbl...
Hi,
I have a datagrid in page1.aspx
I would like, when the user clicks on the Edit button
(<asp:EditCommandColumn for ex.), to redirect him to the page2.aspx with
the
value of the first column passed as a parameter (equivalent of POST method
in ASP, Request.Form in page2.aspx...).
I know the datagrid as to be located in a FORM with runat=SERVER ; so,
anything i write in the *action=* (page2.aspx.....) in the FORM is
ignored.
How can i do this in ASP.Net. It was simple in ASP= ? I must be wrong in
my
way of thinking.
Sebastien Bovo Microsoft France ---------- Ce message est fourni en l'état, sans garantie d'aucune sorte, et ne vous confère aucun droit. Vous assumez tous les risques liés à son utilisation.
"Lionel" wrote in message news:
Hi,
I have a datagrid in page1.aspx I would like, when the user clicks on the Edit button (<asp:EditCommandColumn for ex.), to redirect him to the page2.aspx with the value of the first column passed as a parameter (equivalent of POST method in ASP, Request.Form in page2.aspx...). I know the datagrid as to be located in a FORM with runat=SERVER ; so, anything i write in the *action=* (page2.aspx.....) in the FORM is ignored.
How can i do this in ASP.Net. It was simple in ASP= ? I must be wrong in my way of thinking.