Click here to Skip to main content
15,886,104 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
ASP.NET
<label class="col-sm-2 control-label">
                IsDutiable:
            </label>
            <div class="col-sm-3 ">
                <asp:CheckBox ID="txtIsDutiable" runat="server" Checked="true" />
            </div>

it return true or false,i want that i get Y or N in rdlc report??
Posted

1 solution

Learn to use the ternary[^] operator...
C#
char cRV  = txtIsDutiable.Checked ? 'Y' : 'N';
 
Share this answer
 
Comments
Sajid227 6-Jan-15 15:34pm    
how i insert it into database??
empStatus.IsDutiable = txtIsDutiable.Checked;
while saving its give error
Maciej Los 6-Jan-15 17:37pm    
+5!
Sajid227 6-Jan-15 18:33pm    
what is it??fellow
Maciej Los 6-Jan-15 18:59pm    
I voted five stars.
Sajid227 6-Jan-15 19:12pm    
whom?me or Kornfeld Eliyahu Peter,

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900