Urgent: Is it possible to create Controls with embedded img resources, that show in IDE as well...?

Discussion in 'ASP .Net Web Controls' started by Sky, Jun 22, 2004.

  1. Sky

    Sky Guest

    Hello:
    I've searched high and low on the net looking for an answer to the following
    design problem...any body have experience creating professional level server
    controls?

    Design goal:
    Create a web control that has embedded images for nav buttons within the
    control so that all the required parts (images, scripts, etc.) are contained
    in the assembly, and not require tricky installation of supporting images
    etc before it will work correctly...

    Steps taken so far:
    a. Create two controls: one the visible control, the second an IhttpHandler
    based ResourceServer, to send back embedded images
    (see
    http://www.codeproject.com/aspnet/ressrvpage.asp?df=100&forumid=15106&exp=0&select=688037
    for a good starting point on the ResourceServer, which I extended so that it
    automatically installs the required entries in the config.web file, if the
    app has rights to the file/folder).
    b. Set the Img.Src's of the visible control to an url that will get filtered
    by the IhttpHandler to the ResourceServer: eg:
    "Resources.aspx?Res=TestControl.Resources.Graphics.left.gif" which sends
    back the left.gif image.
    d. Create a Designer to work with the control which simply wraps the
    controls.Render() method and therefore provides the same look and feel in
    the IDE as what is sent to the client.

    Result:
    Works great during Runtime...

    Problem:
    Because the IhttpHandler seems to only work when the app is actually
    running, the images don't come in within the IDE -- only run-time. This is
    generally fine -- but not great: I can't distribute this dll because it
    looks pretty unfinished/buggy in the IDE......

    My question is the following:
    How are professional Component companies (eg: ComponentOne, etc.) embedding
    resources and getting them to work in the IDE?
    a) Are they dumping the images to a folder? I can't see any such folder
    anywhere in the directory so I don't think they do it that way.
    b) Can it not be done, therefore, create plain Buttons when
    Site.DesignMode=true, and use Imgs only in runtime? it look like they don't
    need to resort to this.
    c) ?Anybody have a better solution? I've looked at several books -- but they
    don't cover this. And I havn't (yet?) found an article that talks about this
    on the net.

    This is really leaving me perplexed and frustrated.
     
    Sky, Jun 22, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. news.austin.rr.com

    how to download img from html img tag

    news.austin.rr.com, Apr 27, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    525
    Steve C. Orr [MVP, MCSD]
    Apr 27, 2005
  2. Philipp Lenssen

    Problem: <img></img>

    Philipp Lenssen, Jun 27, 2005, in forum: XML
    Replies:
    15
    Views:
    783
    David Håsäther
    Jul 3, 2005
  3. chipxsd
    Replies:
    0
    Views:
    384
    chipxsd
    Nov 2, 2006
  4. Jopek
    Replies:
    7
    Views:
    415
    dorayme
    Apr 26, 2009
  5. Replies:
    7
    Views:
    197
    Tad McClellan
    Jun 22, 2006
Loading...

Share This Page