コード例 #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Session["UserLogin"] != null)
            {
                DataSet ds = GetDetails();
                RepeaterDetails.DataSource = ds;
                RepeaterDetails.DataBind();

                ds = GetSkills();
                RepeaterSkills.DataSource = ds;
                RepeaterSkills.DataBind();

                ds = GetRequests();
                RepeaterRequested.DataSource = ds;
                RepeaterRequested.DataBind();

                ds = GetApplier();
                RepeaterRequesters.DataSource = ds;
                RepeaterRequesters.DataBind();
            }
            else
            {
                Response.Redirect("Login.aspx");
            }
        }
    }
コード例 #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["UserLogin"] != null)
        {
            DataSet ds = GetData();
            RepeaterProfile.DataSource = ds;
            RepeaterProfile.DataBind();

            ds = GetSkills();
            RepeaterSkills.DataSource = ds;
            RepeaterSkills.DataBind();
        }
        else
        {
            Response.Redirect("Login.aspx");
        }
    }