Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
Insert ComboBox selected value into table specific column?
Kanaparthi Sureshma Reddy
Aug 19 2015 9:17 AM
652
Reply
Hi,
I want to insert debit and credit values into the database table based on Combobox Selected Values.My ComboBox consists of Cr. and Dr. items and the Database table columns are Id,Name,Debit and Credit.When I select Debit from ComboBox and enter amount 1000 (in textbox) then the table Debit column should display as 1000Dr and the Credit column should be null like wise If I select Credit from ComboBox and enter amount 500 then the Credit column should display as 500Cr.(Debit column should be null).
Here is Example
Id Name Debit Credit
1 Ram 1000Dr. NULL
2 Ravan NULL 500Cr.
How to write code for this?
Thanks in advance.
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
How to set text in wpf richtext box
what is the use of DirectoryEntry control?