Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

[ת]Asp.net 2.0Ò³ÃæÑùʽ¶ªÊ§×ܽá

תÔØ×Ô¡¾ÃÏ×ÓEÕ¡¿£ºhttp://blog.csdn.net/net_lover/archive/2007/08/27/1760521.aspx
¾­³£ÓÐÈËÓöµ½ASP.NET 2.0£¨ASP.NET 1.xÖпÉÄÜÊÇÓÐЧµÄ£©ÖÐCSSʧЧµÄÎÊÌ⣬ÏÖ½«Ö÷ÒªÔ­ÒòºÍ½â¾ö·½·¨ÂÞÁÐÈçÏ£º
1.CSSÎļþ·¾¶²»ÕýÈ·
    Õâ¸öÎÊÌâÊôÓÚWeb¿ª·¢ÖеĻù´¡ÎÊÌ⣬һ°ã²ÉÓÃÏà¶Ô·¾¶»á³öÏÖÕâÑùµÄÎÊÌ⣬»òÕßÑùʽÎļþдÔÚÁËĸ°æÒ³ÀïÃ棬ÔÚÄÚÈÝÒ³Óëĸ°æÒ³²»ÔÚͬһ¼¶Ä¿Â¼ÏÂʱ»á³öÏÖÕâÑùµÄÎÊÌâ¡£´ËʱÄãÒªÇå³þWebÖÐÏà¶Ô·¾¶µÄ¹æÔò£¬Èç¹ûÄã²»Çå³þ£¬¿ÉÒÔ²ÉÓþø¶Ô·¾¶µÄд·¨ÊÔÊÔ¾ÍÖªµÀÊDz»ÊÇ·¾¶µÄÎÊÌâÁË¡£
2.CSS¹æÔòд·¨´íÎó
    Õâ¸öÎÊÌâË­Ò²°ï²»Ä㣬ֻÄÜ×Ô¼ºÑ§Ï°CSSµÄÏà¹Ø֪ʶÁË¡£
3.Îļþ±àÂëÎÊÌâ
    ÓÐʱºò£¬CSSÑùʽ·ÅÔÚaspxÎļþÀïÓÐЧ£¬¶ø·ÅÔÚ¶ÀÁ¢µÄÎļþÖÐÎÞЧ£¬ÕâÑùµÄÎÊÌâÈç¹û²»ÊÇ·¾¶ÎÊÌ⣬Ôò¾ÍÊDZàÂëÎÊÌâÔì³ÉµÄ£¬¿ÉÒÔ½«CSSÎļþÓüÇʱ¾´ò¿ª£¬ÔÙÁí´æΪANSI¸ñʽ»òÕßUTF-8¸ñʽ¼´¿É¡£
4.ȨÏÞÎÊÌâ
    ÕâÖÖÇé¿ö³£¼ûµÄÏÖÏóÊǵǼ֮ǰÑùʽÎÞЧ£¬µÇ¼֮ºó²ÅÓÐЧ£¬ÕâÊǵäÐ͵ÄȨÏÞÎÊÌâÔì³ÉµÄ¡£ÓÉÓÚweb.configÅäÖÃÁËËùÓÐÎļþ²»ÔÊÐíÄäÃû·ÃÎÊ£¬²Å»á³öÏÖÕâÑùµÄÎÊÌ⣬½â¾ö·½·¨¾ÍÊǽ«<location>±ê¼Ç½«ÑùʽÎļþÅäÖÃΪÔÊÐíÄäÃû·ÃÎÊ¡£ÀýÈ磺
<configuration>
   <location path="ÔÊÐíÄäÃû·ÃÎʵÄÎļþ¼ÐÃû³Æ»òÕßÎļþ·¾¶">
      <system.web>
         <authorization>
            <allow users="?"/>
         </authorization>
      </system.web>
   </location>
</configuration>
5.µ¥»÷°´Å¥ÑùʽʧЧ
    ÕâÖÖÇé¿ö×îµäÐ͵ÄÔ­ÒòÊǵ¥»÷°´Å¥Ê¼þÀïÓÐÀàËÆResponse.WriteÕâÑùµÄÓï¾ä£¬ÓÉÓÚASP.NET 2.0ĬÈϲÉÓÃhttp://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtdÎĵµÀàÐͶ¨Ò壬Ëü¾ÍÒªÇóÔÚ<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">µÄÇ°Ãæ²»ÄÜÓÐÈκÎÊä³ö¡£ÕâÖÖÎÊÌâµÄ½â¾ö·½·¨ÊDzÉÓÃClientScriptManagerÊä³ö£¬»òÕß²ÉÓÃLiteral¿Ø¼þÊä³öÄÚÈÝ¡£
    [תÔز¹³ä]
  &nbs


Ïà¹ØÎĵµ£º

Asp.net Ajax webserviceʱ¼ä´Á

  ÔÚʹÓÃAJAX½øÐгÌÐò¿ª·¢µÄʱºò£¬Ò»Ö±¶¼»áÃæ¶ÔÒ»¸ö»º´æµÄÎÊÌ⣡£¡
¼´ÊÇ£¬ÉÏ´ÎÇëÇóµÄʱºò£¬ÒòΪÄãµÄSQLÓï¾ä»òÕßÆäËûÔ­Òò£¬webserviceÖзµ»ØֵΪ¿Õ£¬²»ÊÇÄãÏëÒªµÄ½á¹û¼¯£¬ÔÚÄã·¢ÏÖwebserviceÖÐÓï¾äÌå³ö´íºó£¬½øÐÐÐ޸ģ¬ÖØвâÊÔ£¬ÈÔÈ»ÊÇÉϴεķµ»Ø½á¹û£¡¸Ð¾õ¾ÍÏñÄãµÄÐÞ¸ÄÍêÈ«ÎÞЧ¡£¡£
   Æäʵ£¬ÕâÊÇÔÚAJAXµ ......

apss asp.net C# web ¶¨Ê±Ö´ÐгÌÐò

using System;
using System.Collections;
using System.ComponentModel;
using System.Web;
using System.Web.SessionState;
using System.Timers;
using System.Data;
using System.Data.SqlClient;
namespace SMS_joke
{
/// <summary>
/// Global µÄժҪ˵Ã÷¡£
/// </summary>
public class ......

ASP.NET(C#)·µ»ØÉÏÒ»Ò³(ºóÍË)´úÂ루תÔØ£©

ASP.NET(C#)·µ»ØÉÏÒ»Ò³(ºóÍË)´úÂë
2008-08-10 10:32
protected void Page_Load(object sender, EventArgs e)
{
    if (!IsPostBack)
    {
        ViewState["BackUrl"] = Request.UrlReferrer.ToString();
    }
}
/// <s ......

asp.net ¿ª·¢³£Óõķ½·¨Ò»

×ܽáasp.net¿ª·¢³£Óõķ½·¨Ò»
using System;
using System.Globalization;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections;
using System.IO;
namespace MoneyWise
{
/// <summary>
/// utils µÄժҪ˵Ã÷¡£
/// </summary>
public class utils
{
pr ......

asp.net ¿ª·¢³£Óõķ½·¨¶þ

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 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ