ASP.net post and default page

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 …

via Asp.Net Developed Tutorials » Search Results » ajax:

ASP.net post and default page

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.
…………………………………………

Have you considered creating a plain HTML form? You would need to place your plain HTML form outside the ASP.Net runat=server form on your page.

ASP.Net controls on your page go here


For more info: ASP.net post and default page

Asp.Net Developed Tutorials » Search Results » ajax

ASP.net post and default page

Share this post:

Related Posts

Leave a Comment