I have one requirement like this
I have a table CUSTOMER in that CUSTID,NAME,URL columns is thier
CUSTID NAME URL
1 asp www.asp.net
2 weblog www.weblogs.asp.net
3 google www.google.com
My question is I opening perticular url based on CUSTID
I am Passing parameter Like www.Example.com?CUSTID=1 That
corressponding URL data(Ex:www.asp.net) It will open directly in browser
using asp.net........
plz help me ...........
Thank you,
anil
Loading
Anand UchagawkarPosted Sep 27, 2012, 12:58 AM
Based on the parameter you get the valuse of the url you want to re-direct to and then you can following code in your code behind page,
//Call your database to get the value of the url
string customerId = Request.Querystring["CUSTID"];
string url = DBHelper.GetUrlFromCustomerId(customerId);
Response.Redirect(url);