TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Shyja Abraham
NA
69
0
Convert decimal values
Jun 28 2011 12:47 AM
I have a form with 3 textboxes and aslo other tools. in these 3 have decimal values.
in databse ,table have 4 fields (name varchar(),qty decimal(),value decimal(),price decimal()) named item
When we insert the the textbox values into the databse it passes only integer part values not decimal points. i use storedprocedure.
I use the code like
cn.insert( textbox1.text,
Convert
.ToDecimal(textBox2.Text),
Convert
.ToDecimal(textBox3.Text),
Convert
.ToDecimal(textBox4.Text))
but it takes only integer part. how we insert decimal point values ? plz help.
Reply
Answers (
3
)
Dynamically Setting a Form's Control Property (Textbox)
How/What the difference between new, Assembly.CreateInstance, and System.Activator.CreateInstance?