Hi,
Take a temp link and set the
TargetControlID
of the model popup extender as that temp link. make sure that it cannot visible to user. Now use your link button. The linkbutton will work now. Only thing you need to do is set model-popup visible to the user using code behind. Like:
<a href="#" style="display: none; visibility: hidden;" onclick="return false;" id="TempLnk" runat="server">TempLnk</a>
<act:modalpopupextender id="mpeAgentDtls" backgroundcssclass="BackgroundStyle" runat="server" cancelcontrolid="btnCLose" okcontrolid="btnSelect" targetcontrolid="TempLnk" popupcontrolid="pnlSrcRisk" repositionmode="RepositionOnWindowResize" viewstatemode="Enabled" xmlns:act="#unknown">
</act:modalpopupextender>
protected void lnkMyLink_Click(object sender, EventArgs e)
{
mpeAgentDtls.Show();
}
--Amit