A
Andrew Hayes
In my web application I have a page that lists product information taken from
a backend database, and a button for each item that shows a form within the
page for a user to enter some personal details to request more information.
This was achieved by using a FormView that is hidden until the user clicks
on the button to request information, at which point the C# code behind
formats the FormView based on the product selected and makes it visible so it
is shown when the page reloads.
However, for security reasons, when the page shows the form controls it
should be using HTTPS to protect personal information when it is posted.
Is there a way to change the scheme of a page, so that when the form
controls are shown it's HTTPS but when they are hidden it's HTTP?
a backend database, and a button for each item that shows a form within the
page for a user to enter some personal details to request more information.
This was achieved by using a FormView that is hidden until the user clicks
on the button to request information, at which point the C# code behind
formats the FormView based on the product selected and makes it visible so it
is shown when the page reloads.
However, for security reasons, when the page shows the form controls it
should be using HTTPS to protect personal information when it is posted.
Is there a way to change the scheme of a page, so that when the form
controls are shown it's HTTPS but when they are hidden it's HTTP?