Exemplo n.º 1
0
    protected void DataList1_ItemCommand(object source, System.Web.UI.WebControls.DataListCommandEventArgs e)
    {
        if (e.CommandName == "onMore")
        {
            int cnd_id = Convert.ToInt32(e.CommandArgument);
            Session["req_cnd_id"] = cnd_id;
            Response.Redirect("clg_ad_view_more_details.aspx");
        }

        if (e.CommandName == "onAccept")
        {
            int cnd_id = Convert.ToInt32(e.CommandArgument);

            int i = clg_ad_obj.onClickAccept(cnd_id);
            if (i > 0)
            {
                dataListBind();
            }
        }

        if (e.CommandName == "onReject")
        {
            int cnd_id = Convert.ToInt32(e.CommandArgument);
            int i      = clg_ad_obj.onClickReject(cnd_id);
            if (i > 0)
            {
                dataListBind();
            }
        }
    }