急,小妹在线跪等,webform1.aspx页里不出属性????
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="_0.WebForm1"%>
<HTML>
<HEAD>
<title>WebForm1</title>
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<table width="455" border="1" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="159"><asp:TextBox id="TB1" runat="server"></asp:TextBox></td>
<td width="150"><asp:Button id="Button1" runat="server" Text="Button" OnClick="B_click"></asp:Button></td>
<td width="138"><asp:Label id="Msg" runat="server">Label</asp:Label></td>
</tr>
</table>
</form>
</body>
</HTML>
<script language="vb" runat="server">
sub B_click(sender As Object, e As EventArgs)
Msg.text=TB1.text '问 题:当我写Msg.时为什么"."的后面不出的属性或事
'件,当我不用Codebehind="WebForm1.aspx.vb"也是一样的.
'就比如我写Msg.()不出text这个属性一样, 当我写TB1.
'也是不出为啥????????
'当然我要是在webform.aspx.vb写程序是出属性或事件的,
'但我在webform1.aspx写程序就是不出出属性或事件?
'我看书好多都是程序写在webform1.aspx页里,难道程序
'写在webform1.aspx页里是不出属性的,那不是跟ASP一
'样呢?
end sub
</script>