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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sanjay KumarRank #561 · 4.3K reputationPosted Oct 21, 2013, 2:44 AM EDT
Please give us some more details.
Mohan kadam18 reputationPosted Oct 21, 2013, 2:58 AM EDT
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 KumarRank #561 · 4.3K reputationPosted Oct 21, 2013, 3:20 AM EDT
Sanjay KumarRank #561 · 4.3K reputationPosted Oct 21, 2013, 3:32 AM EDT
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