Wrox Programmer Forums
ASP.NET 3.5 Basics If you are new to ASP or ASP.NET programming with version 3.5, this is the forum to begin asking questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Basics 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
Old November 9th, 2009, 04:35 PM
Authorized User
Join Date: Mar 2009
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
Default Access login control fields

Hello, I want to check on the login screen if a user has been locked out. I cant use the LoginName to check as the user is not logged in. So I want to access the user name text box.

In the login control I use the layout tempate to hold a textbox with ID = UserName.

In Page_Load, I'm using this:

MembershipUser user = Membership.GetUser(UserName.Text);

Then I can check if user.IsLockedOut.ToString() is True or False.

But the C# code-behind will not recognise the UserName text box.

What am I doing wrong?


Similar Threads
Thread Thread Starter Forum Replies Last Post
SqlDataSource Control: Update clearing most fields Aaron Edwards ASP.NET 2.0 Basics 0 August 23rd, 2007 05:41 PM
Referencing Fields within Tab Control Pages -Help TomW Access VBA 1 October 30th, 2006 01:31 PM
Login Control Mahill ASP.NET 2.0 Basics 1 May 19th, 2006 02:03 PM
How to access Simply Accounting fields from Access lguzman Access VBA 4 September 16th, 2004 02:55 PM

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