Hi:
Is it possible to databind an image in Repeater Control? I see support for
it in GridView, but not in Repeater control. There is another way to do
this, but would rather go with new controls.
Thanks,
Charlie 3 2635
In the past when I have had the need to do this, the easiest way is to
put a placeholder in your repeater, then in the ItemDataBound event,
manually add a System.Web.Image control into the placeholder.
Perhaps someone has an easier way/more effecient way, I've always used
that method in the past.
Hope this Helps!
Sean
Charlie@CBFC wrote:
Hi:
Is it possible to databind an image in Repeater Control? I see support for
it in GridView, but not in Repeater control. There is another way to do
this, but would rather go with new controls.
Thanks,
Charlie
Charlie,
You can use databinding expression in item template to databind any
properties of any controls. Did you try?
--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
"Charlie@CBFC" <ch*****@cbfconsulting.comwrote in message
news:Of**************@TK2MSFTNGP06.phx.gbl...
Hi:
Is it possible to databind an image in Repeater Control? I see support
for it in GridView, but not in Repeater control. There is another way to
do this, but would rather go with new controls.
Thanks,
Charlie
Yeah but image control only binds to a url. My images are stored in
database in binary fields. It can be done with an HTTP handler.
Charlie
"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in
message news:ee**************@TK2MSFTNGP05.phx.gbl...
Charlie,
You can use databinding expression in item template to databind any
properties of any controls. Did you try?
--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
"Charlie@CBFC" <ch*****@cbfconsulting.comwrote in message
news:Of**************@TK2MSFTNGP06.phx.gbl...
>Hi:
Is it possible to databind an image in Repeater Control? I see support for it in GridView, but not in Repeater control. There is another way to do this, but would rather go with new controls.
Thanks, Charlie This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Ryan Harvey |
last post by:
Hi all,
I have written a web user control that contains a repeater control. the
ItemTemplate for this control is basically 6 Hyperlinks in a row, that are
dynamically allocated one of 7 gif...
|
by: nicholas |
last post by:
Got an asp.net data-repeater on my page.
I can view the texts from the database (ex.: <%#
Databinder.Eval(Container.DataItem, "contentEN") %> ), but I also would like
to see the image, but only if...
|
by: Jim |
last post by:
I am trying to display images that are stored in a database, and I am using a
repeater control. What I still use the Response.BinaryWrite method with a
binding expression, if so, what with the...
|
by: Joe Gass |
last post by:
I'd like to bind some xml to a dropdownlist
<engines>
<engine name="test1" id="1" />
<engine name="test2" id="2" />
</engines>
If I do:
ddlEngines.DataSource =...
|
by: gemel |
last post by:
I am developing an application that uses SQL 2000 as my source of
images. I have successfully created the code to load the images onto
the SQL Server and also to retrieve the images into a dataset....
|
by: The Colonel |
last post by:
I'm using an ImageField in a GridView with the DataImageUrlField set to
a URL on the 'Net. The images are not displaying (the URL is correct -
I can copy and paste in the browser, they come right...
|
by: Mundo |
last post by:
Hi
I'm pulling my hair out with a problem caused when DataBinding a
DataSet to a web control. I first tried using a GridView but when that
failed, I tried a Repeater. I'm getting the classic...
|
by: gnewsgroup |
last post by:
I've googled and tried various approaches, but could not resolve this
problem. The article at MSDN: Displaying Images in a GridView Column
only presents a simple case where all data (including the...
|
by: Dave A |
last post by:
I have a user control that is dynamically loaded into a repeater; (so the
user control appears several times)
The user control features a text box and a delete button. When the delete
button...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
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,...
|
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...
|
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,...
|
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...
|
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...
|
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,...
|
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...
| |