Website Login
Hi,
On my asp .net site, I want a login page so that when the user is logged in, a few extra links are made visible on the header control (.ascx). Also, there will only be about 4-6 users logging in here, I also want to give each one the ability to edit their own info from a database table. I have allready tried "Forms" authentication and this is what happens.
<authentication mode="Forms" />
<Forms name=".ASPXSession" loginUrl="FacLogin.aspx" protection="All" />
<credentials passwordFormat = "Clear">
<user name="admin" password="admin"/>
</credentials>
</forms>
</authentication>
Of course, this doesn't work, making me really quite angry and frustrated. The error message I receive is as follows: Parser Error Message: Unrecognized configuration section 'forms'
There is little or no documentation on this error and I feel like killing myself someone.
Please help :sad:
Slade
Practically a Master Poster
633 posts since Mar 2004
Reputation Points: 115
Solved Threads: 7
hi, I ended up fixing that one. What happened was, I didn't realize the sensitivity of the program an dso I just copied code directly off the net, of course, space characters and whatever else was included in this, hence the error. I ended just retyping the whole lot, then it worked fine.
Thanks for the help tho!
Slade
Slade
Practically a Master Poster
633 posts since Mar 2004
Reputation Points: 115
Solved Threads: 7
What I want of my login system is that when a user is logged in (there is only about 5 and all are declared in the web.config), I want two more imagebuttons to appear in the header, what code will I need to do that?
N.B. I'm using VB .NET
if <strong>HttpResponse.Cookies</strong> = FormsAuthentication.Authenticate then
imgButton1.visible = true
Is that on the right track? Any ideas guys?
Slade
Practically a Master Poster
633 posts since Mar 2004
Reputation Points: 115
Solved Threads: 7