asp.netºǫ́»ñÈ¡js±í¸ñµÄÊý¾Ý
»áajaxµÄÆ®¹ý
¿´ÂÛ̳ÀïºÃ¶àÈËÔÚÕÒºǫ́»ñÈ¡js±í¸ñµÄÊý¾Ý£¬¾Í°ÑÒÔÇ°µÄ·½·¨·ÅÔÚÕâÀïÁË
ǰ̨£º
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!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>asp.net»ñȡǰ̨js±í¸ñµÄÊý¾Ý</title>
<style type="text/css"><!--
.dis-ime
{
ime-mode:disabled;
}
-->
</style>
</head>
<body>
<form id="form1" runat="server">
<h3>ʹÓÿͻ§¶ËÌí¼Ó±í¸ñµÄ±£´æ</h3>
<p>
Ö÷ÊǾÍÊÇÔÚÌá½»µ½·þÎñÆ÷֮ǰ£¬´¦ÀíºÃ±í¸ñÀïµÄÐÅÏ¢£¬È»ºó¸³Öµ¸øhidden<br />
to mqtheone:ÕâÀïÎÒÉèÖÃ×îºóÒ»ÁÐÖ»ÄÜÊäÈëÊý×ÖÁË£¬Äã¿ÉÒԲο¼Ò»ÏÂ
</p>
<div>
<table id="tab1">
<tr>
<th>Ãû³Æ</th>
<th>ÄÚÈÝ</th>
<th>Öµ</th>
<th></th>
</tr>
<tr>
<td><input type="text" /></td>
<td><input type="text" /></td>
<td><input type="text" class="dis-ime" onkeypress="return check(event)"/></td>
</tr>
</table>
<input type="button" style="margin-left:400px" mce_style="margin-left:400px" value="Ìí¼ÓÐÅÏ¢" id="btnAddInfo" /><br />
<asp:Button ID="Button1" runat="server" Text="Ìá½»" OnClientClick="initData();"
onclick="Button1_Click" />
<asp:HiddenField ID="HiddenField1"
runat="server" />
</div>
</form>
</body>
<script type="text/javascript"><!--
var $=function(){return document.getElementById(arguments[0]);};
var check=f
Ïà¹ØÎĵµ£º
Ê×Ò³£º
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!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 ......
Ò»¡¢ÈÏʶWeb.configÎļþ
Web.config ÎļþÊÇÒ»¸öXMLÎı¾Îļþ£¬ËüÓÃÀ´´¢´æ ASP.NET Web Ó¦ÓóÌÐòµÄÅäÖÃÐÅÏ¢£¨Èç×î³£ÓõÄÉèÖÃASP.NET Web Ó¦ÓóÌÐòµÄÉí·ÝÑéÖ¤·½Ê½£©£¬Ëü¿ÉÒÔ³öÏÖÔÚÓ¦ÓóÌÐòµÄÿһ¸öĿ¼ÖС£µ±Äãͨ¹ý.NETн¨Ò»¸öWebÓ¦ÓóÌÐòºó£¬Ä¬ÈÏÇé¿öÏ»áÔÚ¸ùĿ¼×Ô¶¯´´½¨Ò»¸öĬÈϵÄWeb.configÎļþ£¬°üÀ¨Ä¬ÈϵÄÅäÖÃÉèÖã ......
½ñÌ죬¿´µ½PETSHOP4.0ÀïµÄWEB.CONFIG¶ÔÊý¾Ý¿âÁ¬½Ó×Ö·û´®¼ÓÃÜ£¬ËùÒÔÌØÒâѧϰ²¢¼Ç¼ÏÂÀ´¡£
.net ÌṩÁË System.Configuration.RsaProtectedConfigurationProvider ¡£
Ê×ÏÈÅäÖÃWEB.CONFIG
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
< ......
1. Êý¾Ý¿â·ÃÎÊÐÔÄÜÓÅ»¯
¡¡¡¡Êý¾Ý¿âµÄÁ¬½ÓºÍ¹Ø±Õ
¡¡¡¡·ÃÎÊÊý¾Ý¿â×ÊÔ´ÐèÒª´´½¨Á¬½Ó¡¢´ò¿ªÁ¬½ÓºÍ¹Ø±ÕÁ¬½Ó¼¸¸ö²Ù×÷¡£ÕâЩ¹ý³ÌÐèÒª¶à´ÎÓëÊý¾Ý¿â½»»»ÐÅÏ¢ÒÔͨ¹ýÉí·ÝÑéÖ¤£¬±È½ÏºÄ·Ñ·þÎñÆ÷×ÊÔ´¡£ASP.NETÖÐÌṩÁËÁ¬½Ó³Ø(Connection Pool)¸ÄÉÆ´ò¿ªºÍ¹Ø±ÕÊý¾Ý¿â¶ÔÐÔÄܵÄÓ°Ï졣ϵͳ½«Óû§µÄÊý¾Ý¿âÁ¬½Ó·ÅÔÚÁ¬½Ó³ØÖУ¬ÐèҪʱȡ³ö£¬¹Ø±Õ ......