Пример #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        ((Label)Master.FindControl("lblTitle")).Text = "View Video";
        Photoid = QueryString.getQueryStringOnIndex(0);
        Userid  = SessionClass.getUserId();
        LoadFollow();
        LoadDataListComments();
        YouLikes();
        string  videotag = "";
        MediaBO objMedia = new MediaBO();

        objMedia = MediaBLL.getMediaByMediaId(Photoid);

        videotag += "  <script  type= 'text/javascript'  >";
        videotag += " jwplayer('container').setup({";
        videotag += " file: src='" + Global.USER_VIDEO + objMedia.Id + ".mp4' ,";
        videotag += " flashplayer: '../../Resources/jwplayer/player.swf',";
        videotag += " width: 520";
        videotag += " }); ";
        videotag += "</script> ";
        this.LiteralVideo.Text  = videotag;
        imgBtnComments.ImageUrl = Global.PROFILE_PICTURE + Userid + ".jpg";
        Session["SpamPhoto"]    = null;
        Session["AbusePhoto"]   = null;
    }
Пример #2
0
    public void GetPhotoDesc()
    {
        MediaBO mediaobj = new MediaBO();

        mediaobj              = MediaBLL.getMediaByMediaId(Photoid);
        LabelGetCaption.Text  = mediaobj.Caption;
        LabelGetDesc.Text     = mediaobj.Description;
        LabelGetLocation.Text = mediaobj.Location;
        imgBack.PostBackUrl   = "ViewPhotoAlbum.aspx?" + mediaobj.AlbumId;
    }
Пример #3
0
    protected void LoadFollow()
    {
        MediaBO obj = new MediaBO();

        obj      = MediaBLL.getMediaByMediaId(Photoid);
        Isfollow = obj.isFollow;
        if (Isfollow)
        {
            lbtnFollow.Text = "UnFollow";
        }

        else
        {
            lbtnFollow.Text = "Follow";
        }
    }