Click here to Skip to main content
16,017,899 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I want to Insert upto decimal(6,2) value in text box using c#.net


Thanks,
Abhimanyu Rawat
Posted
Comments
What have you tried and where is the problem?
krushna chandra jena 11-Mar-14 8:28am    
Can you clarify ? do you want to restrict the user in a textbox insert upto decimal(6,2) or try to insert in database from textbox decimal(6,2)..

1 solution

Try this:

string.Format("{0:N6}", decimal);
 
Share this answer
 

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