Welcome to Forums Sign in | Join | Help | Forums
in Search


Custom User Controls - Image Files

Last post 12-03-2007 9:48 AM by George Leventis. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 12-03-2007 9:32 AM

    • Rachael Brower
    • Not Ranked
    • Posts 1
    • Organization: West Point Association of Graduates

    Custom User Controls - Image Files

    Hi, I have created a new .ascx file set and added them to the custom directory. The .dll file is in the BIN directory. My control contains image files, where do I put these image files? Is there a default image directory that BBNC uses, that will not get lost during an update, if so how do I map to that place. If not can I create a site images subdirectory under Custom or is that not a good idea?? Or, should these be embedded image files?
  • 12-03-2007 9:48 AM In reply to

    Custom User Controls - Image Files

    I went back and looked at my custom part and saw that the images it uses are located in the same NetCommunity\Custom folder where the .ascx files are stored. In the HTML code, I just have the src attribute of the img tag pointing to its relative location. For example: src="thisimage.jpg" It probably makes more sense to at least create an images directory inside of the Custom directory, so things don't get too crowded, but that should be able to be accessed in the same way: src="images\thisimage.jpg"
Page 1 of 1 (2 items)