0 aspx:
<asp:TextBox runat="server" ID='txtvalue'></asp:TextBox>
<asp:Button runat="server" ID='btnconvert' Text='Convert'
onclick="btnconvert_Click" /><br />
<asp:Label runat="server" ID='lblResult'></asp:Label>
C#: ---> code on button event
decimal dec = decimal.Parse(txtvalue.Text);
lblResult.Text = dec.ToString();
0 Easy code and quick respond. Thanx!
0 oops remove that line just use the below line
0 @Ramesh,
Your code work very well. But there is something happen.
When I put this line I receive one message error in red color. But the last result its converted in decimal:
totale = decimal.TryParse (d1 + d2 + d3 + d4);
Error 1 No overload for method 'TryParse' takes 1 arguments