Hi,
I am asking one question
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 open "www.asp.net" this url website corresponding tagId(column)value
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
Give me simple complete Example
anil babu
09-Aug-2012Anonymous User
09-Aug-2012I did not get you properly that exactly what do you want but whatever I understood you can resolve this problem by using following code.
If you want to open new web address on the basis of Tagid you can use code like:
If you want to display::"http://example.com/?Tagid=12345\www.asp.net" on web
browser, you can use like following code :
Response.Redirect(Request.RawUrl + Convert.ToString(newUrl));
anil babu
08-Aug-2012Anonymous User
08-Aug-2012I did not get you properly that what are you trying to ask? Could you explain your code in more detail. Check out some following links related ASP.Net URL Routing and URL-Rewriting with Asp.Net, it might be resolve your problem...
https://www.mindstick.com/Articles/153/the-concept-of-url-routing-in-asp-dot-net-3-5
http://www.codeproject.com/Articles/2538/URL-Rewriting-with-ASP-NET
http://www.dotnetperls.com/urlmappings