Hi,
In my plain ASP pages I had a directive like this in the header:
<!-- #include virtual="/ForceSSL.inc" -->
The include file had standard script to redirect the page to itself only with the https: prefix.
I can't do this with ASP.NET 2.0 with the code in a separate file, which seems to be the prefered way to do things. (I am new to ASP.NET) How can I achieve the same result in my .net pages?
I tried putting the code directly into the codeBehind but that gave the same kind of error.
Thanks,
Dana
In my plain ASP pages I had a directive like this in the header:
<!-- #include virtual="/ForceSSL.inc" -->
The include file had standard script to redirect the page to itself only with the https: prefix.
I can't do this with ASP.NET 2.0 with the code in a separate file, which seems to be the prefered way to do things. (I am new to ASP.NET) How can I achieve the same result in my .net pages?
I tried putting the code directly into the codeBehind but that gave the same kind of error.
Thanks,
Dana