...

View Full Version : Possible????



Josh_Brown
06-13-2003, 07: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?

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



then where you need it just write


dayRedirect()

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

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum