Click here to Skip to main content
16,016,795 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i m using an ajax modal popup extender whose target control id is set to a link button , when i click on link button the popup window is coming ,but the link button click event is not executing ........ i want both to happen, what to do....plz help
Posted
Comments
Christian Graus 30-Jul-12 3:25am    
Consider posting some code. Also consider learning to program instead of stacking one crappy MS library on top of the other and watching them fight it out....
Himu from Orissa 30-Jul-12 3:44am    
i cant get u

i think your modal pop up page call first and due to this execution control switch to that page and your button click event not executed.for this either write a code in button click event method and in this it self code for call modal pop up page.if this is not helpful to you,write button click event method code in page load method of modal pop up.if your prob not solve by this soln send me your code.have a nice day
 
Share this answer
 
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:
ASP.NET
<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>


C#
protected void lnkMyLink_Click(object sender, EventArgs e)
{
    mpeAgentDtls.Show();
}



--Amit
 
Share this answer
 
Comments
Himu from Orissa 1-Aug-12 6:35am    
thanx, its working!!!!!!!!!!11
_Amy 1-Aug-12 6:37am    
Welcome. :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900