--------------Handling Gridviews DataBound Event -----------------
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 To Trigger Actions-------
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;
}
-------------Button To Activate Trigger-------------
//------------Popup Panel Code 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>
//------------End of Popup Panel Code-------------
<asp:Button ID="btnTrgCHS1" runat="server" style="display:none;" onclientclick="btnTrgCHS1Click();" />
Encountering issues with triggering the btnTrgCHS_server Click event...