Hello Everyone!
I am trying to make a simple form that is positioned within a contentHolder.
The "CommitChan ge" Function should do a simple action - update a message to the data in the textBoxes in the form. However, though I change the text through input (writing in the textBox txtEmail "yonatan@yahoo. com" for instance), the values stay the same as they were when the page loaded. Why Does the page not update the values in the textBoxes?
Here is the function:
Thank you to everyone,
Johnathan.
I am trying to make a simple form that is positioned within a contentHolder.
The "CommitChan ge" Function should do a simple action - update a message to the data in the textBoxes in the form. However, though I change the text through input (writing in the textBox txtEmail "yonatan@yahoo. com" for instance), the values stay the same as they were when the page loaded. Why Does the page not update the values in the textBoxes?
Here is the function:
Code:
protected void CommitChange(object sender, EventArgs e)
{
ContactMessage messageToUpdate = new ContactMessage(
idToEdit,txtName.Text,txtEmail.Text,txtPhone.Text,txtMsg.Text,DateTime.Now.ToShortDateString(),
int.Parse(DdlStatus.SelectedValue),int.Parse(DdlSubject.SelectedValue),txtAddress.Text,txtCity.Text,
txtMobile.Text,txtInnerText.Text);
BLLContactMessage.updateMessage(messageToUpdate);
lblOutput.Text = "Message Updated";
lblOutput.Visible = true;
}
Johnathan.
Comment