ASP.net post and default page.
Posted
by diamandiev
on Stack Overflow
See other posts from Stack Overflow
or by diamandiev
Published on 2010-03-06T18:48:16Z
Indexed on
2010/03/13
2:47 UTC
Read the original article
Hit count: 485
Scenario:
I have a regular aspx page with a form.
When someone clicks a button the form submitted via post like normal.
HOWEVER. The page where the form resides is the default page(Default.aspx). So when someone goes to the site: http://site.com/ and submits the forms he gets redirected to http://site.com/default.aspx. I tried setting the action of the form to http://site.com/. However asp.net does not allow to use root urls with a POST.
So is there any workaround? Ajax is not an option.
© Stack Overflow or respective owner