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
Ïà¹ØÎĵµ£º
VS2005µ÷ÊÔasp.net³ÌÐòʱ³öÏÖ----Internet Explorer ÎÞ·¨ÏÔʾ¸ÃÒ³Ãæ
ÈçͼËùʾ£º
ǰ¶Îʱ¼ä¿ÉÒÔµ÷ÊԵģ¬ËÖª×òÍíͻȻ²»ÐÐÁË£¬ÕÒÁ˺þã¬ÖÕÓÚÕÒµ½½â¾ö·½°¸¡£ÓõÄÊÇVS2005£¬Îļþϵͳ£¬ÔÚIISÀïÃæÉèÖõϰ£¬¿ÉÒÔÔËÐУ¬´úÂëûÎÊÌ⣬Êý¾Ý¿âÁ¬½ÓûÎÊÌâ¡£
·½°¸Ò»£ºÍ¨¹ýÓÒ»÷ASP.NET Development Server£¬Èçͼ£º
´ò¿ª1£¬ÔÚĬÈÏä¯ÀÀÆ ......
Ö÷ÒªÀࣺ
¡¡¡¡System.Web.HttpRuntime
¡¡¡¡System.Web.HttpApplicationFactory
¡¡¡¡System.Web.HttpApplication
¡¡¡¡System.Web.Compilation.BuildManager
¡¡¡¡System.Web.Compilation.ApplicationBuildProvider
¡¡¡¡System.Web.Compilation.BuildProvidersCompiler
¡¡¡¡System.Web.UI.PageHandlerFactory
ÇëÇó´¦Àí ......
People often ask me for guidance on how they can dynamically "re-write" URLs and/or have the ability to publish cleaner URL end-points within their ASP.NET web applications. This blog post summarizes a few approaches you can take to cleanly map or rewrite URLs with ASP.NET, and have th ......
//private string datapatch = ConfigurationSettings.AppSettings["acessconn"];//Êý¾Ý¿âµØÖ·
private string datapatch = "db/global.asa";//Êý¾Ý¿âµØÖ·
///
/// È¡µÃdataset
//
/// ²éѯÓï¾ä
///
public DataSet GetDataSet(string Commandtext)
{&nbs ......
ÔÚweb configÖÐ ×÷ÈçÏÂÅäÖãº
<connectionStrings>
<add name="ydycon" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;
Data Source=|DataDirectory|ydy.mdb" providerName="System.Data.OleDb"/>
</connectionStrings>
ÔÚ.netÎļþÖÐÓ¦ÓÃÁ´½Ó ......