.net does not contain an HttpsContext object that I am aware of. One way
to do this would be:
string strSsl =3D "https://";
string strServer =3D HttpContext.Current.Request.Url.Authority;
string strPath =3D "/ReviewInfo.aspx";
string strUrl =3D strSsl + strServer + strPath + strUrl;
HttpContext.Current.Response.Redirect(strUrl);
you could simplify this more, I just broke them out for easier
understanding.
-----Original Message-----
From: charles baldo [mailto:charlesbaldo@h...]
Sent: Wednesday, March 20, 2002 08:55
To: ASPX_Professional
Subject: [aspx_professional] HTTPS and HttpContext.Current
Could someone please tell me how to do https in dot net?
I tried
HttpsContext.Current.Response.Redirect("ReviewInfo.aspx")
^ added s
instead of
HttpContext.Current.Response.Redirect("ReviewInfo.aspx")
It did not work
Thank you
Charles Baldo