For Programmers: Free Programming Magazines  


Home > Archive > C# > June 2006 > Enable and disable a control in ASP.NET 2.0 using javascript









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Enable and disable a control in ASP.NET 2.0 using javascript
dreamboy

2006-06-24, 8:15 am

Hi,
I have tried to use the following to enable and disable a textbox
control in javascript, when a button is clicked.This is in ASP.NET 2.0,
using master pages.

document.getElementbyID("ctl100_content_textbox1").disabled =true

This will only blur the control, but i still can type or delete from
it. BUT NOT DISABLE.

Any idea whats wrong?

DB.!

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com