Thanks for the example. I'm wondering if there's an out-of-the-box, simple function to simply return the whole string, where the querystrings may be unknown... Thanks...
"GaryDean" <Ga******@newsgroups.nospam> wrote in message news:%2******************@TK2MSFTNGP03.phx.gbl...
here's an example of my futzing around with a querystring....
you would use myValue1 instead of id. here, I was concatenating keys into one value and spliting them up.
If Not (Request.QueryString("id")) Is Nothing Then
Dim myString As String = Request.QueryString("id")
If Len(myString) = 7 Then 'we have both keys
'we should have a Customer record and at least one location record
Session("SelectedCustID") = myString.Substring(0, 4)
Session("LocID") = myString.Substring(5, 2)
Session("CustLocEditMode") = "MAINT"
Else
'customer exists but no location records exist - treat as new
'but put custID into textbox
Session("SelectedCustID") = myString.Substring(0, 4)
Session("LocID") = ""
Session("CustLocEditMode") = "NEW"
txtCustID.Text = Session("SelectedCustID")
End If
--
Regards,
Gary Blakely
Dean Blakely & Associates
www.deanblakely.com
"VB Programmer" <do**********@somewhere.com> wrote in message news:e4**************@TK2MSFTNGP05.phx.gbl...
If I have a url like this:
http://www.somesite.com/mypage.aspx?...value2=goodbye, in VB.NET, how do I get the "mypage.aspx?myvalue1=hello&myvalue2=goodbye" portion?
Thanks!