asp.net °ó¶¨GridView
ǰ̨ aspx Îļþ:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="List.aspx.cs" Inherits="List" %>
<!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 id="Head1" runat="server">
<title></title>
<link href="css.css" mce_href="css.css" rel="stylesheet" type="text/css" />
<mce:script language="javascript" type="text/javascript"><!--
function disOpen(c)
{
var xposition=0;
var yposition=0;
var width=600;
var height=550;
var url=c;
url=url+"?pagesize="+document.forms(0).hidpagesize.value;
if ((parseInt(navigator.appVersion) >= 4 ))
{
xposition = (screen.width - width) / 2;
yposition = (screen.height - height) / 2;
}
var theproperty= "width=" + width + ","
+ "height=" + height + ","
+ "location=0,"
+ "menubar=0,"
+ "resizable=1,"
+ "scrollbars=1,"
+ "status=0,"
+ "titlebar=0,"
+ "toolbar=0,"
+ "hotkeys=0,"
+ "screenx=" + xposition + ","
+ "screeny=" + yposition + ","
+ "left=" + xposition + ","
+ "top=" + yposition;
window.open(url,null,theproperty );
}
function DEL(N)
{
if(window.confirm("Are you sure you wish to delete?")==true)
{
document.forms(0).hidID.value = N;
document.forms(0).hidopMode.value = "1";
document.forms(0).submit();
}
}
function CheckMsg()
{
if(document.forms(0).hidsysMsg.value.length!=0)
{
alert(docu
Ïà¹ØÎĵµ£º
protected void Button1_Click(object sender, EventArgs e)
{
SqlConnection conn;
SqlCommand cmd1, cmd2;
SqlTransaction tra;
conn = new SqlConnection("server=.;database=test;uid=sa;pwd=123");
conn.Open();
tra = conn.BeginTransaction();//¿ªÊ¼ÊÂÎ ......
1. Êý¾Ý¿â·ÃÎÊÐÔÄÜÓÅ»¯¡¡
¡¡
Êý¾Ý¿âµÄÁ¬½ÓºÍ¹Ø±Õ
·ÃÎÊÊý¾Ý¿â×ÊÔ´ÐèÒª´´½¨Á¬½Ó¡¢´ò¿ªÁ¬½ÓºÍ¹Ø±ÕÁ¬½Ó¼¸¸ö²Ù×÷¡£ÕâЩ¹ý³ÌÐèÒª¶à´ÎÓëÊý¾Ý¿â½»»»ÐÅÏ¢ÒÔͨ¹ýÉí·ÝÑéÖ¤£¬±È½ÏºÄ·Ñ·þÎñÆ÷×ÊÔ´¡£ASP.NETÖÐÌṩÁËÁ¬½Ó³Ø(Connection Pool)¸ÄÉÆ´ò¿ªºÍ¹Ø±ÕÊý¾Ý¿â¶ÔÐÔÄܵÄÓ°Ï졣ϵͳ½«Óû§µÄÊý¾Ý¿âÁ¬½Ó·ÅÔÚÁ¬½Ó³ØÖУ¬ÐèҪʱȡ³ö£¬¹Ø±ÕÊ±Ê ......
×î½üÕýÔÚ×öÒ»¸ö±¨±í³ÌÐò£¬Ò²¾ÍÊÇÀûÓÃÒѾÓеı¨±íÄ£°å£¬½«Êý¾Ý¿âÀïµÄÊý¾ÝÌî³ä½øÈ¥ºó£¬¿Í»§¶Ë¿ÉÒÔÏÂÔØ¡£
»ù±¾Ë¼ÏëÊÇÕâÑùµÄ£º1.ÔÚ·þÎñÆ÷¶Ë±¾µØÐ½¨Ò»¸öÎļþ¼Ð£¬×¨ÃÅÓÃÀ´´æ·ÅÁÙʱµÄExcel±í¸ñ
& ......
¶ÔÓÚÎÄÕÂÆª·ù±È½Ï³¤µÄ£¬¾Í±ØÐë²ÉÓ÷ÖÒ³ÏÔʾ¡£ÔÚ.netÖжԳ¤ÆªÎÄÕ·ÖÒ³Ò»°ãÓÐ2ÖÖ·½·¨£¬µÚÒ»ÖÖ¾ÍÊÇÏȼÆËãºÃÒ»Ò³µÄÎÄ×Ö³¤¶ÈÊǶàÉÙ£¬È»ºó°ÑÎÄÕÂ×ܵij¤¶È³ýÉèÖúõĵ¥Ò³ÎÄ×Ö³¤¶È¼°¿É£¬ÓÃÕâ·½·¨¿ÉÒÔ¼õÉÙÈÏΪ½øÐзÖÒ³µÄ·±Ëö£¬µ«ÊÇÕâÑù·ÖÒ³³öÀ´µÄ¿ÉÄܲ»ÊǺÜÕýÈ·£¬ÒòΪ²»ÄÜ´ïµ½ÏëÔÚÄ³Ð©ÌØµãλÖýøÐзÖÒ³¡£µÚ¶þÖÖ¾ÍÊÇͨ¹ýÈËΪºÍ³ÌÐòÊµÏ ......
1. Êý¾Ý¿â·ÃÎÊÐÔÄÜÓÅ»¯¡¡
¡¡
Êý¾Ý¿âµÄÁ¬½ÓºÍ¹Ø±Õ
·ÃÎÊÊý¾Ý¿â×ÊÔ´ÐèÒª´´½¨Á¬½Ó¡¢´ò¿ªÁ¬½ÓºÍ¹Ø±ÕÁ¬½Ó¼¸¸ö²Ù×÷¡£ÕâЩ¹ý³ÌÐèÒª¶à´ÎÓëÊý¾Ý¿â½»»»ÐÅÏ¢ÒÔͨ¹ýÉí·ÝÑéÖ¤£¬±È½ÏºÄ·Ñ·þÎñÆ÷×ÊÔ´¡£ASP.NETÖÐÌṩÁËÁ¬½Ó³Ø(Connection Pool)¸ÄÉÆ´ò¿ªºÍ¹Ø±ÕÊý¾Ý¿â¶ÔÐÔÄܵÄÓ°Ï졣ϵͳ½«Óû§µÄÊý¾Ý¿âÁ¬½Ó·ÅÔÚÁ¬½Ó³ØÖУ¬ÐèҪʱȡ³ö£¬¹Ø±ÕÊ ......