Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Star
9337 Points
1447 Posts
Feb 21, 2012 04:03 PM|LINK
there is nothing like "#" in http://localhost:0003/index.aspx#access_token=qwqwqwqwqw
that got to be "?" so it becomes http://localhost:0003/index.aspx?access_token=qwqwqwqwqw
that is what you call querystring and you can access it on index page like this:
string qstring = Request.QueryString["access_token"]; //C#
Dim qstring as string = Request.QueryString("access_token") //VB
More info:
http://www.dotnetperls.com/querystring
http://www.codeproject.com/Articles/5876/Passing-variables-between-pages-using-QueryString
me_ritz
Star
9337 Points
1447 Posts
Re: How to retrieve data from URI.
Feb 21, 2012 04:03 PM|LINK
there is nothing like "#" in http://localhost:0003/index.aspx#access_token=qwqwqwqwqw
that got to be "?" so it becomes http://localhost:0003/index.aspx?access_token=qwqwqwqwqw
that is what you call querystring and you can access it on index page like this:
string qstring = Request.QueryString["access_token"]; //C#
Dim qstring as string = Request.QueryString("access_token") //VB
More info:
http://www.dotnetperls.com/querystring
http://www.codeproject.com/Articles/5876/Passing-variables-between-pages-using-QueryString