How to execute in javascriptfunction in asp.net c#

Posted by shree-khanal on Stack Overflow See other posts from Stack Overflow or by shree-khanal
Published on 2010-05-31T09:47:54Z Indexed on 2010/05/31 9:52 UTC
Read the original article Hit count: 282

Filed under:
|

i have a textarea which i want to disable when I check a checkbox. I made a working demo in plain html and javascript, but When I am migrating to Asp.net, neither the function is being executed nor I can keep the onselect event in my check box.

<asp:CheckBox ID="ChkOthers" runat="server" Text="Others(Please Explain)" Width="205px" AutoPostBack="True" OnCheckedChanged="ChkOthers_CheckedChanged" /></td>


 <asp:TextBox ID="TxtOtherReason" runat="server" MaxLength="1024" TextMode="MultiLine" ></asp:TextBox></td>

i want to create client side validation when check box is checked textbox is enable else disable.

© Stack Overflow or respective owner

Related posts about c#

Related posts about ASP.NET