Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Mar 18, 2012 08:27 PM by francesco abbruzzese
Mar 17, 2012 04:26 PM|LINK
I wanted to know if there was an easy way to make the user' POST action redirect to the HTTPS version of a site. So for example a user goes to
http://www.omegusprime.com/Request/ABC and fills out a form. How can I make the SUBMIT button post to https://www.omegusprime.com/Request/ABC?
I'm aware of the RequireHttpsAttribute, but that does not affect how the Html.BeginForm() behaves.
Mar 17, 2012 05:48 PM|LINK
Mar 17, 2012 06:07 PM|LINK
why dont you set form action attribute from code behind after client event or on pageload if there are no other click button events
form1.Action = "url";
or in html
form id="form1" action="url"
Mar 18, 2012 03:21 PM|LINK
Mar 18, 2012 08:27 PM|LINK