-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: DotNet_Beginner
Message 3 in Discussion

Hi Sid,   The same can also be achieved by using following way.   Hope you 
might be already having an client side onclick event for check-box to enable 
and disable the textbox. Now you add a client side onclick event to the Web 
Server Button Control as mentioned below.   
Button1.Attributes.Add("onclick","return fnCheck();"); -- C# Code snipet   and 
Add the following client side Java Script function in the HTML part of the aspx 
page.   function fnCheck()  {   var txtBoxObj = 
document.getElementById("TextBox1");  if(txtBoxObj.disabled)  {  return false;  
}  }   Onclik of the button, above mentioned fnCheck() function check whether 
the textbox is enaled or disabled and return the value. If the textbox is 
disabled no validation occurs.    Hope this code help you to resolve your 
issue.   I welcome any suggestion on this logic.   Thanks, Senthilkumar.T

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/BDOTNET/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member 
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you 
received this message by mistake, please click the "Remove" link below. On the 
pre-addressed e-mail message that opens, simply click "Send". Your e-mail 
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to