Login page

biggestmuff

Diamond Member
Mar 20, 2001
8,201
2
0
Is there an easy way to create a simple login page with username and password fields and a submit button?

Currently, visitors can hit my main page, then via htaccess files users are prompted to enter login/pass to get to www.myweb.com/blog and www.myweb.com/gallery

I'd like for visitors to hit my site's main page; something simple with login/pass fields then get directed to www.myweb.com/blog.

 

JACKDRUID

Senior member
Nov 28, 2007
729
0
0
use login control provided by asp.net 2.0
form authentication
<system.web>
<authentication mode="Forms">
<forms loginUrl="logon.aspx" name=".ASPXFORMSAUTH">
</forms>
</authentication>
<authorization>
<deny users="?" />
</authorization>
</system.web>

in your login control

destinationpageurl="yourdestinationpage"