ASP.NET AjaxʵÏÖµ¯³öÌáʾ¿ò£¬Ò³Ãæ±ä»Ò²»¿Éµã»÷
×î½üÔÚÍøÉÏ¿´µ½Ò»ÆªÎÄÕ£¬½²ASP.NET ajaxÖеÄÒì³£´¦Àí£¬ÓÐÒ»²¿·ÖÊÇ×Ô¶¨Òåjavascript´¦ÀíÒì³£¡£Í»È»Ïëµ½ÍøÒ×ÓÊÏäÖУ¬µ¯³ö¶Ô»°¿ò£¬ºó±ßµÄÒ³Ãæ±ä»ÒÇÒ²»¿Éµã»÷µÄЧ¹û¡£
ÔÚÍøÉÏÕÒÁËһϣ¬ÊµÏÖ·½·¨¾ÍÊÇÓÃÁ½¸ö²ã£¬Ò»¸ö²ãÓÃÀ´ÏÔʾÌáʾÐÅÏ¢£¬Ò»¸ö²ãÓÃÀ´ÕÚ×¡Ò³Ãæ£»»¹ÓÐÒ»¸ö°ì·¨¾ÍÊÇÓÃiframe.Á½ÕߵIJ»Í¬Ö®´¦´ó¸Å¾ÍÔÚÓÚiframe¿ÉÒÔÕÚסȫ²¿µÄÒ³ÃæÔªËØ£¬¶ødivÔò²»ÄÜÕÚסÏÂÀÁÐ±í¡£
ÎÒÕâ¸öÀý×ÓʹÓõÄdiv,¾ø´ó²¿·ÖÒýÓÃÁË£ºhttp://www.cnblogs.com/Terrylee/archive/2006/11/13/Customizing_Error_Handling.html
´úÂëÈçÏ£º
Default.aspx Ç°Ì¨Ò³Ãæ¼°javascript
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
<mce:style type="text/css"><!--
#UpdatePanel1{
width: 200px; height: 50px;
border: solid 1px gray;
}
#AlertDiv{
left: 40%; top: 40%;
position: absolute; width: 200px;
padding: 12px;
border: #000000 1px solid;
background-color: white;
text-align: left;
visibility: hidden;
z-index: 99;
}
#AlertButtons{
position: absolute; right: 5%; bottom: 5%;
}
--></mce:style><style type="text/css" mce_bogus="1">
#UpdatePanel1{
width: 200px; height: 50px;
border: solid 1px gray;
}
#AlertDiv{
left: 40%; top: 40%;
position: absolute; width: 200px;
padding: 12px;
border: #000000 1px solid;
background-color: white;
text-align: left;
visibility: hidden;
z-index: 99;
}
#AlertButtons{
position: absolute; right: 5%; bottom: 5%;
} </style>
</head>
<body id="bodytag" style="margin: 0px" mce_style="margin: 0px">
<form id="form1" runat="server">
<asp:ScriptMan
Ïà¹ØÎĵµ£º
asp.netÖÐÏÔʾÔÚÏßÓû§
private static System.Threading.Timer timer;
private const int interval = 1000 * 60 * 20;//¼ì²éÔÚÏßÓû§µÄ¼ä¸ôʱ¼ä
/// <summary>
/// ±ØÐèµÄÉè¼ÆÆ÷±äÁ¿¡£
/// </summary>
private System.ComponentModel.IContainer components = null;
public Global()
{
Initialize ......
PHP VS ASP.NET
²©¿Í·ÖÀà: ÊÕ»ñ»ýÀÛ
bruce·¢±íÓÚËÄÔ 14 2009, 04:42 ÏÂÎç
PHPºÍASP.NETÔÚ±¾ÖÊÉÏÊÇÓкܴó²»Í¬µÄ£¬PHP³£±»Ó¦Óõ½¹¦Ä̶ܹ¨µÄÍøÕ¾¹¹½¨ÉÏ£¬ÀýÈçÁôÑÔ°å¡¢ÐÂÎÅ·¢²¼¡¢ÂÛ̳ºÍͶƱµÈ£¬ÕâЩ¹¦ÄÜÊÇ¿ìËÙ½¨Õ¾±Ø±¸µÄ£¬×Ô¶¨Ò帴ÔÓµÄÉÌÒµÁ÷³Ì²»¶à£¬Òò´ËÍøÂ·ÉÏÓÐÐí¶àÏֳɵ ......
´Ë´¦ÌṩµÄ´úÂëÓÃÀ´ÊµÏÖµ±asp.netÒ³ÃæÖеÄij¸öButton±»µã»÷ºódisableµô¸ÃÒ³ÃæÖÐËùÓеÄButton£¬´Ó¶ø·ÀÖ¹Ìá½»ÑÓʱµ¼ÖµĶà´ÎÌá½»¡£»ùÓÚ֮ǰµÄonceclickbutton½Å±¾.
//ASP.NETÖзÀÖ¹Ò³Ãæ¶à´ÎÌá½»µÄ´úÂë:javascript< script language="javascript"> < !-- function disableOtherSubmit() {
var obj = event.srcElem ......
1.//µ¯³ö¶Ô»°¿ò.µã»÷תÏòÖ¸¶¨Ò³Ãæ
Response.Write(" <script>window.alert('¸Ã»áԱûÓÐÌá½»ÉêÇë,ÇëÖØÐÂÌá½»£¡')
</script>");
Response.Write(" <script>window.location
='http://www.51aspx.com/bizpulic/upmeb.aspx' </script>");
2.//µ¯³ö¶Ô»°¿ò
Re ......
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.IO;
using Sy ......