How to use Login Control in VS.2005 to Authenticate User ?

L

Luqman

How can I authenticate a User with Sql Server 2000 Sql Authentication, do I
need to use sqldatasource control or something else ?

Say, my User Name is : sa, and Password is: mypwd, initial catalog=Northwind

I tried following :

Login1_Authenticate(...)

sqldatasource.connectionstring="Data Source=MyServer; User ID=sa;
Password=mypwd; Initial Catalog=Northwind"

Whats next, I don't know

If login is succeeded, then response.redirect("Main.aspx")

End sub




Any idea please ?

Best Regards.

Luqman
 

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

Forum statistics

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

Latest Threads

Top