when i click the save button record inserted, then the textbox values want to clear.
how can i do using csharp.
try
{
sql = "insert into Tb_common_Holidays ([Name],[Day],[Type],[Active]) " + "values('" + cb_Faculty_Code.Text + "','" + cb_daysweek.Text + "','F','A')";
GFun.InsertAccessData(sql);
MessageBox.Show("Records inserted successfully", "Inserted", MessageBoxButtons.OK, MessageBoxIcon.Information);
GFun.OleDbCon.Close();
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
this is the above code for saving the data in to the database it is working.
then in the run mode type the data in the textbox and then i click the save button the textbox values gets clear.
for that how can i do using csharp.
please help me.
Note it is windows application.
Regards
Narasiamn P.