- <body>
- <form id="form1" runat="server">
- <div>
- <asp:Label ID="Label1" runat="server" Style="z-index: 100; left: 112px; position: absolute;
- top: 16px" Text="姓名:" Width="48px"></asp:Label>
- <asp:TextBox ID="txtName" runat="server" AutoPostBack="True" OnTextChanged="txtName_TextChanged"
- Style="z-index: 101; left: 176px; position: absolute; top: 16px"></asp:TextBox>
- <asp:Label ID="Label2" runat="server" Style="z-index: 103; left: 152px; position: absolute;
- top: 80px" ><%# txtName.Text+"你好"%></asp:Label>
- </div>
- </form>
- </body>
数据绑定--简单属性
最新推荐文章于 2020-07-02 14:40:55 发布