J
Jeff
Hey
ASP.NET 2.0
I have a webpage which in the Page_Load event loads values into 2 textboxes,
these textboxes shows the values in these Profile properties. But if the
user changes the text in these textboxes and click on the save button (see
btnSave_Click ) the value saved are the values these textboxes reveived in
the Page_Load event -> no updated occured!
What should I do to fix this?
protected void Page_Load(object sender, EventArgs e)
{
txtFreeText.Text = Profile.FreeText;
txtWebsite.Text = Profile.WebSite;
}
protected void btnSave_Click(object sender, EventArgs e)
{
Profile.WebSite = txtWebsite.Text;
Profile.FreeText = txtFreeText.Text;
}
ASP.NET 2.0
I have a webpage which in the Page_Load event loads values into 2 textboxes,
these textboxes shows the values in these Profile properties. But if the
user changes the text in these textboxes and click on the save button (see
btnSave_Click ) the value saved are the values these textboxes reveived in
the Page_Load event -> no updated occured!
What should I do to fix this?
protected void Page_Load(object sender, EventArgs e)
{
txtFreeText.Text = Profile.FreeText;
txtWebsite.Text = Profile.WebSite;
}
protected void btnSave_Click(object sender, EventArgs e)
{
Profile.WebSite = txtWebsite.Text;
Profile.FreeText = txtFreeText.Text;
}