ASP.NET中textbox.text无法显示东西。运行后,我点按钮1,textbox木有反应怎么回事?
<scriptlanguage="vb"runat="server">SubmyButton1_Click(SenderAsObject,EAsEventArgs)myT...
<script language="vb" runat="server">
Sub myButton1_Click(Sender As Object,E As EventArgs)
myTextBox1.text=myButton1.text
End Sub
</script>
<html>
<head>
<title>计算器</title>
</head 个人计算器>
<body>
<form runat="server">
<asp:Button ID="myButton1" Text="1" runat="server"/>
<asp:TextBox ID="myTextBox1" Text="" runat="server"/>
</form>
</body>
</html> 展开
Sub myButton1_Click(Sender As Object,E As EventArgs)
myTextBox1.text=myButton1.text
End Sub
</script>
<html>
<head>
<title>计算器</title>
</head 个人计算器>
<body>
<form runat="server">
<asp:Button ID="myButton1" Text="1" runat="server"/>
<asp:TextBox ID="myTextBox1" Text="" runat="server"/>
</form>
</body>
</html> 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询