protected void btnSend_Click(object sender, EventArgs e) { Classes.Publisher p = new Classes.Publisher(); p.publisherName = txtPublisherName.Text; p.addPublisher(); Response.Redirect("~/default.aspx"); }
protected void btnSend_Click(object sender, EventArgs e) { int publisherId = int.Parse(Session["publisherId"].ToString()); Classes.Publisher p = new Classes.Publisher(); p.publisherName = txtPublisherName.Text; p.updatePublisher(publisherId); Response.Redirect("~/App/publisher/listPublishers.aspx"); }