--------------Gridviews DataBound 事件 -----
protected void grdShowCallingList_DataBound(object sender, EventArgs e)
{
if (grdShowCallingList.Rows.Count > 0)
{
foreach (GridViewRow row in grdShowCallingList.Rows)
{
LinkButton lnkCallHistorySummary = (LinkButton)row.FindControl("lnkCallHistorySummary");
lnkCallHistorySummary.OnClientClick = "return getCallHistroySummary('" + lblPersonID.Text + "','" + lblDomainID.Text + "');";
}
}
}
-------------Javascript 事件调用触发器------
function getCallHistroySummary(PID,DID)
{
document.getElementById("ctl00_cphContent_hfCHS").value = PID + "|" + DID;
document.getElementById("ctl00_cphContent_btnTrgCHS1").click();
return false;
}
function btnTrgCHS1Click() {
document.getElementById("ctl00_cphContent_btnTrgCHS_server").click();
return false;
}
-------------要触发的按钮-------------
//------------Modal Popup Starts-------------
<div ID="pnlCallSumHistory" runat="server" style="overflow: scroll; width: 710px; height: 400px;">
<asp:Button ID="btnTrgCHS_server" runat="server" OnClick="btnTrgCHS_Click" style="display:none;" />
<asp:UpdatePanel ID="updatePnlCallHistory" runat="server">
<ContentTemplate>
<asp:Literal ID="ltrCallHistory" runat="server"></asp:Literal>
</ContentTemplate>
<Triggers >
<asp:AsyncPostBackTrigger ControlID="btnTrgCHS_server" EventName="Click" />
</Triggers>
</asp:UpdatePanel>
</div>
//------------Modal Popup Panel Ends-------------
<asp:Button ID="btnTrgCHS1" runat="server" style="display:none;" onclientclick="btnTrgCHS1Click();" />
我无法触发与btnTrgCHS_server 点击事件相关的触发事件...