| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 950 人关注过本帖
标题:求助——我的一段源码请问怎么调试呀!!
只看楼主 加入收藏
lantian002
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2005-4-15
收藏
 问题点数:0 回复次数:7 
求助——我的一段源码请问怎么调试呀!!

我是一个asp爱好者 也是一只菜鸟 我有一个黄页程序 但它的后台有问题 我不知道该怎么搞 求助各位老大们帮我看一下 我把源码帖在了下面 知道的请帮忙告诉我一下 怎么搞

========================================= …………………… dim username dim password dim ip stats=tatty_name(0)&"--控制面板" select case request("action") case "admin_left" call admin_left() case "admin_login" call admin_login() case "admin_main" call admin_main() case "admin_head" call admin_head() case else call main() end select sub main() if session("flag")="" then call admin_login() else %> <html> <head> <title><%=tatty_name(2)%>--<%=tatty_name(0)%>--控制面板</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> </head> <frameset framespacing="0" border="0" frameborder="0" cols="180,*"> <frame name="leftFrame" scrolling="auto" noresize target="rtop" src="admin_index.asp?action=admin_left"> <frameset rows="4%,*"> <frame name="rtop" target="rbottom" scrolling="no" src="admin_index.asp?action=admin_head"> <frame name="main" src="admin_index.asp?action=admin_main"> </frameset> <noframes> </noframes> </frameset> </html> <% end if end sub

Function IsObjInstalled(strClassString) On Error Resume Next IsObjInstalled = False Err = 0 Dim xTestObj Set xTestObj = Server.CreateObject(strClassString) If 0 = Err Then IsObjInstalled = True Set xTestObj = Nothing Err = 0 End Function

sub admin_head() %> <title><%=tatty_name(0)%>--管理页面</title> <link rel="stylesheet" href="pic/admin.css" type="text/css"> <BODY leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" bgcolor="#D6DFF7"> <table width="100%" align=center cellpadding=0 cellspacing=0 border=0> <tr> <td height="23" class="forumHeaderBackgroundAlternate" valign=middle id=TableTitleLink>?→ 欢迎<b><%=session("member")%></b>进入<b><%=tatty_name(0)%></b>控制面板</td> <td class="forumHeaderBackgroundAlternate" valign=middle id=TableTitleLink><a href="http://www.new-point.net.cn/bbs" target=_blank>到企业论坛去和其他朋友交流</a></td> <td class="forumHeaderBackgroundAlternate" align=right valign=middle id=TableTitleLink><a href="index.asp" target=_top>返回系统首页</a>??</td> </tr> </table> <% end sub sub admin_login if request("reaction")="chklogin" then call chklogin() else dim num1 dim rndnum Randomize Do While Len(rndnum)<4 num1=CStr(Chr((57-48)*rnd+48)) rndnum=rndnum&num1 loop session("verifycode")=rndnum call admin_login_main() end if end sub sub admin_login_main() call topmain() %> <form action="admin_index.asp?action=admin_login&reaction=chklogin" method=post> <table style="width:65%" border=0 cellspacing=1 cellpadding=3 align=center class=tableBorder> ………………

[此贴子已经被作者于2005-4-16 9:30:00编辑过]

搜索更多相关主题的帖子: 源码 调试 
2005-04-15 11:45
hxfly
Rank: 5Rank: 5
等 级:贵宾
威 望:17
帖 子:5810
专家分:118
注 册:2005-4-7
收藏
得分:0 
够长的,着是一段代码吗?有一个程序了吧!!哈哈!!!
还有
请把你的错误报告写出来
大家分析起来比较容易

2005-04-15 12:28
哈马拟
Rank: 1
等 级:新手上路
帖 子:270
专家分:0
注 册:2004-7-15
收藏
得分:0 
真搞不懂,

楼主到底想知道什么?想解决什么问题?

2005-04-15 12:51
starcxy
Rank: 1
等 级:新手上路
帖 子:46
专家分:0
注 册:2005-4-8
收藏
得分:0 
斑主!! 想让人气旺就多忙忙新手了!!!!!!!!!!!!!
 我是小菜瓜!!!
!!!!!!!!!!!!!!

我是浪子!!!!! 我怕谁!!!!! 灌水不是我的错!!!!!!! 错在我生错了年代!!!!!!!!!
2005-04-15 20:17
yms123
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:209
帖 子:12488
专家分:19042
注 册:2004-7-17
收藏
得分:0 
边写Asp的最苯的调试办法(我个人采用的),写一小段运行一小段。其他的,谁有好的ASP编写工具的话能提供,那我就谢谢他。
2005-04-15 21:41
lantian002
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2005-4-15
收藏
得分:0 
当我安装的时候
用户和密码对的
但登陆不了
出现一个空白页面!!!

/photo/z-xf/494.gif" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://www./photo/z-xf/494.gif');}" onmousewheel="return imgzoom(this);" alt="" />
2005-04-16 08:49
lantian002
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2005-4-15
收藏
得分:0 
状况
下边的这个就是我在后台登陆的时候出现的页面
老大们帮我看一下好吧!!
============================
图片附件: 游客没有浏览图片的权限,请 登录注册

/photo/z-xf/494.gif" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://www./photo/z-xf/494.gif');}" onmousewheel="return imgzoom(this);" alt="" />
2005-04-16 08:55
lantian002
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2005-4-15
收藏
得分:0 
我实在不知道为什么???
所以我把它帖出来
给老大们看一下
结合上面的代码
到底为什么

/photo/z-xf/494.gif" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://www./photo/z-xf/494.gif');}" onmousewheel="return imgzoom(this);" alt="" />
2005-04-16 08:57
快速回复:求助——我的一段源码请问怎么调试呀!!
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.023406 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved