Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 28th, 2003, 05:29 AM
Registered User
 
Join Date: Jun 2003
Location: Leeds, , United Kingdom.
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Disable Form Elements

Guys

I'm adding various layers of security to a web site and need a little guidance. I've set up some routines that check login attempts, freezing a user if thay attempt to login more than x times.

What I would like to do is disable the form submit button too.

Has anyone implemented something similar? I would prefer not to use Javascript.

TIA

Joe
  #2 (permalink)  
Old October 28th, 2003, 10:41 AM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Presumably you are posting back for each login attempt... so you should be able to just sent button.Enabled = False once they have reached their login limit.

The WebControl base class has the Enabled property so all controls derived from that will as well. They each behave differently, but they are all "Disable-able".

Peter
  #3 (permalink)  
Old October 31st, 2003, 08:11 AM
Registered User
 
Join Date: Jun 2003
Location: Leeds, , United Kingdom.
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Cheers Peter

':: Diable Textboxes
txtUserName.Enabled = False
txtPassword.Enabled = False
':: Disable Submit button
btnLogin.Enabled = False

Sorted it

Joe
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to disable form design ? sms Access 2 May 19th, 2008 02:06 AM
Enable/Disable Form Elements Question kwilliams Javascript 4 February 28th, 2006 11:28 AM
disable input elements without using "disabled" pollockc HTML Code Clinic 5 January 24th, 2006 10:51 AM
Disable/Enable elements ldoodle Javascript How-To 3 June 7th, 2005 05:48 AM



All times are GMT -4. The time now is 06:51 PM.


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