コード例 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            // videopackages
            uc_video_packages vid_packages = (uc_video_packages)LoadControl("~/uc_video_packages.ascx");

            videopackages.Controls.Add(vid_packages);
        }
コード例 #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            userVideos = new List <VideoSetting>();
            SqlConnection conn  = new SqlConnection();
            SqlCommand    query = new SqlCommand();
            SqlDataReader data  = null;

            userVideos = DataLayer.GetUserVideos(conn, query, data, userVideos, userId);
            uc_video_packages v_packages = (uc_video_packages)LoadControl("~/uc_video_packages.ascx");

            vpreview.Controls.Add(v_packages);
        }