I think you'd better post your question in the ASP.NET newsgroups, this one
is for Webservices. I guess there are more people who can help you out. ;-)
Read my weblog: [url]http://weblogs.asp.net/jan[/url]
"Kristoffer Arfvidson" <kristofferarfvidson.se> schreef in bericht
news:Owi5NM1xDHA.1396TK2MSFTNGP10.phx.gbl...all> Is it possible to have multiple instances of a control and still accessenabled=true> of them in codebehind?
> For example, I need to be able to change an image location on a frequent
> so, I decided to use <asp:image id="img_tomgif1" runat="server"this> width="1" height="2"/>
> and, I put the code that changes image in the codebehind page eg...
> public img_tomgif1 as image
> now, so far so good, now comes the problem, this image is repeated thruout
> my homepage...
> so, at first I started to place img_tomgif1 img_tomgif2 and so on, butto> soon became a mess in my code, so I decided I wanted to make multiple
> instances of the image instead...
> (img_tomgif (0), (1), (2))
> but, since I put an id tag on my image it dosnīt work, because asp.net
> requires the id tag to be unique, but how do I access the image from
> codebehind if I donīt make an Id-tag?
> is there a way of making multiple instances of the image and still refer> it as a single image on the codebehind page?
> (Or similair option, I think you understand what I want do to) :-)
> Yours: Kristoffer