C #,ASP.NET
C #,ASP.NET
Showing posts with label
redirect
.
Show all posts
Showing posts with label
redirect
.
Show all posts
Monday, April 12, 2010
http to https redirect in asp.net
write code on page load event
if(!Request.IsSecureConnection)
{
string redirectUrl = Request.Url.ToString().Replace("http:", "https:");
Response.Redirect(redirectUrl);
}
Older Posts
Home
Subscribe to:
Posts (Atom)