Any MVP in ASP.Net?

  • Thread starter Alfredo Barrientos
  • Start date
A

Alfredo Barrientos

Hi,

Does anybody know a MVP in ASP.Net who could help me?

Thanks,

Alfredo Barrientos
 
A

Alfredo Barrientos

Yeah!! Thanks for answer!!

Here my question...

I want to use Forms Authentication with SSL, but just in my login page.
I mean, use https for login page, and redirect to http if my user has
been logged correctly.

Thanks,

Alfredo Barrientos
 
B

Bruce Barker

the easiest approach is in the OnInit (though you could use onload), check
the protocol and if it is not https, do a Response.Redirect() to userself
with the https protocol

if (!Request.IsSecure)
{
Response.Redirect("https://mysite" + Request.RawUrl );
Response.End();
}

if you have a custom list of secure pages, move code to begin request in the
application object.

-- bruce (sqlwork.com)
 
S

Steve C. Orr [MVP, MCSD]

To expand on Bruce's fine suggestion, you could put similar code in the
Application_BeginRequest event in your Global.asax.vb file to validate the
URL of every page request.
If the Request.RawURL contains the url to your login page then redirect to
https (when it's not already https) and redirect all other pages to http
(when they aren't already http.)
 
J

Joe Schmoe

Wow, now if that's not a question that deserves the rude answer of "RTFM"
I don't know what would be. :)
 
L

Lau Lei Cheong

It could be "GIYF"(Anyway they are more or less the same, but there's one
varient of RTFM that carries a "taboo" word. :) )
 
A

Alan Silver

It could be "GIYF"(Anyway they are more or less the same, but there's one
varient of RTFM that carries a "taboo" word. :) )

Just as a mild Sunday-afternoon aside, should RTM (polite version!!) be
updated to RTSDK? I don't think there *is* a manual for ASP.NET!!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top