Hi dear S/W Eng and Asp.net c# Developer.
I am facing a big problem during converting a textbox value to decimal. baceous the Database type of that variable is decimal(4,4) that is client requirement.From front end when we passing a value like 1234.0000 MSSQL throws exception "Fail to convert numeric to decimal " Pls must guide or solve this problem.
Best Re guards
Thanks in Advance
Answered by kvprajapati 1,826 in a post from
Jump to Post
Use Decimal.TryParse() method to parse the input. Use parameterized insert/update query instead of hard-coded sql string.
All 3 Replies
kvprajapati 1,826 Posting Genius Team Colleague
crishlay 0 Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.