By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,742 Members | 773 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,742 IT Pros & Developers. It's quick & easy.

how to add folder name to navigate url

P: n/a
asp.net framework 1.1 and c#

I am trying to create thumbnail images dynamically and load them on a web
page. When I click on a thumbnail image it opens the large version of it.

I use DataList to display the images. All my images are in a folder call
'CocoaImages". I have the following code in my DataList template to make data
bound and make the thumbnail images clickable. All my thumbnail images are
created and displayed as expected. When I click on the small images I get 404
error because I am missing ‘CocoaImages’ folder name in my navigateUrl.

My question is how can I add the folder name to the NavigateUrl in the
following code so that the large images will display correctly when the
smaller ones ares clicked? Appreciate any help. Thanks

<ItemTemplate>
<asp:HyperLink Runat=’server’ ImageUrl=’<%#
string.Concat(“CreateThumbmail.aspx?file=cocoaim ages/”,DataBinder.Eval(Container.DataItem,
“Name”)) %>’ NavigateUrl=’<%# DataBinder.Eval(Container.DataItem, “Name”) %>’
ID=”Hyperlink1”>
</asp:HyperLink>
</ItemTemplate>

Jul 22 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
> asp.net framework 1.1 and c#


Probably better off in a DotNet or AspNet group, this one is for "classic"
ASP.

--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com

Jul 22 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.