Esempio n. 1
0
    protected void Bind()
    {
        int       gameid   = Convert.ToInt32(Request.QueryString["gameid"]);
        int       playerid = Convert.ToInt32(Request.QueryString["playerid"]);
        DataTable dt       = gdiObj.getInfobyIds(gameid, playerid);
        DataTable gamedt   = giObj.getInfobyId(gameid);
        DataTable playerdt = piObj.getInfobyId(playerid);

        txttime.Text            = gamedt.Rows[0][1].ToString();
        ddlhost.SelectedValue   = gamedt.Rows[0][2].ToString();
        ddlplayer.SelectedValue = playerdt.Rows[0][1].ToString();
        playingtime.Text        = dt.Rows[0][2].ToString();
        score.Text    = dt.Rows[0][3].ToString();
        rebound.Text  = dt.Rows[0][4].ToString();
        assist.Text   = dt.Rows[0][5].ToString();
        cap.Text      = dt.Rows[0][6].ToString();
        steal.Text    = dt.Rows[0][7].ToString();
        hit.Text      = dt.Rows[0][8].ToString();
        shot.Text     = dt.Rows[0][9].ToString();
        thit.Text     = dt.Rows[0][10].ToString();
        tshot.Text    = dt.Rows[0][11].ToString();
        freehit.Text  = dt.Rows[0][12].ToString();
        freeshot.Text = dt.Rows[0][13].ToString();
        foul.Text     = dt.Rows[0][14].ToString();
    }
Esempio n. 2
0
    protected void Bind()
    {
        int       id = Convert.ToInt32(Request.QueryString["id"]);
        DataTable dt = piObj.getInfobyId(id);

        txtname.Text = dt.Rows[0][1].ToString();
        ddlteamname.SelectedValue = dt.Rows[0][4].ToString();
        txtHeight.Text            = dt.Rows[0][2].ToString();
        txtWeight.Text            = dt.Rows[0][3].ToString();
        num.Text               = dt.Rows[0][5].ToString();
        country.Text           = dt.Rows[0][6].ToString();
        rk.Text                = dt.Rows[0][7].ToString();
        ra.Text                = dt.Rows[0][8].ToString();
        isActive.SelectedIndex = Convert.ToInt32(dt.Rows[0][9]);
    }
Esempio n. 3
0
    protected void Bind()
    {
        int       honouryear = Convert.ToInt32(Request.QueryString["honouryear"]);
        int       playerid   = Convert.ToInt32(Request.QueryString["playerid"]);
        DataTable dt         = hiObj.getInfobyYearid(honouryear, playerid);
        DataTable playerdt   = piObj.getInfobyId(playerid);

        year.Text = honouryear.ToString();
        ddlplayer.SelectedValue  = playerdt.Rows[0][1].ToString();
        mvp.SelectedIndex        = Convert.ToInt32(dt.Rows[0][2]);
        playoffmvp.SelectedIndex = Convert.ToInt32(dt.Rows[0][3]);
        DPOY.SelectedIndex       = Convert.ToInt32(dt.Rows[0][4]);
        allstar.Text             = dt.Rows[0][5].ToString();
        bestline.Text            = dt.Rows[0][6].ToString();
        bdline.Text = dt.Rows[0][7].ToString();
    }