in this post, you can convert rupees or price to the words. here text changed event you have write this code.
.aspx code
.aspx code
<tr>
<td align="right" class="style15">
Amount Paid :
</td>
<td align="left" class="style17">
<asp:TextBox ID="txtamntpaying" runat="server" CssClass="ttextbox1" AutoPostBack="True"
OnTextChanged="txtamntpaying_TextChanged"></asp:TextBox>
</td>
<td colspan="1" align="right" class="style11">
Amount in Words :
</td>
<td align="left" colspan="3">
<asp:TextBox ID="txtamtinword" runat="server" CssClass="ttextbox1" ReadOnly="True"
Width="128px"></asp:TextBox>
</td>
</tr>
aspx.cs
using Num2Wrd;
protected void txtamntpaying_TextChanged(object sender, EventArgs
e)
{
try
{
txtamtinword.Text =
num.changeCurrencyToWords(Convert.ToDouble(txtamntpaying.Text));
}
catch (Exception ex)
{
Response.Write(ex.Message);
}
}
Hi Keran.... Is Num2Wrd a built in namespace or you have created your own namespace with list of classes necessary for conversion. Please let me know
ReplyDeletehi
ReplyDeleteThis comment has been removed by the author.
Delete