1
在我的webform中我有幾個文本框。我有一個Web用戶控件的事件處理程序。當事件被觸發時,我設置了文本框的值,但沒有任何反應。設置我的TextBox文本值沒有做任何事情
它看起來並不像在頁面回發(是否是與在模式彈出我的web用戶控件?)我以爲是問題...
我做什麼錯誤?
網絡表單事件處理程序:
protected void Page_Load(object sender, EventArgs e)
{
SearchCompanies1.CompanyFound += new WebParts_SearchCompanies.CompanyFoundEventHandler(SearchCompanies1_CompanyFound);
}
void SearchCompanies1_CompanyFound(Company company)
{
myTextBox.Text = company.Name;
popup.Hide();
}
模式彈出和麪板:
<cc1:ModalPopupExtender ID="popup" runat="server" DropShadow="true"
TargetControlID="lnkSearchEditCompany" PopupControlID="pnlSearch"
BackgroundCssClass="modalBackgroundSearchCompany" CancelControlID="lnkCancel">
</cc1:ModalPopupExtender>
<asp:Panel ID="pnlSearch" runat="server" CssClass="modalPopupSearchCompany" style ="display:none">
<table width = "100%" cellpadding = "0" cellspacing = "0">
<tr>
<td align = "right">
<strong><asp:LinkButton ID="lnkCancel" runat="server" Text = "[X]"></asp:LinkButton></strong>
</td>
</tr>
<tr>
<td>
<uc2:SearchCompanies ID="SearchCompanies1" runat="server" />
</td>
</tr>
</table>
</asp:Panel>
我的活動肯定是被解僱和處理。我有一個更新面板和更新Web用戶控件的進度。
任何想法?