Click here to Skip to main content
16,017,922 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

I am asking one question plz tell me

My task is I have one url like this http://example.com

I am passing one parameter alog with url like
http://example.com/Tagid=12345

I want to display SiteName(ColumnName)in database table value(EX:www.asp.net) correspondind Tagid number

I want to Final Result is

IActual URL is:"http://example.com/Tagid=12345"

I want to display:"http://example.com/?Tagid=12345\www.asp.net"

"www.asp.net" This value comming from DATABASE TABLE

Table Information

Tagid SiteName

12345 http://www.asp.net

43215 http://www.microsoft.com

54666 http://www.c#corner.com

Plz help me I am new this concept.
Posted
Updated 7-Aug-12 0:00am
v2

do you want to re-write your url or your want to redirect to new url?

if required to redirect to new url it can be done like.

httpcontext cont = httpcontext.current;
current url = cont.currenturl;
string appendurl ="www.asp.net";
response.redirect(url + appendurl);
 
Share this answer
 
Pls give complete simple Example of the source code,

www.asp.net Value comming From database table basing on the TagId column VALUE,
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900