- Joined
- Apr 26, 2005
- Posts
- 7,410
- Reaction score
- 148
Hi Guys
I am trying to repair an old ASP.net script of mine. I have a rather basic question about retrieving querystring values in VB.net which seems more difficult than it should be. I am using:
But when I try and display the output in the body of my HTML page, using this:
I get an error saying:
Compiler Error Message: BC30451: Name 'strMerchantId' is not declared.
I think this has something to do with the fact that the querystring is in the HttpRequest, and I've somehow got to get it from there to be made available to my page.
Can an expert shed any light?
Thanks
I am trying to repair an old ASP.net script of mine. I have a rather basic question about retrieving querystring values in VB.net which seems more difficult than it should be. I am using:
Code:
Sub Page_Load(ByVal Sender As Object, ByVal e As EventArgs)
Dim strMerchantId As String = Request.QueryString("MerchantId")
End Sub
But when I try and display the output in the body of my HTML page, using this:
Code:
<%=strMerchantId%>
I get an error saying:
Compiler Error Message: BC30451: Name 'strMerchantId' is not declared.
I think this has something to do with the fact that the querystring is in the HttpRequest, and I've somehow got to get it from there to be made available to my page.
Can an expert shed any light?
Thanks