473,806 Members | 2,739 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

add folder name to navigateUrl

asp.net framework 1.1, 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. 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 NavigateUrl in the following
code so that the large images will display correctly when the smaller one is
clicked? Appreciate any help. Thanks

<ItemTemplate >
<asp:HyperLin k Runat=’server ’ ImageUrl=’<%#
string.Concat( CreateThumbma il.aspx?file=co coaimages/”,DataBinder. Eval(Container. DataItem,
“Name”)) %>’ NavigateUrl=’ <%# DataBinder.Eval (Container.Data Item, “Name”) %>’
ID=”Hyperlink 1”>
</asp:HyperLink>
</ItemTemplate>

Jul 22 '05 #1
1 2280
Hi,
http://www.aspfaq.com/5002
Ray at work

"New User" <Ne*****@discus sions.microsoft .com> wrote in message
news:D2******** *************** ***********@mic rosoft.com...
asp.net framework 1.1, 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. 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 NavigateUrl in the following code so that the large images will display correctly when the smaller one is clicked? Appreciate any help. Thanks

<ItemTemplate >
<asp:HyperLin k Runat='server' ImageUrl='<%#
string.Concat(" CreateThumbmail .aspx?file=coco aimages/" ,DataBinder.Eva l(Container.Dat aItem, "Name")) %>' NavigateUrl='<% # DataBinder.Eval (Container.Data Item, "Name") %>' ID="Hyperlink1" >
</asp:HyperLink>
</ItemTemplate>

Jul 22 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2587
by: New User | last post by:
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....
0
3319
by: John H. | last post by:
In effort to understand (Outlook) MAPI folder tree structure wrote simple linear code below to navigate tree. Successive "...Folders.GetNext()"'s return same folder at all levels of tree. What am I doing wrong or not understanding? Thanks.
4
4238
by: Tomek R. | last post by:
Hello ! This post does'nt regard column hyperlink. I just have single hyperlink and want to create it's NavigateUrl dynamically. This is my test page <form id="Form1" method="post" runat="server"> <asp:HyperLink id="MyHLink" NavigateUrl='<%# geturl("123456") %>'
3
3409
by: VB Programmer | last post by:
I have a datalist with a hyperlink in the Item Template. When I set the NavigateUrl simply to this, the databound CategoryId shows up fine: <asp:HyperLink id=hlLink runat="server" NavigateUrl='<%#Container.DataItem("CategoryId")%>'> <%# Container.DataItem("CategoryName") %> </asp:HyperLink>&nbsp;
1
2100
by: jeanluc.praz | last post by:
I created a user control containing containing a few hyperlinks. How can I change the NavigateUrl inside the user control ? So far I did the following: 1) In the custom control Public Property SetURL() Get
5
5012
by: Vear | last post by:
Sorry, very Newbie question here. I don't know what I'm doing wrong. I have to use a <asp:hyperlink> to go to another page. I want to pick up the value in a text box. This is what I've tried and It tells me it won't work. Not sure how to do it. NavigateUrl="~/secure/Confirm.aspx?No=201, IDate=" & TxtBx1.text & ", ODate = " & TxtBx2.text
7
4041
by: Ibrahim. | last post by:
Hello, How can I access a Shared Folder of the Server by using the following control. 1. I need to download files from c:\resumes folde by using the following; <asp:HyperLink NavigateUrl='<%#DataBinder.Eval(Container.DataItem,"FilePath") %>' a. FilePath is a database field holding the value "c:\resumes\myresume.doc"
4
2441
by: Aloysius Maria Selvam | last post by:
Hello, We have a problem in our web application. The error reported is given with in brackets : You can see the folder name "/Home/Controller/ getting repeated in the URL. For you information the framework used is .Net framework 1.1, the web server is IIS 5 and OS is Win2000 server. We used .Net Remoting in our web application.This problem is reported once in a while and not consistently happening.
6
23524
by: Dmitry Duginov | last post by:
I have a FormView and a HyperLink on the page. If I use the following code behind (hooked up to Hyperlink's OnLoad event), it renders fine protected void link_Load(object sender, EventArgs e) { link.NavigateUrl = String.Format("~/Carrier/AddNew.aspx?Id={0}", FormView1.DataKey.Value); }
0
9719
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
9598
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10371
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10373
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9192
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7650
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6877
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5546
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5683
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.