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
aliya ahmed
NA
5
0
data not inserted in sql database
Sep 24 2009 3:05 PM
hi! I am trying to insert data from textboxes in sql server 2005 database using dataset(table adapters) in c# windows application I have made two tables in my database i.e. product and country table. In country table adapter i add query of insert and execute there and its working correctly but when i m using textboxes to insert data in tables, it not works and even not giving any errors or exceptions. plz help me out! herez the code, private void button1_Click(object sender, EventArgs e) { DataSet1TableAdapters.countryTableAdapter cta = new WindowsApplication4.DataSet1TableAdapters.countryTableAdapter(); DataSet1.countryDataTable ctbl = new DataSet1.countryDataTable(); cta.Insertdata(textBox1.Text, textBox2.Text); }
Reply
Answers (
5
)
When sending emails via C# how do you get the current users email address to put in the mail.From.Add(fromAddress)??
how to add icon to User's Programs Menu folder of a deployed app