为什么不能跳转到指定的页面

来源:百度知道 编辑:UC知道 时间:2024/05/16 02:16:42
相关代码如下:

try
{
// 打开数据库连接
if (objConnection.State == ConnectionState.Closed)
{
objConnection.Open();
}
// 获取运行结果
SqlDataReader result = objCommand.ExecuteReader();

if (result.Read() == true)
{
// 设置用户ID的全局便量
Session["userID"] = result["userID"].ToString();
Session["nickName"] = result["nickName"].ToString();
Session["userRole"] = result["userRole"].ToString();
if (Session["userRole"].ToString() == "1")
{
Response.Redirect("Manager.aspx");
}
else
{
Response.Redirect("

在要跳转的帧,加入"goto url"命令~~~

单击Add Action(添加动作)按钮,从弹出菜单上选择Goto URL(跳转URL),弹出动作属性对话框。在该对话框的URL输入域中输入要跳转的网站或网页地址(例http://www.163.com)

大概就是这样~~