View Full Version : Possible????

06-13-2003, 08:19 AM
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?

06-13-2003, 08:44 AM
Public Sub dayRedirect()
Response.Redirect(Weekday(Date.Now).ToString + ".aspx")
End Sub

then where you need it just write


06-13-2003, 02:13 PM
THANK YOU!!! I have looked for that for about two months, and no one has been able to help.

06-13-2003, 02:29 PM
just care that depending where you are living sunday or monday = 0