xsrkmooedr
New Member
I have created a simple form with some server controls <BR>embedded in it. I want to POST the form into another aspx <BR>page, how do i to it. <BR>I tried using AutoPostBack="false" for the server controls, but it doesnt work.<BR>Any help in this area would be great...<BR><BR>This is my form tag.<BR><form action="idoc.aspx" runat="server"><BR><asp
ropDownList id="NoOfCopies" runat="server" AutoPostBack=False><BR><asp:ListItem>1 </asp:ListItem><BR><asp:ListItem>2 </asp:ListItem><BR><asp:ListItem>3 </asp:ListItem><BR><asp:ListItem>4 </asp:ListItem><BR><asp:ListItem>5 </asp:ListItem><BR></asp
ropDownList><BR><input type="SUBMIT" value=http://aspmessageboard.com/archive/index.php/"Print Document" runat=server><BR></form><BR><BR><BR><BR>You can post the request back to the original page and use the Server.Transfer method to forward to the second ASPX page, then, in the second aspx page, get the value back using the Context.Handler<BR><BR>so in your print document event handler of the first aspx page:<BR>public void PrintDocument_Click (object sender, EventArgs e) {<BR> Server.Transfer("second.aspx");<BR>}<BR><BR>Then in second.aspx, you can get the value of the controls in first page:<BR>1. cast the Context.Handler to the class of the first ASPX page:<BR>FirstAspxPage firstPage = (FirstAspxPage)Context.Handler;<BR>2. then get the value of the control in the first page:<BR>firstPage.NoOfCopiesThis is regarding what u have said, <BR>I am not using any code behind file.<BR>so if u use the file name in place of FirstAspxPage, it is not<BR>working. what do i do?<BR><BR>Is there any simpler workaround solution than what u have specified! <BR>

