Passing Hyperlink Parm

Discussion in 'ASP .Net Web Controls' started by susie, Dec 17, 2003.

  1. susie

    susie Guest

    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
     
    susie, Dec 17, 2003
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. cubes
    Replies:
    2
    Views:
    20,081
    cubes
    Dec 9, 2005
  2. Gene Wirchenko
    Replies:
    22
    Views:
    766
    Jeffrey Schwab
    Dec 19, 2003
  3. =?Utf-8?B?cm9kY2hhcg==?=

    pass more than one parm

    =?Utf-8?B?cm9kY2hhcg==?=, Feb 14, 2007, in forum: ASP .Net
    Replies:
    2
    Views:
    376
    =?Utf-8?B?cm9kY2hhcg==?=
    Feb 14, 2007
  4. Replies:
    6
    Views:
    986
  5. =?Utf-8?B?cm9kY2hhcg==?=

    ClientScript parm definitions

    =?Utf-8?B?cm9kY2hhcg==?=, Oct 15, 2007, in forum: ASP .Net
    Replies:
    4
    Views:
    304
    =?Utf-8?B?cm9kY2hhcg==?=
    Oct 17, 2007
Loading...

Share This Page