how can i display textbox value after saving and next time to open the form that time display these value .so please to help for codeing.
how to return textbox value after saving ,next time display
sir,
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sanjay KumarPosted Oct 21, 2013, 7:32 AM
protected void Button1_Click(object sender, EventArgs e)
{
Insert();
}
public void Insert()
{
try
{
_conn = new SqlConnection(con);
_cmd = new SqlCommand();
_cmd.Connection = _conn;
_conn.Open();
_cmd.CommandType = CommandType.StoredProcedure;
_cmd.CommandText = "insert_date";
_cmd.Parameters.Add("@Date",SqlDbType.DateTime).Value = DateTime.Now;
_cmd.ExecuteNonQuery();
_conn.Close();
}
catch (Exception ex)
{
}
}
http://www.w3schools.com/sql/func_getdate.asp
Sanjay KumarPosted Oct 21, 2013, 7:20 AM
Mohan kadamPosted Oct 21, 2013, 6:58 AM
i am saving my account setting information then next time to open these form that time to display same data previous saving. so help me.
Sanjay KumarPosted Oct 21, 2013, 6:44 AM
Please give us some more details.