U
Usenet User
Platform: IIS 5 or 6, ASP .NET 1.1
I can configure default page for my virtual directory and "hide" that
page from users. For example, if I have an ASPX from called
MyPage.aspx, I can make it default, so it can be omitted from URL:
http://mysite/mydir/
instead of
http://mysite/mydir/MyPage.aspx
The problem I see is that even if the user uses the "short" URL, on
the postback he gets redirected to the full URL. This is because
"MyPage.aspx" is used a the form's target tag in the generated HTML
code. Such behavior defies the purpose and also, I believe, messes up
the ViewState on the first postback due to redirect.
Is there a good way to avoid the above issues and make sure the the
"short" URL is preserved throughout postbacks?
Thanks!
I can configure default page for my virtual directory and "hide" that
page from users. For example, if I have an ASPX from called
MyPage.aspx, I can make it default, so it can be omitted from URL:
http://mysite/mydir/
instead of
http://mysite/mydir/MyPage.aspx
The problem I see is that even if the user uses the "short" URL, on
the postback he gets redirected to the full URL. This is because
"MyPage.aspx" is used a the form's target tag in the generated HTML
code. Such behavior defies the purpose and also, I believe, messes up
the ViewState on the first postback due to redirect.
Is there a good way to avoid the above issues and make sure the the
"short" URL is preserved throughout postbacks?
Thanks!