asp后台代码问题
初学ASP,好多东西还不太懂!肯请各位哥哥姐姐弟弟妹妹指教一下!这是某网站的后台主页:位于admin/index.asp代码如下:请各位哥哥姐姐弟弟妹妹帮忙解释一下~!万...
初学ASP,好多东西还不太懂!肯请各位哥哥姐姐弟弟妹妹指教一下!
这是某网站的后台主页:位于admin/index.asp
代码如下:
请各位哥哥姐姐弟弟妹妹帮忙解释一下~! 万分感谢!
<%If session("adminuser")="" or isnull(session("adminuser")) then response.redirect "login.asp"
Response.Write"<meta http-equiv=Content-Type content=text/html; charset=gb2312>"
Response.Write"<title></title>"
Response.Write"<link href=../sub/main.css rel='stylesheet' type=text/css>"
Response.Write"</head>"
Response.Write"<frameset rows='*' cols='160,*' frameborder='no' border='0' bordercolor='CDD0DE' framespacing='10'>"
Response.Write" <frame src='Left.asp' name='leftFrame' scrolling='auto' noresize framespacing='0' border='0' frameborder='no' style='border-right:#BF956F 0px solid;'>"
Response.Write" <frame src='Welcome.asp' name='mainFrame' ramespacing='0' frameborder='no'>"
Response.Write"</frameset>"
Response.Write"<noframes><body>"
Response.Write"您的浏览器不支持框架,请便用微软的IE浏览器!"
Response.Write"</body></noframes>"
Response.Write"</html>"
%> 展开
这是某网站的后台主页:位于admin/index.asp
代码如下:
请各位哥哥姐姐弟弟妹妹帮忙解释一下~! 万分感谢!
<%If session("adminuser")="" or isnull(session("adminuser")) then response.redirect "login.asp"
Response.Write"<meta http-equiv=Content-Type content=text/html; charset=gb2312>"
Response.Write"<title></title>"
Response.Write"<link href=../sub/main.css rel='stylesheet' type=text/css>"
Response.Write"</head>"
Response.Write"<frameset rows='*' cols='160,*' frameborder='no' border='0' bordercolor='CDD0DE' framespacing='10'>"
Response.Write" <frame src='Left.asp' name='leftFrame' scrolling='auto' noresize framespacing='0' border='0' frameborder='no' style='border-right:#BF956F 0px solid;'>"
Response.Write" <frame src='Welcome.asp' name='mainFrame' ramespacing='0' frameborder='no'>"
Response.Write"</frameset>"
Response.Write"<noframes><body>"
Response.Write"您的浏览器不支持框架,请便用微软的IE浏览器!"
Response.Write"</body></noframes>"
Response.Write"</html>"
%> 展开
2个回答
展开全部
<%If session("adminuser")="" or isnull(session("adminuser")) then response.redirect "login.asp"
--------------------------------------------------------------
获取adminuser 判断真的跳转到login.asp页面 里面的判断就是 是否为空
---------------------------------------------------------------
Response.Write"<meta http-equiv=Content-Type content=text/html; charset=gb2312>"
Response.Write"<title></title>"
Response.Write"<link href=../sub/main.css rel='stylesheet' type=text/css>"
Response.Write"</head>"
Response.Write"<frameset rows='*' cols='160,*' frameborder='no' border='0' bordercolor='CDD0DE' framespacing='10'>"
Response.Write" <frame src='Left.asp' name='leftFrame' scrolling='auto' noresize framespacing='0' border='0' frameborder='no' style='border-right:#BF956F 0px solid;'>"
Response.Write" <frame src='Welcome.asp' name='mainFrame' ramespacing='0' frameborder='no'>"
Response.Write"</frameset>"
Response.Write"<noframes><body>"
Response.Write"您的浏览器不支持框架,请便用微软的IE浏览器!"
Response.Write"</body></noframes>"
Response.Write"</html>"
%>
----------------------------------------------------------------------
Response.Write 是输出的意思 就是把htm框架输出到浏览器
----------------------------------------------------------------------
--------------------------------------------------------------
获取adminuser 判断真的跳转到login.asp页面 里面的判断就是 是否为空
---------------------------------------------------------------
Response.Write"<meta http-equiv=Content-Type content=text/html; charset=gb2312>"
Response.Write"<title></title>"
Response.Write"<link href=../sub/main.css rel='stylesheet' type=text/css>"
Response.Write"</head>"
Response.Write"<frameset rows='*' cols='160,*' frameborder='no' border='0' bordercolor='CDD0DE' framespacing='10'>"
Response.Write" <frame src='Left.asp' name='leftFrame' scrolling='auto' noresize framespacing='0' border='0' frameborder='no' style='border-right:#BF956F 0px solid;'>"
Response.Write" <frame src='Welcome.asp' name='mainFrame' ramespacing='0' frameborder='no'>"
Response.Write"</frameset>"
Response.Write"<noframes><body>"
Response.Write"您的浏览器不支持框架,请便用微软的IE浏览器!"
Response.Write"</body></noframes>"
Response.Write"</html>"
%>
----------------------------------------------------------------------
Response.Write 是输出的意思 就是把htm框架输出到浏览器
----------------------------------------------------------------------
展开全部
If session("adminuser")="" or isnull(session("adminuser")) then response.redirect "login.asp"
'判断是否已经登录后台,如果没有登录的话跳转到login.asp页面
'下面的代码是后台页面,使用了框架,left.asp是应该是左侧的菜单,就是后台包含的功能,Welcome.asp首次登录显示的页面
'判断是否已经登录后台,如果没有登录的话跳转到login.asp页面
'下面的代码是后台页面,使用了框架,left.asp是应该是左侧的菜单,就是后台包含的功能,Welcome.asp首次登录显示的页面
参考资料: 潍坊网站建设,536123.com
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询