这样可以吗?
if (page.Session[ "UserProfile "] != null)
{
Impact.Entities.userprofile up = (Impact.Entities.userprofile)(page.Session[ "UserProfile "]);
ups = up;
return up;
}
else
{
Response.Write( " <script language= 'javascript '> parent.top.location.href= '/WebUI/LogIn.aspx '; </script> ");
Response.End();
return null;
}
------解决方案--------------------------------------------------------
top.parentFrame.location.href= "*.jsp ";
------解决方案--------------------------------------------------------
parent.location.href