|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="YaBu_MessageBox._Default" %>
<%@ Register Src="MessageBoxUsc/uscMsgBox.ascx" TagName="uscMsgBox" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body style="padding: 30px 0px 0px 30px;">
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" EnableScriptGlobalization="true"
EnableScriptLocalization="true">
</asp:ScriptManager>
<h3>
AJAX Enabled Server Side MessageBox With Confirmation Support</h3>
<hr />
<div>
<table>
<tr>
<td>
Info Message
</td>
<td>
<asp:Button ID="btnInfo" runat="server" Text="Show Info Message" OnClick="btnInfo_Click" />
</td>
</tr>
<tr>
<td>
Error Message
</td>
<td>
<asp:Button ID="btnError" runat="server" Text="Show Error Message" OnClick="btnError_Click" />
</td>
</tr>
<tr>
<td>
Attention Message
</td>
<td>
<asp:Button ID="btnAttention" runat="server" Text="Show Attention Message" OnClick="btnAttention_Click" />
</td>
</tr>
<tr>
<td>
Success Message
</td>
<td>
<asp:Button ID="btnSuccess" runat="server" Text="Show Success Message" OnClick="btnSuccess_Click" />
</td>
</tr>
<tr>
<td>
Multiple Message
</td>
<td>
<asp:Button ID="btnMultiple" runat="server" Text="Show Multiple Message" OnClick="btnMultiple_Click" />
</td>
</tr>
<tr>
<td>
Argument For Confirmation
</td>
<td>
<asp:TextBox ID="txtArg" runat="server" /><br />
</td>
</tr>
<tr>
<td>
Confirmation Message
</td>
<td>
<asp:Button ID="btnConfirm" runat="server" Text="Show Confirmation Message" OnClick="btnConfirm_Click" />
</td>
</tr>
<tr>
<td colspan="2">
<hr />
Both the simple and and the confirmation messages are raised from server side code.
</td>
</tr>
</table>
</div>
<uc1:uscMsgBox ID="uscMsgBox1" runat="server" />
</form>
</body>
</html>
|
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.