Brian
|
Posted: 10/28/2003, 2:47 AM |
|
I know that this subject has been discussed many times, but I am still having problems. I want to redirect the user to a different page based on his login securityID. I know what code to put in, on a separate redirect page, and I know to have the return page set to this redirect page. The problem is when I create a new page in CC, and put the code in the on load event of the form, I get errors that seem to be related to the scripting language. It defaults to javascript at the top of the page. Can I just create a blank page with the redirection code in it, or should I put the code in another place within the CC generated page. An exact example in code would be helpful.
Thank you,
Brian
|
|
|
Ken Hardwick -CC/ASP
|
Posted: 10/28/2003, 3:09 AM |
|
For my ASP and CC I create a "redirect" page with only a menu form on it.
Then, in the Page Open event I add :
response.redirect(session("redirect"))
With my calling page setting up the session value so that I can reuse this
same redirect page from various pages.
If you have specific additional calls to this page,you can add code prior to this, like :
'from LTIP Summary
if getparam("grade") <> "" then
Session("LTIP_GRADE") = getparam("grade")
Session("KM_LEVEL2") = getparam("Level2")
response.redirect("LTIP_Employees.asp")
end if
response.redirect(session("redirect"))
So, if a "grade" parameter is passed to the redirect page, then the if statement
handle it.
Hope this helps.
Ken Hardwick
Norman,Ok
|
|
|
|