473,378 Members | 1,449 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

SSL and transfer

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
Jul 21 '05 #1
2 2776
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" <pk********@blueyonder.co.uk> a écrit dans le message de news:ux**************@TK2MSFTNGP15.phx.gbl...
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
Jul 21 '05 #2
thanks for that! came to the same conclusion!

cheers

phil
"Patrice" <no****@nowhere.com> wrote in message news:uk****************@TK2MSFTNGP15.phx.gbl...
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" <pk********@blueyonder.co.uk> a écrit dans le message de news:ux**************@TK2MSFTNGP15.phx.gbl...
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
Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Harsh Thakur | last post by:
Hi, I'd like to know the performance related differences between Response.Redirect and Server.Transfer. I'd like to redirect the user to a different page. I can either do a...
5
by: Julien C. | last post by:
Hi all, I have an "EditeItem.aspx" page which lets me edit properties of an "Item". In the OnClick() event of my Save button, I do save Item changes to the database and then I redirect the user...
9
by: Mark | last post by:
Hello I'm trying to use a Server.Transfer in a try-catch (I cannot put it outside the Try-Catch as it is nested deep within a component that is called in a try-catch loop) The problem is that the...
5
by: Guadala Harry | last post by:
I've been reading up on Server.Transfer as well as doing some testing, and it appears to always raise the ThreadAbortException error. On one hand I've read a bunch of promotional-type material...
11
by: Alexander Bosch | last post by:
Hi, I'm having a problem similar to the one that's stated in this KB http://support.microsoft.com/default.aspx?scid=kb;en-us;839521 When I'm posting a page to itself with the bool value as true it...
15
by: dee | last post by:
Hi, I'm curious why MS decided to have Transfer hide the target page's url invisible? Any guesses ? Thanks. Dee.
8
by: bryan | last post by:
I've got a custom HttpHandler to process all requests for a given extension. It gets invoked OK, but if I try to do a Server.Transfer I get an HttpException. A Response.Redirect works, but I really...
6
by: n# | last post by:
A Basic Question in ASP.NEt 1.1 In Page_Load Event I am doing a Server.Transfer. But it throws an error on the browser windows showing "Server Application Not Found" Pls help me
4
by: evantay | last post by:
I'm using ASP.NET 2.0 with VS.NET 2005. I'm trying to access properties from my master pages within a page that inherits from that master page (a child page). However the values are always null....
2
by: =?Utf-8?B?YWxiZXJ0b3Nvcmlh?= | last post by:
Hi, I'm using Threads, and when I try to do Server.Transfer, I recieved an error. (child object does not exist...) My Code: Dim t As New Thread(AddressOf Hilo) Private Sub Hilo()...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.