Overthere
asked on
QuertyString
I have a page (aspx) that has this snippett of coding below. Another pages calls it and the url is correctly formed as I can see it when it calls the page. It shows the parameter "vf" just as it should. However when I try to retreive it with Request.Quertystring and display on the page, it is blank. I only have the blip about being at page load showing...What am I doing wrong here?
<script language="vb" runat="server">
Sub Page_Load(sender As Object, e As EventArgs)
Response.Write("At page load")
Dim vfile As String = Request.QueryString("vf")
Response.Write("value of vfile: " & vfile)
End Sub
</script>
<script language="vb" runat="server">
Sub Page_Load(sender As Object, e As EventArgs)
Response.Write("At page load")
Dim vfile As String = Request.QueryString("vf")
Response.Write("value of vfile: " & vfile)
End Sub
</script>
Can you post entire URL with querystring here ?
Raj
Raj
nevermind.. typo only in the article title not the actual function.
What's in the URL when you reach this page? What value should "vt" be?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
here is the value of the url as it is passed:
var nuurl = "view2.aspx?fv=" + url;
and when I display nuurl with an alert is is correct: view2.aspx?fv=/myweb/Image s/pica.jpg
and it does pop up view2.aspx,its http address looks fine, and I use a response.write to show the value of the parameter after issuing a Request.QueryString("vf") and it is blank....
var nuurl = "view2.aspx?fv=" + url;
and when I display nuurl with an alert is is correct: view2.aspx?fv=/myweb/Image
and it does pop up view2.aspx,its http address looks fine, and I use a response.write to show the value of the parameter after issuing a Request.QueryString("vf") and it is blank....
In querystring, it is 'fv' and you are trying to call 'vf' - spelling mistake :)
raj
raj
What [RajkumarGS] said.
ASKER
it was a typo error when I responded with a comment - I double-checked. I tried putting it in a Session var and that doesn't even work - always has the same value...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I will try it and let you know...may be afew dsays...
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks folks...a mixed bag causing problem! ;)
You have "QuertyString"
instead of "QueryString"