HttpHandler for site

S

SushiSean

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top