protected void Button1_Click(object sender, EventArgs e) { requestDAO requestDao = new requestDAO(); requestDao.deleteRequest(UserID.Text); getAllRequest(); }
public void getAllRequest() { requestDAO requestDao = new requestDAO(); DataTable dataTable = requestDao.getRequest(); rptruser.DataSource = dataTable; rptruser.DataBind(); }
protected void btnRequest_Click(object sender, EventArgs e) { requestDAO obj = new requestDAO(); obj.addRequest(new requestDTO(tbBook.Text, tbAuthor.Text, tbType.Text, rbEdition.Text, Session["UID"].ToString())); }