Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
XML
hello,

here i give my javascript.

when i use: modelpopupextender


<ajaxtoolkit:ModalPopupExtender ID="mpid" BehaviorID="myBID" runat="server"
TargetControlID="img" PopupControlID="Pan1" CacheDynamicResults="true"
DropShadow="true" CancelControlID="img">
</ajaxtoolkit:ModalPopupExtender>

<script type="text/javascript" language="javascript">

function showModal(index) {


document.getElementById('<%=lab.ClientID%>').innerHTML = index;
var modal = $find("myBID");
modal.set_X(gx + 5); // Note: here, it invokes or goes to set_X function.  here i am getting gx value (for ex: 75).
modal.set_Y(gy);
modal.show();

}

}

when i use : popupcontrolextender:

asi used modelpopupextender , it is not allowing other asp.net control to be enable. once poped up , all other asp.net control got  disabled. so i used popupcontrolextender to resolve below.

<ajaxtoolkit:PopupControlExtender ID="PopEx" runat="server"
TargetControlID="img" BehaviorID="myBID"
PopupControlID="Pan1"
Position="Bottom" />

when i debug tha javascript function.

everthing works similar when i used modelpopupextender.

but here,

modal.set_X(gx + 5); Note: here, here also i am getting gx value (for ex: 75) , but,it does  not invoke or does not go to set_X function. becuase of this my popup is not working. once if it goes set_X function, it will work.

why it is not inovoking. how to solve. help needed.
Posted

1 solution

hello, i Got the solution myself. Even Modelpopextender control will work the above requirement. no need popupcontrolexnder.



just i added one more property called "backgroundcssclass="popupControl "" in Modelpopextender control and wrote css class for that follows:


.popupControl {
background-color:#AAD4FF;

position:absolute;
visibility:hidden;
}



now it allows to click next item. This may be helpful for someone.



Thanks.
 
Share this answer
 

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