Esempio n. 1
0
 protected void btnAdd_Click(Object Sender, EventArgs e)
 {
     if (lblId.Text == "0")
     {
         oDidYouKnow.Add(txtDescription.Text);
     }
     else
     {
         oDidYouKnow.Update(Int32.Parse(lblId.Text), txtDescription.Text);
     }
     Response.Redirect(Request.Path);
 }