473,385 Members | 1,944 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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

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

Feb 15 '06 #1
1 1063
DWS
look for aspnet_regsql in help
Good Luck
DWS
"Luqman" wrote:
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

Feb 15 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Brian Henry | last post by:
I have an existing user managment system that has been in our asp.net 1.1 app for a couple years now, all the user managment is done through an application that is a win form, and stored in SQL...
2
by: RedEye | last post by:
Hello, I have been working on an ASP.NET application for the past 2 weeks and everything has been going fine. I am using the ASP.NET login controls to handle user logins and I'm using SQL 2005...
1
by: Dina | last post by:
Hi, I'm a newbie trying out my first ASP.NET 2.0 website. I'm trying to use the Login control to authenticate users. I want the control to make use of an existing table, containing user details,...
1
by: EricRybarczyk | last post by:
I am starting a rewrite of an existing Classic ASP web site in ASP.NET 2.0. The existing ASP application has several types of users, each with a separate login process (separate login page,...
3
by: Bruce | last post by:
I just started the design of an ASP.NET application which accesses one of our custom web services to provide user authentication, among other purposes. I created a log-in page (code below),...
0
by: asadikhan | last post by:
Hi, I am trying to use the login control functionality on my website. I have created this folder called Media which will contain the secured pages of my site. I dragged a Login control on a...
5
by: Afshar | last post by:
Hi everybody there, I have a special Login page that wants users to enter 3 passwords rather than a single password. But can't do it with Login control. I tried following scenarios: 1. Put an...
3
by: Max2006 | last post by:
Hi, I am using ASP.NET 2.0 Membership and I need to authenticate a user without using login control. Is there any sample code that shows me how to do that? Thank you, Max
1
by: chris fellows | last post by:
I'm trying to use the ASP.NET 2 Login control to authenticate users held in a SQL Server database. Is it possible to implement a finite session period of say 20 minutes after which time the user is...
1
by: =?Utf-8?B?VEo=?= | last post by:
Hi, Environment : Asp.net 2.0 / C# As you know, there is a "Remember me" check box in Login control is VS.NET 2005. It allows you to get in the page without logging it if user closes browser,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.