Exemplo n.º 1
0
    public void InitVideoInfo(string VideoId)
    {
        try
        {
            DataTable dt = bll.GetVideoDetailById(VideoId);
            if (dt != null && dt.Rows.Count > 0)
            {
                DataRow row = dt.Rows[0];
                txtTitle.Value                 = row["Title"].ToString();
                txtImgUrl.Value                = row["ImgUrl"].ToString();
                txtVideoUrl.Value              = row["VideoUrl"].ToString();
                DropVideoType.SelectedValue    = row["VideoType"].ToString();
                DropShowPosition.SelectedValue = row["ShowId"].ToString();
                Dropzhuanti.SelectedValue      = row["Type"].ToString();
                txtSort.Value = row["SortId"].ToString();
                RadioRecommend.SelectedValue = row["IsRecommend"].ToString();
                txtRemarks.Value             = (row["Remarks"].ToString() == "") ? "" : row["Remarks"].ToString();

                DropShowPosition.SelectedValue = row["ShowId"].ToString();
            }
        }
        catch (Exception ex)
        {
            Tz888.Common.MessageBox.Show(this.Page, ex.Message);
        }
    }