Hi Atul,
Following is your converted code for VB:-
If HttpContext.Current.Request.IsSecureConnection.Equals(False) AndAlso HttpContext.Current.Request.IsLocal.Equals(False) Then
Response.Redirect("https://" + Request.ServerVariables("HTTP_HOST") + HttpContext.Current.Request.RawUrl)
End If
To convert more codes use below link:-
http://converter.telerik.com/[
^]
Thanks,
Mukesh