Results 1 to 2 of 2

Thread: request querystring in html?

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Aug 2003
    Location
    Edinburgh, UK
    Posts
    2,773

    request querystring in html?

    hi

    using vb.net with asp.net

    i have a datalist, and in html i have the appropriate stuff put in to bind the datalist with the data from sql - works, great!

    for one of the columns, there is a hyperlink. i also modified it to show the text as a url, it works, great

    but how do i add some data from the current pages' querystring into the hyperlink?

    the hyperlink thingy is like this:

    Code:
    <asp:HyperLink id=hypLnkToThread runat="server" Width="64px"
     Height="24px" Text="<%# DataBinder.Eval(Container, &quot;DataItem['ThreadName']&quot;) %>" 
    NavigateUrl = '<%# "ShowThread.aspx?ThreadID=" & Container.DataItem("ThreadID")%>'>
    								</asp:HyperLink>
    so there, a hyperlink is being created, based on the ThreadName field in the datalist. But appending to the "ThreadID=" i would like the querystring that is currently on the page. is it possible? how?

  2. #2

    Thread Starter
    PowerPoster
    Join Date
    Aug 2003
    Location
    Edinburgh, UK
    Posts
    2,773

    Re: request querystring in html?

    i think i got it

    just add:

    & "&variable=" & Request.Querystring("variable")

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