- 热门文章:
- · 用ASP的安全验证来对windows 2000的管理者密码进行在线修改
- · ADSI,使用ASP来完成NT管理
- · 被ASP的小问题难倒!
- · 域名查询系统--适合新手
- · asp模块化分页
- · ASP分页显示详论
- · Iframe高度自适应
- · 正则表达式大全
- · WMI学习
- · Session 详解
- · 关于交叉报表的动态实现
- · 页面执行需要长时间时向用户的提示信息
上一篇:VBS 中 Space 函数的应用 >>
游走于ASP与ASP.NET的郁闷
BC30451: Name ‘’form1‘’ is not declared.
但我在后面的表单里明明是定义了啊,源代码如下:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>index</title>
<script language="vb" runat="server">
sub bt_submit(sender AS Object,e As EventArgs)
form1.submit
end sub
sub bt_cancel(sender AS Object,e As EventArgs)
txt.text=""
txtpwd.text=""
txtpwd2.text=""
txtemail.text=""
end sub
</script>
</head>
<body>
<center>
<form name="form1" method="post" action="check.aspx" runat="server">
<table width="533" border="1">
<tr>
<th width="220" scope="row"><div align="right">ID:</div></th>
<td width="297"><asp:TextBox ID="txtid" runat="server" />
</td>
</tr>
<tr>
<th scope="row"><div align="right">Password:</div></th>
<td><asp:TextBox ID="txtpwd1" TextMode="Password" runat="server" Text=‘’12345678‘’ />
</td>
</tr>
<tr>
<th scope="row"><div align="right">input password again:</div></th>
<td><asp:TextBox ID="txtpwd2" TextMode="Password" runat="server" Text=‘’12345678‘’ />
</td>
</tr>
<tr>
<th scope="row"><div align="right">Sex:</div></th>
<td><asp:RadioButtonList ID="RadioButtonList" runat="server">
<asp:ListItem value="1">Men</asp:ListItem>
<asp:ListItem value="2">Female</asp:ListItem>
</asp:RadioButtonList>
</td>
</tr>
<tr>
<th scope="row"><div align="right">e-Mail:</div></th>
<td><asp:TextBox ID="txtemail" runat="server" />
</td>
</tr>
<tr>
<th colspan="2" scope="row"><div align="center">
<asp:Button ID="btsubmit" runat="server"
Text="Submit"
BorderStyle="ridge"
BackColor="lightblue"
onmouseover="this.style.backgroundColor=‘’ff3366‘’"
onmouseout="this.style.backgroundColor=‘’lightblue‘’" />
<asp:Button ID="btcancel" runat="server"
Text="Cancel"
BorderStyle="ridge"
BackColor="lightblue"
onmouseover="this.style.backgroundColor=‘’ff3366‘’"
onmouseout="this.style.backgroundColor=‘’lightblue‘’" />
</div></th>
</tr>
</table>
</form>
</center>
</body>
</html>
看来ASP和ASP.NET之间真的是有太多的不同了,这样一来一回真是晕死。还得继续请教高人。毕竟——ASP.NET才是偶未来的方向,一定要很熟练的掌握!
相关文章:
- · 使用Repeater模板 二
- · Sucess On a Horse
- · 校友通讯资料管理系统(1)
- · ASP实现图片上存
- · 提高网站在搜索引擎中的排名
- · 关于无组上传的老话题
- · 如何实现图片的随机生成与显示
- · 怎么把webapplication打包成安装文件
- · 为treeview添加客户端事件
- · 如何让不同的语言版本显示正确的中文?
- · 线程的处理(2)
- · 线程的处理(1)
- · 再谈ASP防止SQL Injection漏洞的问题
- · 用asp编写文档搜索页面
- · ASP中使用SQL语句
- · 利用反射动态调用类成员
- · Asp.net组件设计浅论
- · 越过调试这道槛——ASP.NET无法调试问题剖析
- · 一段用ASP查看ASP文件源码的程序.
- · ASP显示在线人数
- · Asp.net多页面间保留状态
- · 简单ASP计数器
- · 使用 HttpContext.RewritePath 来配合 Server.Transfer/Execute
- · SQLSERVER扩展存储过程XP_CMDSHELL的简单应用
- · SQL Server 存储过程的分页
- · 经典的asp整理
- · Access中分组统计的实例
- · 一段分页程序实例代码!
- · 从asp到asp.net之快速转型
- · ASP升级程序
- · 利用WebClient类向服务器上载文件
- · .net中Web自定义控件编写的几个注意事项
- · 奇妙的.NET之Web程序中使用windows弹出框
- · webservice.htc无法传递中文数据的解决
- · 用反射调用别人的.NET程序里的类和方法
- · DataView如何绑定Web Service返回的主从表数据集
- · 在类中添加断言
- · UBB代码的实现(ASP)
