How to redirect user to secure connection ?

 Posted by Bhakti on 12/15/2009 | Category: ASP.NET Interview questions | Views: 4232

To redirect user to https(to a secure connection), you can define uri scheme to UriSchemeHttps.

UriBuilder testuri = new UriBuilder(Page.Request.Url);

testuri.Scheme = testuri.UriSchemeHttps;

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response