How to execute in JavaScript function in ASP.NET using 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
10:03 UTC
Read the original article
Hit count: 278
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" />
<asp:TextBox ID="TxtOtherReason" runat="server" MaxLength="1024" TextMode="MultiLine" />
i want to create client side validation when check box is checked textbox is enable else disable.
© Stack Overflow or respective owner