Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > HtmlImage Problem

Reply
Thread Tools

HtmlImage Problem

 
 
J
Guest
Posts: n/a
 
      03-27-2005
Hi all, I've got a problem with a HtmlImage I'm adding to a TableCell
object. What I'm trying to do is add an attribute to the image like this;

oHtmlImage.Src = AppSettings.Item("imagepathfromroot")

So far so good, however the image is not displaying correctly as it is also,
without me asking, adding the path to the webusercontrol in front of my
value from the web.config file, strange. If you imagine my set up similar to
the below;

webusercontrolpath = "resources/controls"
webconfigvalue = "resources/images/spacers/imagename.gif"

I'm ultimately ending up with a src attribute of
"resources/controls/resources/images/spacers/imagename.gif", before I rape
my website structure I'd like to know if anyone has a tip on removing this
path to my webusercontrol file or is this something I have just got to build
around?

any help would be appreciated,
regards,
J.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
HtmlImage and asp:Image servent onclick event RKT ASP .Net 3 12-24-2005 10:06 PM
HtmlImage.Src not binding dynamically alto ASP .Net Web Controls 0 08-30-2005 03:57 PM
HtmlImage Src lost Chris ASP .Net Web Controls 0 02-07-2005 01:28 PM
System.Web.UI.HtmlControls.HtmlImage Dave.NET ASP .Net Web Controls 0 06-08-2004 08:36 PM
img src in HtmlImage is not always diplayed Alberto ASP .Net 0 05-26-2004 02:44 PM



Advertisments