Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

convert number to words asp.net c# (or) Convert rupees(numbers) into words using C#.Net

in this post, you can Convert rupees or price to the words. here text changed event you have write this code.

.aspx code

<tr>
                   
                    <td align="right" class="style15">
                        Amount Paid&nbsp; :
                    </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, EventArgse)
    {
        try
        {
            txtamtinword.Text = num.changeCurrencyToWords(Convert.ToDouble(txtamntpaying.Text));

        }
        catch (Exception ex)
        {
            Response.Write(ex.Message);
        }
    }




This post first appeared on Asp.netSourceCodes, please read the originial post: here

Share the post

convert number to words asp.net c# (or) Convert rupees(numbers) into words using C#.Net

×

Subscribe to Asp.netsourcecodes

Get updates delivered right to your inbox!

Thank you for your subscription

×