DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  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: 5
    Last Post: 06-03-2013, 04:54 AM
  2. Disabling a Tollbar button
    By miss_jess in forum VB Classic
    Replies: 1
    Last Post: 05-22-2005, 05:42 PM
  3. button listener not working
    By DrunkinP in forum Java
    Replies: 0
    Last Post: 03-31-2005, 09:36 AM
  4. Replies: 6
    Last Post: 04-09-2001, 02:40 PM
  5. Disabling Back and Reload button in Netscape
    By Kristof BONNAST in forum Web
    Replies: 0
    Last Post: 10-25-2000, 06:55 AM

Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links