ASP.NETÖиù¾ÝÄ£°åÉú³É¾²Ì¬Ò³!
template.htmÄ£°åÒ³Ô´Âë:
1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2. <html xmlns="http://www.w3.org/1999/xhtml" >
3. <head>
4. <title> $title$ </title>
5. <meta http-equiv=content-type content="text/html; charset=UTF-8" />
6. <mce:style type="text/css"><!--
7. <!--
8. .STYLE1 {
9. font-size: 16px;
10. font-weight: bold;
11. }
12. -->
13.
--></mce:style><style type="text/css" mce_bogus="1">
7. <!--
8. .STYLE1 {
9. font-size: 16px;
10. font-weight: bold;
11. }
12. -->
13. </style>
14. </head>
15. <body>
16. <br />
17. <br />
18. <table width="100%" border="0" bgcolor="#339900">
19. <tr>
20. <td height="34" align="center" bgcolor="#FFFFFF"><span class="STYLE1">$title$ </span></td>
21. </tr>
22. <tr>
23. <td height="42" bgcolor="#FFFFFF"><br />
24. <br />
25. ÄÚÈÝ£º$content$ </td>
26. </tr>
27. </table>
28. <a href="http://www.51aspx.com" mce_href="http://www.51aspx.com" target="_blank">51aspx.com °æȨËùÓÐ</a>
29. </body>
30. </html>
Default.aspxÒ³ÃæÔ´Âë:
1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
2.
3. <!DOCTYPE html PUBLIC &quo
Ïà¹ØÎĵµ£º
Ê×ÏÈÉêÃ÷ ´¿Êô¸öÈËÁ·Ï°Ö®×÷ ÇëÎðÓÃÓÚÉÌҵĿµÄ..........ÎÞÓï
¼ÍÄîÒ»ÏÂÎÒÒÔÇ°µÄÒ»¸ö×÷Æ·<¿ú>,ÒÔºó¾ÍÓÃËüµ±ÎÒµÄLOGOÁË
½ñÌìÊÇÊ×·¢,ÕâƪÎÄÕÂÎÒ»á³ÖÐø¸üÐÂ,ÎÒ²ÎÕÕÁËÔ°ÇøÀïÇ°±²µÄ¾Ñé,ÃþË÷×ÅȥʵÏÖ,Ä¿Ç°´óÌåµÄ»¹Î´ÍêÉÆ,ÏÈ·¢ÕÅͼÉÏÀ´...
......
ÔÚʹÓÃAJAX½øÐгÌÐò¿ª·¢µÄʱºò£¬Ò»Ö±¶¼»áÃæ¶ÔÒ»¸ö»º´æµÄÎÊÌ⣡£¡
¼´ÊÇ£¬ÉÏ´ÎÇëÇóµÄʱºò£¬ÒòΪÄãµÄSQLÓï¾ä»òÕßÆäËûÔÒò£¬webserviceÖзµ»ØֵΪ¿Õ£¬²»ÊÇÄãÏëÒªµÄ½á¹û¼¯£¬ÔÚÄã·¢ÏÖwebserviceÖÐÓï¾äÌå³ö´íºó£¬½øÐÐÐ޸ģ¬ÖØвâÊÔ£¬ÈÔÈ»ÊÇÉϴεķµ»Ø½á¹û£¡¸Ð¾õ¾ÍÏñÄãµÄÐÞ¸ÄÍêÈ«ÎÞЧ¡£¡£
Æäʵ£¬ÕâÊÇÔÚAJAXµ ......
PRB£ºÔÚʹÓà Response.End¡¢Response.Redirect »ò Server.Transfer ʱ³öÏÖ ThreadAbortException
Ö¢×´
Èç¹ûʹÓà Response.End¡¢Response.Redirect »ò Server.Transfer ·½·¨£¬½«³öÏÖ ThreadAbortException Òì³£¡£Äú¿ÉÒÔʹÓà try-catch Óï¾ä²¶»ñ´ËÒì³£¡£
ÔÒò
Response.End ·½·¨ÖÕÖ¹Ò³µÄÖ´ÐУ¬²¢½«´ËÖ´ÐÐÇл»µ½Ó¦ÓóÌÐò ......
ÎÒÊÔ×ÅȥʹÓÃasp.net mvcÄ£°åÈ¥´´½¨Ò»¸öblog·¢²¼ÏµÍ³¡£µ±È»£¬ÍøÉÏÓкܶàopen sourceµÄÄã¿ÉÒÔʹÓã¬ÌرðÊǺܶàphpдµÄÄ£°å¡£
ÕâÀïÖ»ÊÇÈ¥ÊÔ×ÅѧϰʹÓÃasp.net mvcÄ£°åÈ¥´´½¨Ò»¸öblog·¢²¼ÏµÍ³£¬ÎÒ×Ô¼ºÓᣴ󲿷ֵÄblog¶¼»áÓÐÈçÏÂһЩ²¿·Ö×é³É£º
ÕâÀﻹ»áʹÓÃCommon Library .net Õâ¸öopen sourceµÄproject¡£Äã¿ÉÒÔµ½ ......
asp.net ¿ª·¢Öг£ÓõÄһЩ·½·¨×ܽáËäȻдµÄ²»ºÃ,µ«ºÜʵÓÃ
using System;
using System.Collections.Generic;
using System.Text;
using System.Web;
using System.Net;
using System.Text.RegularExpressions;
using System.Web.UI;
using System.Web.SessionState;
using System.Web.UI.WebControls;
using Syst ......