protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Photo_gl photo = new Photo_gl(); User_gl user = new User_gl(); Data data = new Data(); Data list = photo.select(Param); profileName.Value = Param.getString("profile"); profileID.Value = Param.getString("id"); photoView.DataSource = list.Source; photoView.DataBind(); data.add("imageId", Param.getString("image")); Data imageList = photo.selectImage(data); imagePop.ImageUrl = imageList.getString("path"); checkImage.Value = imageList.getString("path"); caption.Text = imageList.getString("caption"); setPageTypeSession(Session, "photo"); //set a size for photo album, set overflowhidden, fixed small images and top/left with minus fixed pixels } }