G
Guest
ok. I have web site and create handler for all pages.
<httpHandlers>
<add type="LoadHandler" verb="*" path="*" />
</httpHandlers>
it means any page will go to this handler. I need this to make virtual path.
For example, I have page with list of customers and looks like this
http://mysite.com/webpage.aspx?type=customers -
it is work, but I need make something like this
http://mysite.com/customers
My handler work for this but how I can redirect to some exist page from
handler?
public void ProcessRequest (HttpContext context)
{
context.Server.Transfer("webpage.aspx?type=customers");
}
and got error. I have tried
public void ProcessRequest (HttpContext context)
{
context.Response.Redirect("webpage.aspx?type=customers");
}
and I again return to this handler. How to make this handler don't work if
don't need it and just load a page?
<httpHandlers>
<add type="LoadHandler" verb="*" path="*" />
</httpHandlers>
it means any page will go to this handler. I need this to make virtual path.
For example, I have page with list of customers and looks like this
http://mysite.com/webpage.aspx?type=customers -
it is work, but I need make something like this
http://mysite.com/customers
My handler work for this but how I can redirect to some exist page from
handler?
public void ProcessRequest (HttpContext context)
{
context.Server.Transfer("webpage.aspx?type=customers");
}
and got error. I have tried
public void ProcessRequest (HttpContext context)
{
context.Response.Redirect("webpage.aspx?type=customers");
}
and I again return to this handler. How to make this handler don't work if
don't need it and just load a page?