S
susie
I have the following code to pass user input from a text
box named textbox:
<asp:hyperlink id="hyperlink1" text="Print"
navigationurl="http://myserver/commericial.aspx?id=<%
=textbox.text%>" runat=server/>
First user enter an id into the textbox, then click on
Print link to be redirected to page commericial.aspx
I have the following restrictions:
The code can not be evoked from onblur event or
ontextchange event or can not be rewritten through a
button onclick event.
It has to be through the <asp:hyperlink..../>
I would like to someone offer suggestions on correct
syntax on navigationurl="http://myserver/commericial.aspx?
id=<%
=textbox.text%>"
I tried navigationurl="http://myserver/commericial.aspx?
id" & System.Web.HttpUtility.UrlEncode(Name.Text)
But this generate server tag not formatted right error.
Can anyone offer suggestion on the syntax for this line
of code?
Thank you!
box named textbox:
<asp:hyperlink id="hyperlink1" text="Print"
navigationurl="http://myserver/commericial.aspx?id=<%
=textbox.text%>" runat=server/>
First user enter an id into the textbox, then click on
Print link to be redirected to page commericial.aspx
I have the following restrictions:
The code can not be evoked from onblur event or
ontextchange event or can not be rewritten through a
button onclick event.
It has to be through the <asp:hyperlink..../>
I would like to someone offer suggestions on correct
syntax on navigationurl="http://myserver/commericial.aspx?
id=<%
=textbox.text%>"
I tried navigationurl="http://myserver/commericial.aspx?
id" & System.Web.HttpUtility.UrlEncode(Name.Text)
But this generate server tag not formatted right error.
Can anyone offer suggestion on the syntax for this line
of code?
Thank you!