my in program
First call text from datadase then post it in textbox
second make a change on the text in textbos
finally I need the the change in database .
problem when I click on the save button does not make the change in textbox but only on the database
namespace WebApplication4
{
public partial class WebForm17 : System.Web.UI.Page
{
DATAACCESS aaa = new DATAACCESS();
string Dname = "Finding";
protected void Page_Load(object sender, EventArgs e)
{
aaa = new DATAACCESS();
TextBox2.Text= aaa.GetDoctext(Dname, 90);
}
protected void Button5_Click(object sender, EventArgs e)
{
string textboxvalue = Request.Form[TextBox2.UniqueID];
aaa.savetext(textboxvalue, Dname, 90);
}
}
}
What you should do is populate the text box only if the page has not been postback yet: