c# coding
private void FillVoucherList()
{
rbtnlVoucherType.DataSource = System.Enum.GetValues(typeof(VoucherTypes));
rbtnlVoucherType.DataBind();
rbtnlVoucherType.SelectedValue = VoucherTypes.Journal.ToString(); //it is the default selection of vouchertype as "Journal"
}// rbtnlVoucherType is the radio button list
Asp .net coding
<tr>
<td class="captionColumn">
Status
</td>
<td>
:
</td>
<td>
<asp:RadioButtonList ID="rbtnlStatus" runat="server" RepeatDirection="Horizontal"
AutoPostBack="True">
</asp:RadioButtonList>
</td>
</tr>
private void FillVoucherList()
{
rbtnlVoucherType.DataSource = System.Enum.GetValues(typeof(VoucherTypes));
rbtnlVoucherType.DataBind();
rbtnlVoucherType.SelectedValue = VoucherTypes.Journal.ToString(); //it is the default selection of vouchertype as "Journal"
}// rbtnlVoucherType is the radio button list
Asp .net coding
<tr>
<td class="captionColumn">
Status
</td>
<td>
:
</td>
<td>
<asp:RadioButtonList ID="rbtnlStatus" runat="server" RepeatDirection="Horizontal"
AutoPostBack="True">
</asp:RadioButtonList>
</td>
</tr>
No comments:
Post a Comment