Disabling button on a webform


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Disabling button on a webform

  1. #1
    Join Date
    Dec 2005
    Posts
    17

    Question Disabling button on a webform

    Hi Guys,

    i have 4 buttons on a webform, and i want to disable one button based on the condition.
    can you guys help me with code..?
    thanks

  2. #2
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    If you want to disable it from the server (i.e., during a postback), set the button's .Enabled property to False. If you want to disable it on the client (i.e., without a postback), you'll have to use JavaScript: http://www.faqts.com/knowledge_base/view.phtml/aid/1747
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

Similar Threads

  1. Replies: 7
    Last Post: 07-17-2013, 12:47 AM
  2. Disabling a Tollbar button
    By miss_jess in forum VB Classic
    Replies: 1
    Last Post: 05-22-2005, 06:42 PM
  3. button listener not working
    By DrunkinP in forum Java
    Replies: 0
    Last Post: 03-31-2005, 10:36 AM
  4. Replies: 6
    Last Post: 04-09-2001, 03:40 PM
  5. Disabling Back and Reload button in Netscape
    By Kristof BONNAST in forum Web
    Replies: 0
    Last Post: 10-25-2000, 07:55 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center