public void DoLogin()
{
string strname = Request.Params["txtname"];
string strpassword = Request.Params["txtpassword"];
if (adbll.DoLogin(strname, strpassword))
{
Response.Redirect("../Admin/main.html");//这里跳过去页面找不到
}
else
{
Response.Write("<script>alert('登陆失败!');history.go(-1);</script>");
}
}
}
{
string strname = Request.Params["txtname"];
string strpassword = Request.Params["txtpassword"];
if (adbll.DoLogin(strname, strpassword))
{
Response.Redirect("../Admin/main.html");//这里跳过去页面找不到
}
else
{
Response.Write("<script>alert('登陆失败!');history.go(-1);</script>");
}
}
}
解决方案 »
- 急 不知道哪里出问题了,csdn只要一登陆无法显示论坛内容,但是不登陆就可以显示怎么回事
- 为何多出一行的数据?
- C#Socket编程的问题,关到窗体显示的关闭的....
- WebClient类获取聊天室网页问题
- SQL查询语句. 解答后,马上给分!!!!!!!!!!!!!
- 如何将两个Excel文件合并成一个excel文件
- 程序打包问题?急。。。。。。。。。。。。。
- 如果要求label的Text必须是"黑体"等其他字体,怎么办???????
- 安装和部署时的错误
- 在C#中如何把屏幕时时发送到局域网所有机子!高手请进???
- 窗体问题, 急唧唧。。。
- VB没有学过,现在有段VB代码,改为C#,急求高手解决
或者换个方法,不用redirect
太久不用MVC了,忘记了,我记得有至少2种办法跳转呢
跳转上静态页面跟aspx一样
{
return Redirect("~/index.html");
}
把你的 main.html 建在Views文件夹 外面。