scheduled task question

Discussion in 'ASP.NET 2.0' started by jackxxx, Sep 30, 2008.

  1. I want to be able open and then close an aspx page that is on my site. This is so I can automate a process in the load event of the page. Does anyone here have the knowledge on how to do this?

    Thank you,
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    What do you mean by open and close your asp.net page? Do you mean making a HTTP call to the page?


    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  3. Bruce,


    I would like to use a scheduled task to open the page so that the code in the page load eventwill run and then close the page.


    Basically it is code that runs from a custom email control on the page, that looks to see if anyone that meet a spiciffic criteria should be sent an email. I want this to happen everyday at a designated time.


    Thank you,
     
  4. Bruce

    Bruce DiscountASP.NET Staff

    HTTP is actually a stateless protocol. There's really no opening or closing.


    The scheduled task tool basically make a HTTP call to the page you specified (just as if someone hit your page from a browser).


    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  5. Bruce,

    Ok, so please tell me if I have this correct. If I simply point to the aspx page from the scheduled task it will load on the server run my page load event and then at some point go away, never to be seen by a human?

    Thank you again,
     
  6. Does anyone have an answer for this?


    I appreciate any help you can offer.
     
  7. mjp

    mjp

    Yes, that's correct.
     
  8. hello,I want to run stored procedure for daily Data Base update in my
    website with Scheduled Task.
    I do it by save update stored procedure code at SPCODE.aspx page in updateFolder at website root.
    but every web site visitors can access it. i add this code to web.config but Scheduled Task don't work after this.

    <location path="updateFolder">
    <system.web>
    <authorization>
    <deny users="*"/>
    </authorization>
    </system.web>

    Please help me.
    thank you.
     

Share This Page