Click here to Skip to main content
12,768,090 members (44,801 online)
Rate this:
Please Sign up or sign in to vote.
See more: Ajax ASP.NET4
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 29-Jul-12 22:10pm
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
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

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">

protected void lnkMyLink_Click(object sender, EventArgs e)

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)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170217.1 | Last Updated 30 Jul 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100