Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / May 2007

Tip: Looking for answers? Try searching our database.

Username and Password

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ahmd - 13 May 2007 06:12 GMT
Pls some one help me. i have a users table in my database and a login
screen. when login button is clicked after supplying usernme password,
i want to check it from the database and if username and password is
right..then login into admin page.

Pls helpg. very urgent. I user SQL Serverf 2000 db.

thanks
Mark Rae - 13 May 2007 09:31 GMT
> Pls some one help me. i have a users table in my database and a login
> screen. when login button is clicked after supplying usernme password,
> i want to check it from the database and if username and password is
> right..then login into admin page.
>
> Pls helpg. very urgent. I user SQL Serverf 2000 db.

How is your ASP.NET app currently querying your SQL Server? Do you use a
DAL?

Signature

http://www.markrae.net

Ahmd - 13 May 2007 14:16 GMT
> > Pls some one help me. i have a users table in my database and a login
> > screen. when login button is clicked after supplying usernme password,
[quoted text clipped - 7 lines]
>
> --http://www.markrae.net

I use SQL Datasource to connect to sql server.
Mark Rae - 13 May 2007 14:30 GMT
> I use SQL Datasource to connect to sql server.

Ah...

Is it not possible to run a stored procedure to which you pass the userid
and password as parameters and which returns you the number of users which
meet those criteria...?

It the answer is 1, then the login was successful...

Signature

http://www.markrae.net

Ahmd - 14 May 2007 05:29 GMT
> > I use SQL Datasource to connect to sql server.
>
[quoted text clipped - 7 lines]
>
> --http://www.markrae.net

Sorry im new to asp.net, pls can u give me sample code to do this
task. i mean a store procedure to check usernname and a password.
thanks in advance
Mark Rae - 14 May 2007 06:51 GMT
>> > I use SQL Datasource to connect to sql server.
>>
[quoted text clipped - 12 lines]
> task. i mean a store procedure to check usernname and a password.
> thanks in advance

CREATE PROC CheckLogin
   @pstrUserID        varchar(20)
   @pstrPassword    varchar(20)
SELECT COUNT(*) FROM tblUser
WHERE strUserID = @pstrUserID
AND strPassword = @pstrPassword

Signature

http://www.markrae.net

Ahmd - 14 May 2007 10:45 GMT
> >> "Ahmd" <mkahme...@gmail.com> wrote in message
>
[quoted text clipped - 27 lines]
>
> - Show quoted text -

Thank you very much for this. if you dont mind.. pls tell me, how to
pass the parameter to the stored procedure as i have never used stored
procedure before and also how to check what it retrived( i mean 1 or
0)

thanks in advance..
Mark Rae - 14 May 2007 10:55 GMT
> Thank you very much for this. if you dont mind.. pls tell me, how to
> pass the parameter to the stored procedure as i have never used stored
> procedure before and also how to check what it retrived( i mean 1 or
> 0)

Please don't take this the wrong way, but database integration is absolutely
*fundamental* to any sort of web application...

I appreciate that you are a newbie - we were all newbies once - but you are
going to struggle very badly unless you acquire some very basic ASP.NET
knowledge...

I suggest you get a copy of this:
http://www.amazon.com/ASP-NET-Everyday-Apps-Dummies-Computer/dp/0764597760/ref=p
d_sim_b_1/104-8662182-0953532?ie=UTF8&qid=1177696190&sr=8-2


and work your way through it...

Otherwise, you're going to be forever asking "What do I do next?", "What do
I do next?"...

Signature

http://www.markrae.net

Ahmd - 14 May 2007 12:43 GMT
> > Thank you very much for this. if you dont mind.. pls tell me, how to
> > pass the parameter to the stored procedure as i have never used stored
[quoted text clipped - 16 lines]
>
> --http://www.markrae.net

Thank you for your advice.. i really appreciate you.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.