Hi, I'm fairly new to VB.net. I'm creating a basic website in Visual Web Developer 2010 Express in ASP.NET/VB and I'm trying to find out how to use Reponse.Redirect with a "?src=" parameter to redirect to another site and keep the same source string in the redirected site.
For example:
Visitor goes to http://www.test.com?src=source1 and gets redirected to http://www.site-a.com?src=source1
Visitor goes to http://www.test.com?src=source2 and gets redirected to http://www.site-a.com?src=source2
and so on
I don't want to hard code:
for each possible source. I want whatever source string is in the original visit to pass into the Response.Redirect and show on the destination page, something like:
But how do actually I code this in VB.net to read the source string in the first URL and automatically add it to the destination URL?
Thanks for any help on this.
For example:
Visitor goes to http://www.test.com?src=source1 and gets redirected to http://www.site-a.com?src=source1
Visitor goes to http://www.test.com?src=source2 and gets redirected to http://www.site-a.com?src=source2
and so on
I don't want to hard code:
VB.NET:
Response.Redirect("http://site-a.com?src=source1")
VB.NET:
Response.Redirect(http://site-a.com?src=" + mysource)
Thanks for any help on this.