/// <summary> /// 页面加载事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { //获取4-6岁的视频信息 if (!string.IsNullOrEmpty(Request.QueryString["id"])) { string openId = Convert.ToString(Session["openId"]); ID = Convert.ToInt32(Request.QueryString["id"]); if (ID == 7) { Rep_child.DataSource = VideoTypeList.Instance().GetVideoTypeListSevens(); Rep_child.DataBind(); } if (ID == 8) { Rep_child.DataSource = VideoTypeList.Instance().GetVideoTypeListEight(); Rep_child.DataBind(); } if (ID == 9) { Rep_child.DataSource = VideoTypeList.Instance().GetVideoTypeListNine(); Rep_child.DataBind(); } if (ID == 10) { Rep_child.DataSource = VideoTypeList.Instance().GetVideoTypeListTen(); Rep_child.DataBind(); } if (ID == 11) { Rep_child.DataSource = VideoTypeList.Instance().GetVideoTypeListEleven(); Rep_child.DataBind(); } if (ID == 12) { Rep_child.DataSource = VideoTypeList.Instance().GetVideoTypeListTwelve(); Rep_child.DataBind(); } if (ID == 476) { Rep_child.DataSource = VideoTypeList.Instance().GetVideoTypeListanquan(); Rep_child.DataBind(); } } } }
/// <summary> /// 页面加载事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void Page_Load(object sender, EventArgs e) { //if (!IsPostBack) { if (!string.IsNullOrEmpty(Request.QueryString["id"])) { string openId = Convert.ToString(Session["openId"]); ID = Convert.ToInt32(Request.QueryString["id"]); //故事天地asdsadasdasdasdas if (ID == 63) { Rep_children.DataSource = VideoTypeList.Instance().GetVideoTypeStory(); Rep_children.DataBind(); } if (ID == 492) { Rep_children.DataSource = VideoTypeList.Instance().GetVideoTypecc(ID); Rep_children.DataBind(); } //国学诗词 if (ID == 62) { Rep_children.DataSource = VideoTypeList.Instance().GetVideoTypeguoxue(); Rep_children.DataBind(); } //动漫儿歌 if (ID == 56) { Rep_children.DataSource = VideoTypeList.Instance().GetVideoTypeSinger(); Rep_children.DataBind(); } //艺术乐园 if (ID == 55) { Rep_children.DataSource = VideoTypeList.Instance().GetVideoTypeyishu(); Rep_children.DataBind(); } //科学天地 if (ID == 57) { Rep_children.DataSource = VideoTypeList.Instance().GetVideoTypekexue(); Rep_children.DataBind(); } //健康知识 if (ID == 58) { Rep_children.DataSource = VideoTypeList.Instance().GetVideoTypejiankang(); Rep_children.DataBind(); } //小小歌唱家 if (ID == 340) { Rep_children.DataSource = VideoTypeList.Instance().GetVideoTypeListtwo(); Rep_children.DataBind(); } //启蒙数学 if (ID == 363) { Rep_children.DataSource = VideoTypeList.Instance().GetVideoTypeshuxue(); Rep_children.DataBind(); } //启蒙语文 if (ID == 365) { Rep_children.DataSource = VideoTypeList.Instance().GetVideoTypeyuwen(); Rep_children.DataBind(); } //启蒙英语 if (ID == 364) { Rep_children.DataSource = VideoTypeList.Instance().GetVideoTypeyingyu(); Rep_children.DataBind(); } } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (!string.IsNullOrEmpty(Request.QueryString["id"])) { string openId = Convert.ToString(Session["openId"]); ID = Convert.ToInt32(Request.QueryString["id"]); if (ID == 1) { Rep_listen.DataSource = VideoTypeList.Instance().GetVideoTypeList(); Rep_listen.DataBind(); } if (ID == 2) { Rep_listen.DataSource = VideoTypeList.Instance().GetVideoTypeListtwo(); Rep_listen.DataBind(); } if (ID == 3) { Rep_listen.DataSource = VideoTypeList.Instance().GetVideoTypeListthree(); Rep_listen.DataBind(); } if (ID == 4) { Rep_listen.DataSource = VideoTypeList.Instance().GetVideoTypeListfour(); Rep_listen.DataBind(); } if (ID == 5) { Rep_listen.DataSource = VideoTypeList.Instance().GetVideoTypeListfive(); Rep_listen.DataBind(); } if (ID == 6) { Rep_listen.DataSource = VideoTypeList.Instance().GetVideoTypeListsix(); Rep_listen.DataBind(); } if (ID == 7) { Rep_listen.DataSource = VideoTypeList.Instance().GetVideoTypeListSevens(); Rep_listen.DataBind(); } if (ID == 8) { Rep_listen.DataSource = VideoTypeList.Instance().GetVideoTypeListEight(); Rep_listen.DataBind(); } if (ID == 9) { Rep_listen.DataSource = VideoTypeList.Instance().GetVideoTypeListNine(); Rep_listen.DataBind(); } if (ID == 10) { Rep_listen.DataSource = VideoTypeList.Instance().GetVideoTypeListTen(); Rep_listen.DataBind(); } if (ID == 11) { Rep_listen.DataSource = VideoTypeList.Instance().GetVideoTypeListEleven(); Rep_listen.DataBind(); } if (ID == 12) { Rep_listen.DataSource = VideoTypeList.Instance().GetVideoTypeListTwelve(); Rep_listen.DataBind(); } } } }