Run an aspx page automatically

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?bG91aXNlIHJhaXNiZWNr?=

    Run an aspx page automatically

    Hi there i have some simple code that needs to run every night at a certain
    time. does anyone know how in server 2003 i can tell a process to run an aspx
    page. or should i make it a windows app and can you autostart those?
  • Michael Nemtsev

    #2
    Re: Run an aspx page automatically

    Hello louise,

    You can just call the Process.Start with you url and page will be open,
    but I'm not sure that opening aspx page this way is a good approach.

    As I understand you need to call some business logic at the specific time,
    so why not to divide this code from the page and introduce it as service,
    so it can be called in background without presentation

    ---
    WBR, Michael Nemtsev [.NET/C# MVP].
    My blog: http://spaces.live.com/laflour
    Team blog: http://devkids.blogspot.com/

    "The greatest danger for most of us is not that our aim is too high and we
    miss it, but that it is too low and we reach it" (c) Michelangelo

    lrHi there i have some simple code that needs to run every night at a
    lrcertain time. does anyone know how in server 2003 i can tell a
    lrprocess to run an aspx page. or should i make it a windows app and
    lrcan you autostart those?
    lr>


    Comment

    • Eliyahu Goldin

      #3
      Re: Run an aspx page automatically

      Make a regular Windows app and add it to Scheduled Tasks (get there from
      your Control Panel).

      --
      Eliyahu Goldin,
      Software Developer & Consultant
      Microsoft MVP [ASP.NET]




      "louise raisbeck" <louiseraisbeck @discussions.mi crosoft.comwrot e in
      message news:24627BC0-16FA-4C7B-A034-CF9D32CF612B@mi crosoft.com...
      Hi there i have some simple code that needs to run every night at a
      certain
      time. does anyone know how in server 2003 i can tell a process to run an
      aspx
      page. or should i make it a windows app and can you autostart those?

      Comment

      • Juan T. Llibre

        #4
        Re: Run an aspx page automatically

        You don't need a process to do that.
        You can use Windows Scheduler.

        Set up a batch file, everynight.bat, for example, which has this as content :

        start http://www.yourserver.com/page.aspx

        ....and run it at the desired time, daily.




        Juan T. Llibre, asp.net MVP
        asp.net faq : http://asp.net.do/faq/
        foros de asp.net, en espaƱol : http://asp.net.do/foros/
        =============== =============== ========
        "louise raisbeck" <louiseraisbeck @discussions.mi crosoft.comwrot e in message
        news:24627BC0-16FA-4C7B-A034-CF9D32CF612B@mi crosoft.com...
        Hi there i have some simple code that needs to run every night at a certain
        time. does anyone know how in server 2003 i can tell a process to run an aspx
        page. or should i make it a windows app and can you autostart those?

        Comment

        • Steve C. Orr [MCSD, MVP, CSM, ASP Insider]

          #5
          Re: Run an aspx page automatically

          I'd suggest you create a windows service.

          Here's more info on windows services:


          --
          I hope this helps,
          Steve C. Orr,
          MCSD, MVP, CSM, ASPInsider




          "louise raisbeck" <louiseraisbeck @discussions.mi crosoft.comwrot e in
          message news:24627BC0-16FA-4C7B-A034-CF9D32CF612B@mi crosoft.com...
          Hi there i have some simple code that needs to run every night at a
          certain
          time. does anyone know how in server 2003 i can tell a process to run an
          aspx
          page. or should i make it a windows app and can you autostart those?

          Comment

          Working...