Re: passing values via URL
Quote:
Originally posted by kto
Hey,
Just a wee Q...I am trying to pass the value from my textbox via a URL and am unsure how to get this value.
My link reads:
Code:
<a href="AddSequence.aspx?RepNo=<%#txtRepNo.Text%>" style="COLOR: #0000ff">Add Sequence to this Rep</a>
but no luck! How can I pass this value?
Now, I am assuming you are using asp.net. So you just use a namevaluecollection object. The namevaluecollection is in the System.Collections.Specialized namespace:
Dim col As NameValueCollection = Request.QueryString
Dim RepNo As String = col.Get("RepNo").ToString()