oh that's not the only thing that's wrong sorry, here is how it should look:
<asp:textbox id="tx_PromoCode" runat="server" Text='<%# Request.QueryString("tx_Pr
Main Topics
Browse All TopicsI have been away from coding for a longtime and am just trying to read a simple querystring. Below is what I have for the request but I keep getting an this error:
Compiler Error Message: CS0246: The type or namespace name 'request' could not be found (are you missing a using directive or an assembly reference?)
The URL that I am trying to pass looks like this:
<a href="../ticketing/account
What am I doing wrong here?
Thanks,
Gabicus
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
make sure that you have AutoEventWireup="true" in the page directive. The page directive starts like this: <%@ Page
Then add the following function in the code behind:
protected void Page_Load(object sender, EventArgs e)
{
DataBind();
}
You can always leave out the Text property from the declaration of the text box and set it in the page load. So you would declare the textbox like this:
<asp:textbox id="tx_PromoCode" runat="server" maxlength="50" TabIndex="3"> </asp:textbox><br/>
and in the page load have this instead of DataBind:
tx_PromoCode = Request.QueryString["tx_Pr
Business Accounts
Answer for Membership
by: Omego2KPosted on 2009-10-01 at 16:32:19ID: 25474133
Are you using vb.net? if C# it should be Request.QueryString as it's case sensitive
omoCode") %>" </asp:textbox>" maxlength="50" TabIndex="3" Runat="server"/><br/>
also I believe you need to use # in this case not = so change it to
<asp:textbox id="tx_PromoCode" value="<%# Request.QueryString("tx_Pr