Exemple #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         bindgrid();
         fillddl();
         DropDownDId.DataSource     = db.manage_designationmaster(0, "", 4);
         DropDownDId.DataTextField  = "Designation";
         DropDownDId.DataValueField = "DegId";
         DropDownDId.DataBind();
         DropDownDId.Items.Insert(0, "--Select Designation--");
         DropDownCity1.Items.Insert(0, "--Select city--");
     }
 }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            filldata();

            int id = Convert.ToInt16(Session["EmpId"].ToString());
            fillddl();
            DropDownDId.DataSource     = db.manage_designationmaster(0, "", 4);
            DropDownDId.DataTextField  = "Designation";
            DropDownDId.DataValueField = "DegId";
            DropDownDId.DataBind();
        }
    }