asp.net两个简单的问题!(20分)

  • 主题发起人 主题发起人 捡垃圾去上网的人
  • 开始时间 开始时间

捡垃圾去上网的人

Unregistered / Unconfirmed
GUEST, unregistred user!
1,<%@ Page Language="C#" ContentType="text/html" ResponseEncoding="gb2312" %>
<%@ Register TagPrefix="Acme" Namespace="Acme" %>
<script runat="server">
void btn_click(object sender,EventArgs e)
{
message.Text=": "+name.Text+"&amp;#1121;:"+Category.SelectedItem;
}
</script>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>??</title>
<meta http-equiv="Content-Type" content="text/html;
charset=gb2312" />
<link href="intro.css" rel="stylesheet" />
</head>
<body>
<form action="intro4.aspx" method="post" runat="server">
<center>
</center>
<br />
<asp:textbox id="name" runat="server"></asp:textbox>
<asp:dropdownlist id="Category" runat="server">
<asp:listitem>psychology</asp:listitem>
<asp:listitem>business </asp:listitem>
<asp:listitem>kjjkljl</asp:listitem>
</asp:dropdownlist>
<asp:Button onclick="btn_click" runat="server" text="lookup"></asp:Button>
<br />
<asp:Label id="message" runat="server"></asp:Label>
<ACME: id="mycal" runat="server" Calendar="Calendar" />
</form>
</body>
</html>
提示范区指令缺少“assembly”属性。这是为什么呢!!!!!
2,用DW写的代码,在matrix 里怎么不能正常解析呢!
那个是asp.net高手请留QQ号
 
下面修改是正确执行的的:
<%@ Page Language="C#" ContentType="text/html" ResponseEncoding="gb2312" %>
<script runat="server">
void btn_click(object sender,EventArgs e)
{
message.Text="name: "+name.Text+" Category:"+Category.SelectedItem;
}
</script>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html;
charset=gb2312" />
<link href="intro.css" rel="stylesheet" />
</head>
<body>
<form action="intro4.aspx" method="post" runat="server">
<center>
</center>
<br />
<asp:textbox id="name" runat="server"></asp:textbox>
<asp:dropdownlist id="Category" runat="server">
<asp:listitem>psychology</asp:listitem>
<asp:listitem>business </asp:listitem>
<asp:listitem>kjjkljl</asp:listitem>
</asp:dropdownlist>
<asp:Button onclick="btn_click" runat="server" text="lookup"></asp:Button>
<br />
<asp:Label id="message" runat="server"></asp:Label>
</form>
</body>
</html>
 
老兄呀你现在才回复我已经放弃学.net从新开如学java..........
但分还是会给你的.
 
后退
顶部