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
sujit bista
NA
3
1.6k
inserting data using dataadapter
Jan 8 2013 2:04 AM
why is this code not working
String sql = "server=Mylappy-pc;UID=sa;PWD=helloworld;database=MySqlDbType";
SqlConnection cn = new SqlConnection(sql);
DataSet ds = new DataSet("Table1");
SqlDataAdapter da = new SqlDataAdapter("Select * from Region", cn);
da.Fill(ds, "Table1");
DataRow dr = dsTab.Tables["Table1"].NewRow();
dr["RegionId"] =11 ;
dr["RegionDescription"] ="Hello";
ds.Tables["Table1"].Rows.Add(dr);
SqlCommandBuilder projectBuilder = new SqlCommandBuilder(da);
DataSet newSet = ds.GetChanges(DataRowState.Added);
da.Update(newSet, "Table1");
Reply
Answers (
1
)
when i click the button the dateepicker date to be displayed
How To Use Routing Concept In c#.net