Click here to Skip to main content
15,884,986 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Im using an ajax modal popup control, I'm trying to get the popup to display different values based on what buttons are pressed on the page. I can get it to display the correct info for one but not multiple, here's my code,


<pre lang="HTML"><ajaxToolkit:ModalPopupExtender ID="ModalPopup1" runat="server" BackgroundCssClass="modalBackground" TargetControlID="imgInfoCallCountDisplayed" PopupControlID="pnlPopup" >
</ajaxToolkit:ModalPopupExtender>
<asp:Panel ID="pnlPopup" runat="server" CssClass="modalPopup" Style="display: none;"
DefaultButton="btnOk">
<table width="100%">
<tr>
<td valign="middle" align="left">
<asp:Label ID="lblMessage" runat="server" Text="'Actual' displays the value supplied. 'Rated' displays the value that was used to calculate the cost."></asp:Label>
</td>
</tr>
<tr>
<td colspan="2" align="right">
<asp:Button ID="btnOk" runat="server" Text="Ok" />
</td>
</tr>
</table>
</asp:Panel></pre>

Any help is very much apreciated.
Posted
Updated 13-Sep-11 0:46am
v3

1 solution

In popup prerender event check whick button is pressed and based on that write your code
 
Share this answer
 
Comments
Pravin Patil, Mumbai 13-Sep-11 6:46am    
Very good 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