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

类别:Asp 点击:0 评论:0 推荐:
<%@ Page Language="C#" AutoEventWireup="True" %>
<Script language="C#" runat="server">
void Page_Load(Object Sender,EventArgs e){
 Page.DataBind();
}
string ReturnSource(){
 return (TextBox_1.Text);
 }
</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="<%#ReturnSource()%>" runat="server"></asp:label>

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