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
which redirects to login.aspx if not logged in
I have then got a login.aspx page with the vs2005 login tool
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
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