예제 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         JFunctions.BindDropDownList(ddl_city, "city", "city_id", "select * from tbl_city");
         JFunctions.BindDropDownList(ddl_schooltype, "school_type", "school_type_id", "select * from tbl_school_type");
     }
 }
        protected void Page_Load(object sender, EventArgs e)
        {
            rbtnFemale.Checked = false;
            rbtnMale.Checked   = false;
            if (!string.IsNullOrWhiteSpace(Request.QueryString["IAC"]))
            {
                txtTeacherIDToPopulateDetails.Text = Request.QueryString["IAC"];
            }



            JFunctions.BindDropDownList(ddlCity, "city", "city_id", "select * from tbl_city");
            JFunctions.BindDropDownList(ddlCountry, "country", "country_id", "select * from tbl_country");
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                JFunctions.BindDropDownList(ddlCity, "city", "city_id", "select * from tbl_city");
                JFunctions.BindDropDownList(ddlClass, "class", "Class_id", "select * from tbl_class");
                JFunctions.BindDropDownList(ddlSection, "section", "Section_id", "select * from tbl_section");
            }


            if (!string.IsNullOrWhiteSpace(Request.QueryString["SIAC"]))
            {
                txtStudentIDForGettingInformation.Text = Request.QueryString["SIAC"];
            }
        }
예제 #4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            lbl_error.Visible = false;

            if (!IsPostBack)
            {
                JFunctions.BindDropDownList(ddl_type, "usertype", "usertype_id", "select * from tbl_usertype");
                ddl_type.Items.Insert(0, "--- Select User Type ---");
                if (Session["userid"] != null)
                {
                    Session.Remove("userid");
                    lbl_error.Text      = "You are logged in, you need to go back to your logged in page by loggin in again.";
                    lbl_error.Visible   = true;
                    lbl_error.ForeColor = Color.Blue;
                }
            }
        }