SSL and transfer

  • Thread starter Thread starter Philip Korolev
  • Start date Start date
P

Philip Korolev

Hi All.

I am attempting to use SSL for the first time with ASP.NET I would like to be able to send my form details to another page using https:// connection. The page I am sending data to, uses Stored Procedures to add data to SQL Server. However attempting to use https:// in server.transfer (qualifying a full address) is returning an error. How can I use SSL with ASP.NET page transfers? If there is more than one technique, I would appreciate an example. I want o avaod using metod="get" for security reasons.

What I have tried so far:

1) In the Form tag I set action="https://mypage......." method="post"
2) Added a Server.Transfer("https://mypage.....") in the button event procedure



In advance, many thanks

Phil
 
1) Don't work. in ASP.NET 1.1 you have to post to the same page (workaround exists though)
2) Server.Transfer is a server side technique (similar to a kind of "goto"). It doesn't issue a new HTTP request.

Why don't you display the https form and post back to the same page ? Note also that this way the user sees that the form uses https. Otherwise he won't see this until he post (this could likely make him reluctant to enter his info).

Patrice
--

"Philip Korolev" <[email protected]> a écrit dans le message de Hi All.

I am attempting to use SSL for the first time with ASP.NET I would like to be able to send my form details to another page using https:// connection. The page I am sending data to, uses Stored Procedures to add data to SQL Server. However attempting to use https:// in server.transfer (qualifying a full address) is returning an error. How can I use SSL with ASP.NET page transfers? If there is more than one technique, I would appreciate an example. I want o avaod using metod="get" for security reasons.

What I have tried so far:

1) In the Form tag I set action="https://mypage......." method="post"
2) Added a Server.Transfer("https://mypage.....") in the button event procedure



In advance, many thanks

Phil
 
thanks for that! came to the same conclusion!

cheers

phil
1) Don't work. in ASP.NET 1.1 you have to post to the same page (workaround exists though)
2) Server.Transfer is a server side technique (similar to a kind of "goto"). It doesn't issue a new HTTP request.

Why don't you display the https form and post back to the same page ? Note also that this way the user sees that the form uses https. Otherwise he won't see this until he post (this could likely make him reluctant to enter his info).

Patrice
--

"Philip Korolev" <[email protected]> a écrit dans le message de Hi All.

I am attempting to use SSL for the first time with ASP.NET I would like to be able to send my form details to another page using https:// connection. The page I am sending data to, uses Stored Procedures to add data to SQL Server. However attempting to use https:// in server.transfer (qualifying a full address) is returning an error. How can I use SSL with ASP.NET page transfers? If there is more than one technique, I would appreciate an example. I want o avaod using metod="get" for security reasons.

What I have tried so far:

1) In the Form tag I set action="https://mypage......." method="post"
2) Added a Server.Transfer("https://mypage.....") in the button event procedure



In advance, many thanks

Phil
 
Back
Top