我有 2 个 asp:面板。一个 asp:panel 包含一个文本框和一个按钮,其代码如下
<asp:TextBox ID="tbGoal" runat="server" CssClass="textbox" Width="222px" Height="26px"></asp:TextBox><br />
<asp:Button ID="btnUpdate" runat="server" Text="Update Goal" CssClass="button" OnClick="btnUpdate_Click" />
/* ****************************************************************************
* CODE BEHIND
*
******************************************************************************** */
protected void btnUpdate_Click(object sender, EventArgs e)
{
// I am trying to pass the updated textbox value to a label which is inside a GridView
// which is inside the second ASP:PANEL
}
有人可以告诉我这是否可能。欣赏它