Ask a Question related to Dreamweaver AppDev, Design and Development.
-
dizzy #1
Help with asp:imagebutton image path
Hi
I'm a little stuck and hoping for some advice, asp.net vb
I have a datalist on a page to show users thumbnails, the photos are
displayed as asp:imagebuttons & the datalist has an onitemcommand called
getPhotos which runs as follows
sub getPhotos(sender as object etc)
Dim myIndex = e.Item.ItemIndex
Dim myPage = myIndex + 1
Response.Redirect("showphoto.aspx?page=" + myPage.ToString() + "&id=" +
myid.ToString())
end sub
on the showphoto page I am using a paged repeater with nav controls to allow
back & forward paging of photos
The problem that I have is that my imageUrl doesn't work
imageUrl='media/profiles/<%# Container.DataItem("userID") %>/<%#
Container.DataItem("filename") %>'
If I use the same path in a standard <img> tag all is fine but I can't seem
to access the itemindex to get the correct photo & page number
My thoughts were to create a single string containing the full path at
page_load or create a function to bring it all together. I'm totally stuck
so any advice would be gratefully received
Thanks
Dave
dizzy Guest
-
Attaching Image to Path
I'm trying to attach an image to a path similar to attaching text to a path. My goal is to manipulate an image to realistically wrap around irregular... -
An ImageButton that retrieves its image from a Resource
I can't find any documentation on retrieving an imagebutton's image from a resource file in asp.net 2.0. Can someone help with a small example or... -
Need to change image of imagebutton in datagrid template column
I'm going nuts.. I've got a template column with an imagebutton in it. I would like to change the image on the button when the button is clicked. ... -
Placing an image? Path?
Hello folks. A few questions - issues if I may. I don't see where to "place" an image from Freehand MX? The reason for placing is, that I was... -
image/imagebutton client validation
Hi is there any way i can call a clientside function for validation onClick of a Image or imagebutton? Right now my image or imagebutton is... -
dizzy #2
Re: Help with asp:imagebutton image path
Duh solved it
answer was
imageUrl='<%# "../media/profiles/" & container.dataitem("userID") & "/tn_" &
container.dataitem("filename") %>'
dizzy Guest



Reply With Quote

