Click here to Skip to main content
14,211,543 members
Rate this:
Please Sign up or sign in to 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
Rate this:
Please Sign up or sign in to vote.

Solution 1

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);
   
Rate this:
Please Sign up or sign in to vote.

Solution 2

Pls give complete simple Example of the source code,

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

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



Advertise | Privacy | Cookies | Terms of Service
Web01 | 2.8.190619.2 | Last Updated 7 Aug 2012
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100