Exemple #1
0
        private void Pictureget()
        {
            UserData user     = (UserData)Session["User"];
            string   htmldata = "<div>";

            Dataservice.DatamanagementClient findata = new Dataservice.DatamanagementClient();
            findata.Open();
            // UserData currentUser = (UserData)(Session["User"]);
            Object[][] pictures = findata.getfewpics(user.getID());
            if (pictures != null)
            {
                for (int i = 0; i < pictures.Length; i++)
                {
                    // htmldata += "<a class=\"carousel - item\" href=\"Pictureedit?id=" + (string)pictures[i][0] + "\"><img style='width:250px;height:250px' class= \"responsive-img\" src = 'data:image/jpeg;base64," + (string)pictures[i][1] + "'/></a>";


                    htmldata += "<a href=\"Pictureedit.aspx?id=" + (string)pictures[i][0] + "\">";


                    htmldata += "<div class=\"col 7 card hoverable\">";

                    htmldata += "<div class=\"card-image waves-effect waves-block waves-light\">";
                    htmldata += "<img style='width:200px;height:200px' class= \"responsive-img\" src = 'data:image/jpeg;base64," + (string)pictures[i][1] + "'/>";
                    htmldata += "<span class=\"card-title \"><p class=\"trunctext bold\">" + (string)pictures[i][2] + "</p></span>";
                    htmldata += "</div>";



                    htmldata += "</div>";
                    htmldata += "</a>";
                }
                // htmldata += "<a class=\"carousel - item\" href=\"#one!\"><img style='width:300px;height:300px' class= \"responsive-img\" src = 'data:image/jpeg;base64," + UserData.Nopic + "'/></a>";
            }


            htmldata += "</div>";
            picturecarousel.InnerHtml = htmldata;

            findata.Close();
        }