private void LoadData(int id)
 {
     dsImageGallaryTableAdapters.VideoLinksTableAdapter adp = new dsImageGallaryTableAdapters.VideoLinksTableAdapter();
     dsImageGallary.VideoLinksDataTable tbl = adp.GetDataByVideoFolder(id);
     ASPxDataViewData.DataSource = tbl;
     ASPxDataViewData.DataBind();
 }
 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);
 }
Beispiel #3
0
 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);
         }
     }
 }
Beispiel #4
0
 protected void btnBacktoCategory_Click(object sender, EventArgs e)
 {
     dsImageGallaryTableAdapters.VideoLinksTableAdapter adp = new dsImageGallaryTableAdapters.VideoLinksTableAdapter();
     int id = (int)adp.GetLinkVideoFolder(Request.QueryString["id"].ToString());
     Response.Redirect("VideoCategoryContains.aspx?id=" + id);
 }