Passing Hyperlink Parm

S

susie

What the the correct syntax for NavigateUrl for the
following line of code?
<asp:hyperlink id="AnchorLink" Text="Print"
NavigateUrl = "test.aspx?id=" &
System.Web.HttpUtility.UrlEncode(textbox.Text)
runat=server/>

The application have the following restrictions:
1.User must enter a value to the textbox
2.User must click the Print link to be redirected to the
next page
3. Can not put the code to the textbox onblur or
ontextchanged event
4.The application has restrictions and must use the
following code redirect to the new page.
<asp:hyperlink id="AnchorLink" Text="Print"
NavigateUrl = "test.aspx?id=" &
System.Web.HttpUtility.UrlEncode(textbox.Text)
runat=server/>

Please provide correct syntax.

Thank you.

Susie
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top