[我的ASP.net学习历程]TextBox和Label的数据梆定(一)

类别:Asp 点击:0 评论:0 推荐:
<%@ Page Language="C#" AutoEventWireup="True" %>
<Script language="C#" runat="server">
void Page_Load(Object Sender,EventArgs e){
 DataBind();
}
</Script>
<form id="Form_1" runat="server">
<asp:textbox TextMode="MultiLine" Columns="50" Rows="10" ID="TextBox_1" runat="server"/>
<input id="Button_1" type="Submit" value="Button" runat="server"/>
</form>
<asp:label ID="Label_1" Text="<%#TextBox_1.Text%>" runat="server"></asp:label>

本文地址:http://com.8s8s.com/it/it8563.htm