Webboy2008
asked on
asp.net radiobutton
if RdoProjectSpecialHazardYes .checked then TxtProjectSpecialHazardDes cription.r eadonly == false
if RdoProjectSpecialHazardNo. checked then TxtProjectSpecialHazardDes cription.r eadonly == true
How to add both condition in asp.net / c#? I would like code behind to do the validation check.
Thanks
if RdoProjectSpecialHazardNo.
How to add both condition in asp.net / c#? I would like code behind to do the validation check.
Thanks
<cc1:OboutRadioButton
FolderStyle="../app/UIStyleControls/Obout/Interface/styles/plain/OboutRadioButton"
ID="RdoProjectSpecialHazardYes" runat="server" Text="YES"
GroupName="RdoProjectSpecialHazard"
></cc1:OboutRadioButton>
<cc1:OboutRadioButton
FolderStyle="../app/UIStyleControls/Obout/Interface/styles/plain/OboutRadioButton"
ID="RdoProjectSpecialHazardNo" runat="server" Text="NO"
GroupName="RdoProjectSpecialHazard"
></cc1:OboutRadioButton>
<br /><br />
<cc1:OboutTextBox
ToolTip="Please describe..."
ID="TxtProjectSpecialHazardDescription"
TextMode="MultiLine" Height="100" Width="300" runat="server">
</cc1:OboutTextBox></div>
ASKER
your codes do not seem working
ASKER
and i prefer code behind since most of codes using code behind for validation. Thanks
Try like this:
TxtProjectSpecialHazardDescription.readonly = ((!RdoProjectSpecialHazardYes.checked || RdoProjectSpecialHazardNo.checked) ? true : false);
ASKER
can u show me in if statement?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
added a code with JQuery.Check..
Regards,
Open in new window
Open in new window