Ejemplo n.º 1
0
        protected void imgProject_Click(object sender, ImageClickEventArgs e)
        {
            ImageButton b           = sender as ImageButton;
            string      projectId   = b.Attributes["projectId"];
            string      projectName = b.Attributes["projectName"];

            lblProjectName.Text    = projectName;
            lblProjectName.Visible = true;
            List <Photo> listphoto = SqlTask.GetPhotosByProject(projectId);
            string       userid    = listphoto.ElementAt(0).UserID;

            btnBackAllPhoto.PostBackUrl = "http://teambro.azurewebsites.net/" + SqlTask.GetUserUrlById(listphoto.ElementAt(0).UserID);
            btnBackAllPhoto.Visible     = true;
            lstPhoto.DataSource         = listphoto;
            lstPhoto.DataBind();
        }