Link to home
Start Free TrialLog in
Avatar of Overthere
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>
Avatar of nap0leon
nap0leon

Typo
You have "QuertyString"
instead of "QueryString"
Can you post entire URL with querystring here ?

Raj
nevermind.. typo only in the article title not the actual function.
Avatar of Paul MacDonald
What's in the URL when you reach this page?  What value should "vt" be?
SOLUTION
Avatar of Rajkumar Gs
Rajkumar Gs
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Overthere

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/Images/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....
In querystring, it is 'fv' and you are trying to call 'vf' - spelling mistake :)

raj
What [RajkumarGS] said.
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
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I will try it and let you know...may be afew dsays...
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks folks...a mixed bag causing problem! ;)