Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: Possible????

  1. #1
    New Coder
    Join Date
    Jun 2003
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Possible????

    Alright, I am new to ASP.NET, and have ASP.NET for dummies. My site is being recoded by myself into ASP.NET, and I need to know if this is possible....

    I need a refresh page with a catch. On certain days of the week, I need it to go to one page, and on others, to another page. For instance, on Mondays, Tuesdays, Wednesdays, and Thursdays, I want it to go automatically to 1.aspx, and on Fridays, Saturdays, and Sundays, I want it to go to 2.aspx. Now, is it possible for this to be done without having to maually change the refresh URL every few days?

  • #2
    Regular Coder
    Join Date
    Dec 2002
    Location
    France
    Posts
    522
    Thanks
    0
    Thanked 0 Times in 0 Posts

    yes

    Public Sub dayRedirect()
    Response.Redirect(Weekday(Date.Now).ToString + ".aspx")
    End Sub



    then where you need it just write


    dayRedirect()

  • #3
    New Coder
    Join Date
    Jun 2003
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    THANK YOU!!! I have looked for that for about two months, and no one has been able to help.

  • #4
    Regular Coder
    Join Date
    Dec 2002
    Location
    France
    Posts
    522
    Thanks
    0
    Thanked 0 Times in 0 Posts

    sunday = 0

    just care that depending where you are living sunday or monday = 0


  •  

    Posting Permissions

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