Пример #1
0
    protected void Button1_Click(object sender, EventArgs e)
    {
        requestDAO requestDao = new requestDAO();

        requestDao.deleteRequest(UserID.Text);

        getAllRequest();
    }
Пример #2
0
    public void getAllRequest()
    {
        requestDAO requestDao = new requestDAO();

        DataTable dataTable = requestDao.getRequest();

        rptruser.DataSource = dataTable;

        rptruser.DataBind();
    }
Пример #3
0
    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()));
    }