473,394 Members | 1,769 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

image in grid

NuB
In my web site i have an image folder with an image, how can I add that
image to my grid and make it a link that will take the user to a new page?

Jan 20 '06 #1
2 949
Do this:

<asp:TemplateField HeaderText="Href">
<ItemTemplate>
<asp:HyperLink ImageUrl="~/Images/myImage.gif"
ID="HyperLink1" runat="server" NavigateUrl='nextpage.aspx?id=<%#
Eval("DataFromGridID") %>'></asp:HyperLink>
</ItemTemplate>
<HeaderStyle Width="20px" />
</asp:TemplateField>

"NuB" wrote:
In my web site i have an image folder with an image, how can I add that
image to my grid and make it a link that will take the user to a new page?

Jan 20 '06 #2
Rather this:

<asp:TemplateField HeaderText="Href">
<ItemTemplate>
<asp:HyperLink ImageUrl="~/Images/myImage.gif"
ID="HyperLink1" runat="server"
NavigateUrl='<%#"nextpage.aspx?id="Eval("DataFromG ridID") %>'></asp:HyperLink>
</ItemTemplate>
<HeaderStyle Width="20px" />
</asp:TemplateField>
"Jaffa" wrote:
Do this:

<asp:TemplateField HeaderText="Href">
<ItemTemplate>
<asp:HyperLink ImageUrl="~/Images/myImage.gif"
ID="HyperLink1" runat="server" NavigateUrl='nextpage.aspx?id=<%#
Eval("DataFromGridID") %>'></asp:HyperLink>
</ItemTemplate>
<HeaderStyle Width="20px" />
</asp:TemplateField>

"NuB" wrote:
In my web site i have an image folder with an image, how can I add that
image to my grid and make it a link that will take the user to a new page?

Jan 20 '06 #3

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

Similar topics

21
by: DraguVaso | last post by:
Hi, I have an inherited DataGrid, that does lots of extra stuff. For exemple drawing a backgroundimage in every cell. The problem is that it's taking too much time (using gdi+), so I want to do...
3
by: Simon Harris | last post by:
Hi All, I have a data grid which displays country names. I now wish to display the country flag images above the names. Can someone please advise how I display an image in a datagrid? I have a...
0
by: Workgroups | last post by:
Not sure the best way to go about making this: I have 3 user defineable values - Width, Height, and Size. These values need to define a "grid" of some kind in the following manner: The Width is...
3
by: David Veeneman | last post by:
I'm trying to set images in a bound DataGridView image column. My enum has three possible values, and I have an image that I want to show for each value: EnumValue.OK --GreenLight.gif...
10
by: kaczmar2 | last post by:
Hey there, I have a large image in a browser window, and I would like a way to overlay grid lines on top of the image, so a user can show the grid or hide the grid lines. The grid would cover...
3
by: kaczmar2 | last post by:
Hey there, I have a large image in a browser window, and I would like a way to overlay grid lines on top of the image, so a user can show the grid or hide the grid lines. The grid would cover...
0
by: Job Lot | last post by:
I have designed a user interface with controls bound to data using Data Source Window. Draging and dropped customer table from Data Source Window created various navigation controls and a...
2
by: Samuel Shulman | last post by:
Hi Is it possible to add HyperLink functionality to the Image control in the data grid control Thank you, Samuel
0
by: Andrew | last post by:
Hello Ive been messing around with a simple raw image viewer using Pil and Tkinter However I am running into problems displaying the images they appear to be not correct I believe it is cause of...
0
by: PravinThanusu | last post by:
Hi i am fresher to the s/w field.. plz help me out.. <Columns> <asp:BoundField HeaderText="ID" DataField="ID" /> <asp:BoundField HeaderText="BuisnessName"...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...

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.