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
Mfwamba Tshimanga
NA
155
46.2k
Two buttons: "Back" and "Next"
Feb 4 2015 10:33 AM
Hi!
I need to scroll my datas with these buttons ("Back" and "Next"). With these codes how can I scrolling my datas showing on my textboxes.
conn = new OleDbConnection(connstr);
comm = new OleDbCommand();
conn.Open();
OleDbParameter date = new OleDbParameter("@date", SqlDbType.VarChar);
OleDbParameter cod = new OleDbParameter("@cod", SqlDbType.VarChar);
OleDbParameter name = new OleDbParameter("@name", SqlDbType.VarChar);
comm.Parameters.Add(date);
comm.Parameters.Add(cod);
comm.Parameters.Add(name);
date.Value = dateTimePicker2.Text;
cod.Value = txtCode.Text;
name.Value = txtWork.Text;
comm.Connection = conn;
comm.CommandText = "insert into power ([date],[cod],[name]) values(@date,@cod,@name)";
try
{
comm.ExecuteNonQuery();
MessageBox.Show("Saved...");
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
finally
{
conn.Close();
Reply
Answers (
2
)
How To Use smileys in SMS
How to export .rtf file in ASP.Net