Example #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["authenticated"] == null)
       Response.Redirect("Login.aspx");
     if (!IsPostBack)
     {
       ServiceInterface server = new ServiceInterface();
       SupportedMPFunctions f=server.GetSupportedMPFunctions();
       btnMovie.Visible = f.myVideos;
       btnMusic.Visible = f.myMusic;
       btnPictures.Visible = f.myPictures;
       btnTvSeries.Visible = f.myTvSeries;
       btnMovingPictures.Visible = f.movingPictures;
     }
 }