a simple hyperlink

Discussion in 'ASP .Net' started by Carlos, Mar 8, 2007.

  1. Carlos

    Carlos Guest

    Hi all,

    I would like to have a hyperlink control inside a table that just
    uses the value of a string being passed from the previous page.

    for example when navigating from the default page the string is
    mypage.aspx?id='23', I would like the hyperlink inside a table in
    the mypage.aspx to grab the id to navigate to a third page. i.e.so that the
    navigateurl property could read:

    navigateurl=~/mysecond.aspx?id='23'

    How can I do that?

    Thanks in advance,

    Carlos.
    Carlos, Mar 8, 2007
    #1
    1. Advertising

  2. Carlos

    David Wier Guest

    dim sID as string (global to page)

    inside page_Load event
    sID=request.querystring("id")

    then, inside the same event (might need it to be inside an if/then/postback
    block) -
    myHyperlink.navigateURL="~/mysecond.aspx?id=" & 'sID'

    --
    David Wier
    MVP/ASPInsider
    http://aspnet101.com
    http://aspexpress.com


    "Carlos" <> wrote in message
    news:%...
    > Hi all,
    >
    > I would like to have a hyperlink control inside a table that just
    > uses the value of a string being passed from the previous page.
    >
    > for example when navigating from the default page the string is
    > mypage.aspx?id='23', I would like the hyperlink inside a table in
    > the mypage.aspx to grab the id to navigate to a third page. i.e.so that

    the
    > navigateurl property could read:
    >
    > navigateurl=~/mysecond.aspx?id='23'
    >
    > How can I do that?
    >
    > Thanks in advance,
    >
    > Carlos.
    >
    >
    >
    David Wier, Mar 8, 2007
    #2
    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. Doug Swanson

    simple hyperlink problem...

    Doug Swanson, Feb 12, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    445
    Doug Swanson
    Feb 12, 2004
  2. Edward
    Replies:
    2
    Views:
    347
    Edward
    Jun 28, 2004
  3. davetichenor
    Replies:
    1
    Views:
    818
    Eliyahu Goldin
    Oct 30, 2006
  4. Ken
    Replies:
    1
    Views:
    369
    Alvin Bruney
    Aug 16, 2003
  5. Dave
    Replies:
    0
    Views:
    934
Loading...

Share This Page