protected void dlArmyToday_ItemCommand(object source, DataListCommandEventArgs e) { if (e.CommandName == "History") { btnhistory.CommandArgument = e.CommandArgument.ToString(); BindHistory(); popArmyHistory.Show(); } if (e.CommandName == "EditDetails") { ImgCancel.CommandArgument = e.CommandArgument.ToString(); BindEditDetails(); popupEdit.Show(); } if (e.CommandName == "Approve") { btnCancel.CommandArgument = e.CommandArgument.ToString(); // popupApprove.Show(); popArmyHistory.Show(); } if (e.CommandName == "True" || e.CommandName == "False") { btnActiveCancel.CommandArgument = e.CommandArgument.ToString(); //Active(); popupActive.Show(); } } the source file is <asp:Button runat="server" ID="btnFakeTarget" style="display:none;" /> <ajaxToolkit:ModalPopupExtender ID="popArmyHistory" runat="server" TargetControlID="btnFakeTarget" PopupControlID="pnlArmyHistory" CancelControlID="btnhistory" BackgroundCssClass="modalBackground" /> <asp:Panel ID="pnlArmyHistory" runat="server"> <div class="popupWindowTitle"> <div class="hedredcolor">History</div> <div style="float:right"><asp:ImageButton ID="btnhistory" ImageUrl="~/Inc/Image/Page/close.png" runat="server" /></div> </div> <div class="popupWindow" align="center"> <asp:UpdatePanel ID="panel" runat="server"> <contenttemplate> <table width="600" border="0" align="center" cellpadding="2" cellspacing="2"> <tr> <td align="left" valign="middle" class="normaltext"> Activated On: </td> <td align="left" valign="middle" class="normaltext"> <asp:Label ID="lblActivatedOn" runat="server" Text=""> </td> </tr> <tr> <td width="27%" align="left" valign="middle" class="normaltext"> Reason for Activation: </td> <td align="left" valign="middle" class="normaltext"> <asp:Label ID="lblAReason" runat="server" Text=""> </td> </tr> </table> </contenttemplate> </div>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)