Results 1 to 6 of 6

Thread: Link with parameter (RESOLVED!:D)

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2003
    Location
    The Netherlands
    Posts
    30

    Link with parameter (RESOLVED!:D)

    I have a HTML navigation page that opens my aspx pages. Can someone tell me how i can send a var with a link in HTML? SOmething like:

    <a href="Werkgever/frmWerkgeverNieuw.aspx?ARGUMENT" but then in HTML?

    Thank U!
    Last edited by Pietje S; Sep 21st, 2004 at 08:02 AM.

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Code:
    <a href="pagename.aspx?varname=value">click me</a>
    If that's not it, can you elaborate upon your question...

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Feb 2003
    Location
    The Netherlands
    Posts
    30
    Yes i knew it was something like that. But can anyone just give me an example how u put that code in HTML?

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    That is HTML.

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Feb 2003
    Location
    The Netherlands
    Posts
    30
    You were right! I've already solved the problem. Thnx 4 the reaction!

  6. #6
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632
    Using the following example:
    Code:
    <a href="ShowThread.aspx?ID=4">click me</a>
    Then the code in the pagename.aspx file would be:
    VB Code:
    1. Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    2. Dim lngID As Long
    3.    lngID = Request.QueryString("ID") 'may need typecast here
    4. End Sub
    Woka

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width