Changing Pictures On Page

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Changing Pictures On Page

    I am new to .net technology. I have a home page built
    for my company using asp.net. On the bottom of the home
    page I want to embed a "dilbert comic strip" which is gif
    format. I have the strips in the directory
    c:/dilbert/"then by year for sub directories". I would
    like to have the page change the picture randomly like
    every 3 hours or so. Can this be done and if so how or
    where could I find some good documentation on the proper
    procedure or class to use.

    Thanks in advance.
    brian Guest

  2. Similar Questions and Discussions

    1. permanently changing a single page view to 2 page spread?
      I currently have a PDF with multiple pages as a single-page view. i need to change it to a 2-page spread, or continuous layout - not just for my...
    2. Changing Pictures
      I'm currently developing my own site to put my travel pictures up on rather than bomb everyone's email out. What I want to do is to create a...
    3. enlarging pictures on web page
      I have microsoft publisher 2000 6.0.Is it possible for someone who looks at my pictures on my web page to be able to click on the picture to...
    4. Printing Different Pictures on One Page
      Is there a way to print different pictures on one page--like 4 different images on one page in Photoshop Elements? Thank you
    5. Print Different Pictures on One Page?
      Is there a way to print different pictures on one page? I have 2 5.5x8 cards I'd like to print on one page so I can just cut them apart. Is there an...
  3. #2

    Default Re: Changing Pictures On Page

    There is an AdRotator control, but it changes with every page, not every
    three hours.

    here's the reference info:
    [url]http://msdn.microsoft.com/library/en-us/vbcon/html/vbconAdRotatorWebControl.asp[/url]

    here's a working sample from the quickstart
    [url]http://samples.gotdotnet.com/quickstart/aspplus/samples/webforms/ctrlref/webctrl/adrotator/doc_adrot.aspx[/url]


    You could build your own "user control" based on the image control. When
    the page loads, your user control can check the time of day and then select
    a gif based on that.

    image control example:
    [url]http://samples.gotdotnet.com/quickstart/aspplus/samples/webforms/ctrlref/webctrl/image/doc_image.aspx[/url]

    -Dino


    "brian" <brians@lbrspec.com> wrote in message
    news:00b601c360df$7bf345a0$a101280a@phx.gbl...
    > I am new to .net technology. I have a home page built
    > for my company using asp.net. On the bottom of the home
    > page I want to embed a "dilbert comic strip" which is gif
    > format. I have the strips in the directory
    > c:/dilbert/"then by year for sub directories". I would
    > like to have the page change the picture randomly like
    > every 3 hours or so. Can this be done and if so how or
    > where could I find some good documentation on the proper
    > procedure or class to use.
    >
    > Thanks in advance.

    Dino Chiesa [MSFT] Guest

  4. #3

    Default Re: Changing Pictures On Page

    Brian,

    One way of accomplishing this is :

    Use 'CurrentDilbert.gif' on your page, then schedule a simple app to
    randomly copy a file from c:/dilbert to CurrentDilbert.gif

    Hope this helps.

    Jurjen de Groot
    G.I.T.S., Netherlands



    "brian" <com> wrote in message
    news:00b601c360df$7bf345a0$gbl... 


    Jurjen Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139