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.
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"
thanks and let me know if any questions.
ASKER
I get this error
Error creating control (/usercontrols/GamesForm.a scx).
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.
Error creating control (/usercontrols/GamesForm.a
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Request.QueryString("game"
Anurag