private void LoadVideo(string id) { dsImageGallaryTableAdapters.VideoLinksTableAdapter adp = new dsImageGallaryTableAdapters.VideoLinksTableAdapter(); lblDesc.Text = adp.GetLinkDesc(Request.QueryString["vid"].ToString()); adp.UpdateVCount(Request.QueryString["vid"].ToString()); lblvcount.Text = string.Format("مرات المشاهده {0}", adp.GetVCount(Request.QueryString["vid"].ToString()).ToString()); Literal1.Text = YouTubeScript.Get(Request.QueryString["vid"], auto, _W, _H); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (Request.QueryString["id"] != null) { dsImageGallaryTableAdapters.VideoLinksTableAdapter adp = new dsImageGallaryTableAdapters.VideoLinksTableAdapter(); lblDesc.Text = adp.GetLinkDesc(Request.QueryString["id"].ToString()); adp.UpdateVCount(Request.QueryString["id"].ToString()); lblvcount.Text = string.Format("مرات المشاهده {0}", adp.GetVCount(Request.QueryString["id"].ToString()).ToString()); Literal1.Text = YouTubeScript.Get(Request.QueryString["id"], auto, _W, _H); } } }