Link to home
Start Free TrialLog in
Avatar of mrduckers
mrduckers

asked on

Populating querystring in asp:textbox on ascx page

Hi,

I'm trying to prepolate my text box with a querystring and not sure how to do it.

in the example below I'd like the input box to display 'lorem'

Code:
<asp:TextBox ID="txtName" runat="server" />

querystring is:  xxx.aspx?game=lorem

I've tried this but it didn't work.
<asp:TextBox ID="txtName" runat="server"><%= request.querystring("game") %></asp:TextBox>

thanks and let me know if any questions.
Avatar of Anurag Agarwal
Anurag Agarwal
Flag of India image

try with case
Request.QueryString("game")
Anurag
Avatar of mrduckers
mrduckers

ASKER

I get this error
Error creating control (/usercontrols/GamesForm.ascx).
Maybe file doesn't exists or the usercontrol has a cache directive, which is not allowed! See the tracestack for more information!

I'm using umbraco cms.
ASKER CERTIFIED SOLUTION
Avatar of mrduckers
mrduckers

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial