Ejemplo n.º 1
0
        private void BindGrid()
        {
            if (Cache["AgentType"] == null)
            {
                Cache["AgentType"] = biz.GetAgentTypeList().DataResponse;
            }

            ddlAgentype.DataSource = Cache["AgentType"];
            ddlAgentype.DataBind();

            ddlAgentTypeUpdate.DataSource = Cache["AgentType"];
            ddlAgentTypeUpdate.DataBind();


            GvLicense.DataSource = biz.GetLicensetypeList("").DataResponse;
            GvLicense.DataBind();

            ddlAgentype.Items.Add(new ListItem("--เลือก--", ""));
            ddlAgentype.SelectedValue = "";

            ddlInsuran.Items.Add(new ListItem("--เลือก--", ""));
            ddlInsuran.SelectedValue = "";
        }
Ejemplo n.º 2
0
 private void BindDrop()
 {
     GvLicense.DataSource = biz.GetLicensetypeList(ddlAgentype.SelectedValue).DataResponse;
     GvLicense.DataBind();
 }
Ejemplo n.º 3
0
 private void Bind()
 {
     GvLicense.DataSource = biz.GetLincse0304("").DataResponse.Tables[0];
     GvLicense.DataBind();
 }