473,403 Members | 2,354 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,403 software developers and data experts.

ImageTag Inside Dataview

Hello All, can someone please help me with the correct syntac of this?

<asp:Image ID="image" runat="server"
ImageUrl="~/Photos.aspx?UserImage=Y&Height=200&Width=150&Image Source=<%#
Eval("PhotoPath") %>" />

If I right click on what is displayed, it isn't usig the Value of <%#
Eval("PhotoPath") %and is using the actual string <%# Eval.....


Mar 27 '07 #1
2 1260
On Mar 27, 10:31 pm, "MikeB" <m...@nospam.comwrote:
Hello All, can someone please help me with the correct syntac of this?

<asp:Image ID="image" runat="server"
ImageUrl="~/Photos.aspx?UserImage=Y&Height=200&Width=150&Image Source=<%#
Eval("PhotoPath") %>" />

If I right click on what is displayed, it isn't usig the Value of <%#
Eval("PhotoPath") %and is using the actual string <%# Eval.....
VB:

<asp:Image ID="image" runat="server"
ImageUrl="<%#
"~/Photos.aspx?UserImage=Y&Height=200&Width=150&Image Source=" &
Eval("PhotoPath")
%>" />

C#:

<asp:Image ID="image" runat="server"
ImageUrl="<%#
"~/Photos.aspx?UserImage=Y&Height=200&Width=150&Image Source=" +
Eval("PhotoPath")
%>" />

Mar 27 '07 #2
Thank You

"Alexey Smirnov" <al************@gmail.comwrote in message
news:11**********************@l77g2000hsb.googlegr oups.com...
On Mar 27, 10:31 pm, "MikeB" <m...@nospam.comwrote:
>Hello All, can someone please help me with the correct syntac of this?

<asp:Image ID="image" runat="server"
ImageUrl="~/Photos.aspx?UserImage=Y&Height=200&Width=150&Image Source=<%#
Eval("PhotoPath") %>" />

If I right click on what is displayed, it isn't usig the Value of <%#
Eval("PhotoPath") %and is using the actual string <%# Eval.....

VB:

<asp:Image ID="image" runat="server"
ImageUrl="<%#
"~/Photos.aspx?UserImage=Y&Height=200&Width=150&Image Source=" &
Eval("PhotoPath")
%>" />

C#:

<asp:Image ID="image" runat="server"
ImageUrl="<%#
"~/Photos.aspx?UserImage=Y&Height=200&Width=150&Image Source=" +
Eval("PhotoPath")
%>" />

Mar 27 '07 #3

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

Similar topics

2
by: Alpha | last post by:
I have a window application. In one of the form, a datagrid has a dataview as its datasource. Initial filtering result would give the datavew 3 items. When I double click on the datagrid to edit...
2
by: dSchwartz | last post by:
I need help adding a column to a dataset, but its a little bit more complicated then just that. Here's the situation: I have many xml files in one directory, each which represent a newsletter. I...
3
by: Leigh Webber | last post by:
I have an HTMLAnchor control on my aspx page. When it's not inside a repeater, it works fine. When I put it inside a repeater control, the handler never gets fired. I have a handler for the...
1
by: craigkenisston | last post by:
I'm creating a paging control in which I want to use a session saved dataview : public class PagingControl : System.Web.UI.UserControl .... .... public void whatever DataView dw; if...
36
by: kjvt | last post by:
Based on a prior posting, I've written a function to convert a recordset to a dataview. The first call to the function for a given recordset works perfectly, but the second call always returns a...
13
by: Steve | last post by:
I have a form with a dataset and a datagrid. I created a dataview on this dataset. When the user modifies the datagrid, I look up this record in the dataview to make sure it is unique. Here is...
5
by: David Wender | last post by:
I want to create a dataview with a sort on multiple columns. However, when I use FindRows, I only want to search some of the columns, not all. Is this possible? I have not been able to make it...
7
by: | last post by:
Hello, Does anyone have an idea on how I can filter the data in the gridview control that was returned by an sql query? I have a gridview that works fine when I populate it with data. Now I...
8
by: fernandezr | last post by:
I would like to use a user control as a template inside a repeater. Some of the fields in the control should be hidden depending on whether or not there is data. I'm still a ASP .Net newbie so the...
0
by: Pravin Pujari | last post by:
Hi All, I am using .net framework 1.1 and c#. I have one problem regarding dataview. I have one dataview to which sorting may be applied or may not be applied. I have one UI component where I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
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
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...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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 project—planning, coding, testing,...
0
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...

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.