Exemplo n.º 1
0
        protected void fill_collegues()
        {
            bus.userid = int.Parse(Session["user_id"].ToString());
            DataTable dt4 = bus.fetch_collegues();

            if (dt4.Rows.Count > 0)
            {
                ddljobc.DataSource = dt4;
                ddljobc.DataBind();
                ddljobc.Items.Insert(0, new ListItem("-----SELECT-----", ""));
            }
            else
            {
                ScriptManager.RegisterStartupScript(this, GetType(), "displayalertmessage", "warning();", true);
            }
        }