Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0
This is the forum to discuss the Wrox book ASP.NET 2.0 Website Programming: Problem - Design - Solution by Marco Bellinaso; ISBN: 9780764584640
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old August 9th, 2006, 05:02 AM
Authorized User
 
Join Date: Aug 2006
Location: Mostar, HNK, Bosnia and Herzegovina.
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to hcusto
Default Problem with authentication users

I have a form with Username and Password Field.
Also in my Tbl_Users table, I have stored username and password for users in Username, Password columns.

What i want to do now is, when somone enter username and password to go to table (I am using SQLExpres db.) check is there user with provided password and if there is user to create Session "USER" with USER_ID (which I get from Tbl_Users table, column UserID)

I am using C#

Thanks in advance

  #2 (permalink)  
Old August 9th, 2006, 10:39 AM
Authorized User
 
Join Date: May 2006
Location: , , .
Posts: 99
Thanks: 0
Thanked 1 Time in 1 Post
Default

I suggest that you take a look at this help topic:
ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_aspnetcon/html/79184d17-f4c7-4c9f-a073-cec4f5543980.htm

When you are done there check out the Membership class provided here:
ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.NETDEVFX.v20.en/cpref12/html/T_System_Web_Security_Membership_Members.htm

Also, the book, uses the login control and associated membership providers in ASP.Net 2.0. Why are you trying to reinvent the wheel? If you need to use your own table, however, you'll have to write your own membership provider which is explored on page 115 in Chapter 4.

  #3 (permalink)  
Old August 9th, 2006, 02:32 PM
Authorized User
 
Join Date: Aug 2006
Location: Mostar, HNK, Bosnia and Herzegovina.
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to hcusto
Default

Thnx, i will try to do it your way.



Similar Threads
Thread Thread Starter Forum Replies Last Post
Authentication users hcusto ASP.NET 2.0 Basics 0 August 9th, 2006 04:44 AM
users and authentication raja_699 BOOK: ASP.NET Website Programming Problem-Design-Solution 1 February 1st, 2005 07:04 PM
ModuleConfig Users and Authentication Chapter 5 seanmayhew BOOK: ASP.NET Website Programming Problem-Design-Solution 0 July 5th, 2004 10:49 AM
Users and Authentication p. 179 chiefg BOOK: ASP.NET Website Programming Problem-Design-Solution 3 June 28th, 2004 01:19 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.