View Single Post
  #3 (permalink)  
Old January 27th, 2004, 01:20 AM
dati dati is offline
Registered User
 
Join Date: Jan 2004
Location: , NSW, Australia.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to dati
Default

Hi Hovik Melkomian,

The reason why the runat="server" attribute is not set on the form because asp.net "automatically" create the action attribute within the Page1.aspx which stop me from moving to another page (Page2.aspx).

I select View Source when Page1.aspx is loaded with <form runat="server"
Code:
<form name="_ctl0" method="post" action="Page1.aspx" id="_ctl0">
<input type="hidden" name="__VIEWSTATE" value="dDwxOTg4MTk0Mzc2O3Q8O2w8aTwxPjs++==" />
My Question is can this be done without specifying runat="server" in the form section, if not how to pass data from page1.aspx to page2.aspx?

Code:
<form action="Page2.aspx" method="Post">
     <asp:Textbox runat="server">
</form>
Thank your for your reply.

Regards Dat