hi ,
i am building site that the user can enter by virtual path .
for example www.mysite.com/car/bigCars/Mec/default.aspx
this path "/car/bigCars/Mec/default.aspx" do not exist .
what i what is that my jttphandler will catch the url , and user will
surf the site
thinking he is actually in that url .
what i did is that i do catch the url and i transferring him to
anouther page by preserving the url that the user entered .
ok , so the problem goes like that ,
i have link in the page that i did server.transfer to the user and i
want that to preserve
the url to . instead i am getting "page not found" .
how do i do that ?
Please help .
this is my code :
Handler :
public class DomainHandler : IHttpHandler
{
public void ProcessRequest(HttpContext context)
{
context.Response.Write(context.Request.Url.ToStrin g());
context.Server.Transfer("/WebSite/CategoryPage.aspx");
}
public bool IsReusable
{
get
{
return true;
}
}
}
web.config :
<httpHandlers>
<add verb="*" path="default.aspx"
type="DomainFilter.DomainHandler"/>
</httpHandlers>