|
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="uscMsgBox.ascx.cs" Inherits="YaBu.MessageBox.uscMsgBox" %>
<asp:UpdatePanel ID="udpMsj" runat="server" UpdateMode="Conditional" RenderMode="Inline">
<ContentTemplate>
<asp:Button ID="btnD" runat="server" Text="" Style="display: none" Width="0" Height="0" />
<asp:Button ID="btnD2" runat="server" Text="" Style="display: none" Width="0" Height="0" />
<asp:Panel ID="pnlMsg" runat="server" CssClass="mp" Style="display: none" Width="550px">
<asp:Panel ID="pnlMsgHD" runat="server" CssClass="mpHd">
Message
</asp:Panel>
<asp:GridView ID="grvMsg" runat="server" ShowHeader="false" Width="100%" AutoGenerateColumns="false">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<table>
<tr>
<td>
<asp:Image ID="imgErr" runat="server" ImageUrl="~/App_Themes/default/mpImgs/err.png"
Visible=' <%# (((Message)Container.DataItem).MessageType == enmMessageType.Error) ? true : false %>' />
<asp:Image ID="imgSuc" runat="server" ImageUrl="~/App_Themes/default/mpImgs/suc.png"
Visible=' <%# (((Message)Container.DataItem).MessageType == enmMessageType.Success) ? true : false %>' />
<asp:Image ID="imgAtt" runat="server" ImageUrl="~/App_Themes/default/mpImgs/att.png"
Visible=' <%# (((Message)Container.DataItem).MessageType == enmMessageType.Attention) ? true : false %>' />
<asp:Image ID="imgInf" runat="server" ImageUrl="~/App_Themes/default/mpImgs/inf.png"
Visible=' <%# (((Message)Container.DataItem).MessageType == enmMessageType.Info) ? true : false %>' />
</td>
<td>
<%# Eval("MessageText")%>
</td>
</tr>
</table>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
<div class="mpClose">
<asp:Button ID="btnOK" runat="server" Text="OK" CausesValidation="false" Width="60px" />
<asp:Button ID="btnPostOK" runat="server" Text="OK" CausesValidation="false" OnClick="btnPostOK_Click"
Visible="false" Width="60px" />
<asp:Button ID="btnPostCancel" runat="server" Text="Cancel" CausesValidation="false"
OnClick="btnPostCancel_Click" Visible="false" Width="60px" />
</div>
</asp:Panel>
<AjaxControls:ModalPopupExtender ID="mpeMsg" runat="server" TargetControlID="btnD"
PopupControlID="pnlMsg" PopupDragHandleControlID="pnlMsgHD" BackgroundCssClass="mpBg"
DropShadow="true" OkControlID="btnOK">
</AjaxControls:ModalPopupExtender>
</ContentTemplate>
</asp:UpdatePanel>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Yavuz is a software developer since 2001. He has been working as senior software developer in
Netigma Project at
NetCad since 2012.
He has experience in mostly Microsoft technologies such as ASP.Net, SQL Server, C#, VB.Net, WPF, WCF etc. and especially interested in security and performance issues.