混合SSL /非SSL页面 [英] Mixing SSL/non SSL pages
问题描述
嗨所有大师;
如果我正在写一个基本问题,请原谅我。
我需要从.aspx调用安全(SSL)页面页。调用
绝对URL会出现错误(无效路径......需要虚拟路径),所以
我无法混合http和https调用。有没有办法让它成为b $ b b? TIA
***通过开发人员指南 http:// www发送.developersdex.com ***
" tesis" < no **** @ devdex.comwrote in message
news:uy ************** @ TK2MSFTNGP05.phx.gbl ...
嗨所有大师;
如果我正在写一个基本问题,请原谅我。
我需要打电话.aspx页面中的安全(SSL)页面。调用
绝对URL会出现错误(无效路径......需要虚拟路径),所以
我无法混合http和https调用。有没有办法让它成为b $ b b? TIA
请出示您的密码。
-
Mark Rae
ASP.NET MVP
http://www.markrae.net >
很多,马克,4你的rpy。这是我的(真实)代码:
Private Sub btnRinnCrCard_Click(ByVal sender As System.Object,ByVal
$ b $ as As System.EventArgs)处理btnRinnCrCard。点击
会话(" IdSocieta")= lblIdSoc.Text
会话(Denominazione)= txtDenominazione.Text
会话(" ; ImpRinnovo")= txtImpDovuto.Text
会话(" CausaleVers")=" Riaffiliazione"
会话(" CodCausale")=" 2"
Dim temp As String = Session.SessionID
Dim path As String = Server.MapPath("。")
''it''在会话变量中存储ds是不可用的,因为切换到https会丢失
,因此需要序列化;更好地使它
所以现在
dsRiepilogo.WriteXml(路径+" \" + temp +" .tmp")
Dim serverName As String =
HttpContext.Current.Server.MachineName
如果serverName =" AMILO"然后
Server.Transfer(" wfrmPagaCarta.aspx")''开发服务器
否则
Server.Transfer(" ; https://www.fih-hockey.it/TessOnLine/wfrmPagaCarta.aspx
")
结束如果
End Sub
***通过开发人员指南 http://www.developersdex .com ***
" tesis" < no **** @ devdex.comwrote in message
news:eg ************** @ TK2MSFTNGP02.phx.gbl ...
Server.Transfer(" https://www.fih-hockey.it/TessOnLine/wfrmPagaCarta.aspx")
上述网址实际上是无效的吗??
-
Mark Rae
ASP.NET MVP
http://www.markrae.net
Hi all gurus;
forgive me if I''m writing about a basic question.
I need to call a secured (SSL) page from a .aspx page. Calling an
absolute URL rises an error (invalid path... Virtual path required), so
I''m not able to intermix http and https calls. Is there a way to make it
so? TIA
*** Sent via Developersdex http://www.developersdex.com ***
"tesis" <no****@devdex.comwrote in message
news:uy**************@TK2MSFTNGP05.phx.gbl...
Hi all gurus;
forgive me if I''m writing about a basic question.
I need to call a secured (SSL) page from a .aspx page. Calling an
absolute URL rises an error (invalid path... Virtual path required), so
I''m not able to intermix http and https calls. Is there a way to make it
so? TIAPlease show your code.
--
Mark Rae
ASP.NET MVP
http://www.markrae.net
LOT, Mark, 4 your rpy. Here''s my (real) code:
Private Sub btnRinnCrCard_Click(ByVal sender As System.Object, ByVal
e As System.EventArgs) Handles btnRinnCrCard.Click
Session("IdSocieta") = lblIdSoc.Text
Session("Denominazione") = txtDenominazione.Text
Session("ImpRinnovo") = txtImpDovuto.Text
Session("CausaleVers") = "Riaffiliazione"
Session("CodCausale") = "2"
Dim temp As String = Session.SessionID
Dim path As String = Server.MapPath(".")
''it''s unuseful to store ds in a Session variable, as it will be
lost switching to https, so it needs to be serialized; better to make it
so now
dsRiepilogo.WriteXml(path + "\" + temp + ".tmp")
Dim serverName As String =
HttpContext.Current.Server.MachineName
If serverName = "AMILO" Then
Server.Transfer("wfrmPagaCarta.aspx") ''development server
Else
Server.Transfer("https://www.fih-hockey.it/TessOnLine/wfrmPagaCarta.aspx
")
End If
End Sub
*** Sent via Developersdex http://www.developersdex.com ***
"tesis" <no****@devdex.comwrote in message
news:eg**************@TK2MSFTNGP02.phx.gbl...
Server.Transfer("https://www.fih-hockey.it/TessOnLine/wfrmPagaCarta.aspx")
Is it not simply that the above URL is actually invalid...?
--
Mark Rae
ASP.NET MVP
http://www.markrae.net
这篇关于混合SSL /非SSL页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!