|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Welcome to Gridview Hellbiggest train wreck ever. I have a database with a series of photo albums and the image path & name for each image. I pass the info to the gridview via the Query string. The thumbnails load with no problems as long as I use the ASP:Images control I tried to use the imagebutton but I could not dynamically set the image property My problem comes when I want to run a process when the user clicks on the image in the gridview. When the image is clicked I need to make a trip to the DB to get the detail for the image and load the non thumbnail image., Caption and story behind the image… In 2003 I was able to reference invisible items in the grid. Did they change that in 2005 or am I smoking crack and not sharing again. For every image I have an ID, ImageName , Caption and Story. Now I just need to be able to make a call by what ever means necessary to pull the data back and populate the detail portion of the page, Any Ideas? THe image property in an ImageButton control is called ImageUrl and is a
string that represents the value src atribute of the resulting <input type="image> tag. you can set this programatically. Show quoteHide quote "C. David Johnson" wrote: > Ok I am working on the simplest thing ever that is turning in to the > biggest train wreck ever. > > I have a database with a series of photo albums and the image path & > name for each image. I pass the info to the gridview via the Query > string. The thumbnails load with no problems as long as I use the > ASP:Images control > > I tried to use the imagebutton but I could not dynamically set the > image property > > My problem comes when I want to run a process when the user clicks on > the image in the gridview. > > When the image is clicked I need to make a trip to the DB to get the > detail for the image and load the non thumbnail image., Caption and > story behind the image… > > > In 2003 I was able to reference invisible items in the grid. Did they > change that in 2005 or am I smoking crack and not sharing again. > > For every image I have an ID, ImageName , Caption and Story. Now I > just need to be able to make a call by what ever means necessary to > pull the data back and populate the detail portion of the page, > > Any Ideas? >
Surprise with Textbox1.Text
Open htm and asp pagen inside an .NET aspx project Deriving from built-in DataGrid control Determining which control has the focus on my web page User Control question controls recommendation Calendar control question Webpartzone as DIV CREATE DATABASE permission denied in database 'master' Gridview invisible--why? |
|||||||||||||||||||||||