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); }
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); }