Click here to Skip to main content
15,923,142 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi
I am working on dynamic web application. and I it's domain name is for e.g.
www.TTT.com and in this web application there are facilities for user to develop his own web site page for business promot and it is done but for e.g. user ABC has developed his own page abc.aspx dynamically so it's URL should be www.TTT.com/abc and then it will display user ABC's data web site page. I mean without writing .aspx how can i load particular page on Web Server.

it is so urgent please......
Posted
Comments
mukeshdepani8681 15-Feb-12 7:53am    
Yes thnx it is resolved but when i type URL www.TTT.com/abc then it will not shows abc's data it is giving error Resource not found. my code in global.asax is as follows

string URLname = Path.GetFileName(HttpContext.Current.Request.Url.ToString());
string pageName = URLname.Replace(".aspx", "");
routes.Add(pageName, new Route("abc", new CustomRouteHandler("~/myPages/" + URLname)));

1 solution

I think URL Roution WIll Help u

See this:

An Introduction to URL Routing[^]


URL Routing with ASP.NET 4.0[^]

ASP.NET Routing[^]
 
Share this answer
 

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