Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

trying to create login with sql table users

Status
Not open for further replies.

davejam

Technical User
Jan 6, 2004
313
GB
hi all,

sorry if this is really basic but having only just started to look at using asp.net from scratch i'm really struggling.

for clarification I am using asp.net v2 from vs2005, set up webfolder and can access externally without error

I have been trying to follow tutorials on creating secure sites with login but when it gets to the crutial bit i seem to completely get lost, or the tutorial goes off on a tangent

ok, i have created the authentication restriction in web.config as follows

Code:
    <authentication mode="Forms">
      <forms name="yourAuthCookie" loginUrl="login.aspx"
        protection="All" path="/" />
    </authentication>
    <authorization>
      <deny users="?" />
    </authorization>

which redirects to login.aspx if not logged in

I have then got a login.aspx page with the vs2005 login tool
Code:
        <asp:Login ID="Login1" runat="server">
        
        </asp:Login>

i have created a link to my sql server using server explorer -> data connections and tested the connection

i have my table called login with the following fields

LoginID
Company
Username
Password
Restriction

right, i just want the login to simply accept the values in login.aspx, authenticate with table then allow access to the site...

i'm missing the final yet crutial link i think, any help would be appreciated.

daveJam

even my shrink says its all your f#@/ing fault
 
I'm starting too but I think taht the login control works only with the sqlserver security database.

"I think" that if you are making you own login method....

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top