|
-
Jan 21st, 2005, 12:23 PM
#1
Thread Starter
PowerPoster
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, "DataItem['ThreadName']") %>"
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?
-
Jan 21st, 2005, 12:27 PM
#2
Thread Starter
PowerPoster
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|