468,290 Members | 2,028 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,290 developers. It's quick & easy.

HttpHandler to Redirect root Default.aspx

Hello,

I created HttpHandler to redirect root Default.aspx. But I don't know how to
create path, that will redirect just web root Default.aspx. I tried following
line, but it redirects all Default.aspx never mind in which subdirectories
they are locate:

<add verb="*" path="Default.aspx"
type="MyProject.command.httphandler.RedirectionHan dler, MyProject" />

Any suggestions please

Thank you

Mar 8 '06 #1
2 2890
try

path="~/default.aspx"

--
Robbe Morris - 2004-2006 Microsoft MVP C#
Earn money answering .NET questions
http://www.eggheadcafe.com/forums/merit.asp

"MilanB" <Mi****@discussions.microsoft.com> wrote in message
news:E7**********************************@microsof t.com...
Hello,

I created HttpHandler to redirect root Default.aspx. But I don't know how
to
create path, that will redirect just web root Default.aspx. I tried
following
line, but it redirects all Default.aspx never mind in which subdirectories
they are locate:

<add verb="*" path="Default.aspx"
type="MyProject.command.httphandler.RedirectionHan dler, MyProject" />

Any suggestions please

Thank you

Mar 9 '06 #2
Thanks Robbie

There is also works:
"/Default.aspx"

I meet problem because, I did not clear my test browser cache.

Thanks again
MilanB
Mar 9 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by sathya | last post: by
8 posts views Thread by bryan | last post: by
6 posts views Thread by Mike | last post: by
10 posts views Thread by Eirik Eldorsen | last post: by
reply views Thread by NPC403 | last post: by
2 posts views Thread by MrBee | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.