Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Ajax ASP.NET4.0
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 21:10pm
Comments
Christian Graus at 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 at 30-Jul-12 3:44am
   
i cant get u
Rate this: bad
good
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
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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
  Permalink  
Comments
Himu from Orissa at 1-Aug-12 6:35am
   
thanx, its working!!!!!!!!!!11
_Amy at 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
0 Schatak 394
1 OriginalGriff 355
2 _Amy 115
3 Sergey Alexandrovich Kryukov 109
4 Andreas Gieriet 100
0 OriginalGriff 7,107
1 Sergey Alexandrovich Kryukov 5,623
2 Maciej Los 3,504
3 Peter Leow 3,373
4 DamithSL 2,505


Advertise | Privacy | Mobile
Web04 | 2.8.140721.1 | Last Updated 30 Jul 2012
Copyright © CodeProject, 1999-2014
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