Hi,
Following article will help you to solve your problem.
Switching Between HTTP and HTTPS Automatically
http://www.codeproject.com/aspnet/WebPageSecurity_v2.asp
Regards,
Swap.
Regards,
Swap.
Please: Don't forget to click "Mark as Answer" on the post that helped you. That way future readers will know which post solved your issue.