Ah,
The text is not passed in the request object. You need to use some sort of programmatic lookup or delimit the value to include the text as well "value|text" or something similiar to it, or simply make the value the same as the text.
Jon Gallant
jon[at]dotnetconnect.com
www.dotnetconnect.com
.NET doesn't support postback to a different page.
Take the runat=server out of the form tag, set the action and it should work.
<form id="Form1" method="post" action="WebForm4.aspx">
WebForm4.aspx
Response.Write(Request.Form["TXTRPTID"]);
Jon Gallant
jon[at]dotnetconnect.com...
The correct way to do this with asp.net is to use the asp:DropDownList server control.
html...
<asp:DropDownList ID="ddl1" Runat="server">
<asp:ListItem Value="Y"></asp:ListItem>
<asp:ListItem Value="0010000"></asp:ListItem>
<asp:ListItem Value="0010001"></asp:ListItem>
</asp:DropDownList>
in...
Actually the other way around.
Rebuild always builds.
Build builds if project has changed since last build.
Jon Gallant
jon[at]dotnetconnect.com
www.dotnetconnect.com
Request.Form("TXTRPTID") should work.
Check if the select is actually in the form tag and the id and name of the select is TXTRPTID.
Jon Gallant
jon[at]dotnetconnect.com
www.dotnetconnect.com
Well, if you have it referenced, yes you need to install it. You should just be able to copy the dlls over to the live server.
They are here on your local box.
C:\Program Files\Common Files\Crystal Decisions\1.1\Managed
Jon Gallant
jon[at]dotnetconnect.com
www.dotnetconnect.com
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.