Strider
Feb 23rd, 2005, 07:14 AM
When i use some javascript code embedded in a Page.RegisterStartupScript to redirect a page, the new page does not seem to identify the sessions that i try to assign to values on that page
Session.Add(ApplicationSettings.SESSION_INFORMATION_MESSAGE, New String("Repair successfully updated.<br> Click OK to Return to Main Page"))
Session.Add(ApplicationSettings.SESSION_INFORMATION_DESTINATION, ApplicationSettings.PAGE_START)
Page.RegisterStartupScript("RedirectScript", "<script>redirectPage('http://xxx.xxx.xxx.xxx/Repairs/" & ApplicationSettings.PAGE_INFORMATION & "');</script>")
Session.Add(ApplicationSettings.SESSION_INFORMATION_MESSAGE, New String("Repair successfully updated.<br> Click OK to Return to Main Page"))
Session.Add(ApplicationSettings.SESSION_INFORMATION_DESTINATION, ApplicationSettings.PAGE_START)
Page.RegisterStartupScript("RedirectScript", "<script>redirectPage('http://xxx.xxx.xxx.xxx/Repairs/" & ApplicationSettings.PAGE_INFORMATION & "');</script>")