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

asp.net¼òµ¥ÊµÏÖÒ³Ãæ»»·ô

ʵÏÖÒ³Ãæ»»·ô ¸øhtml form Ìí¼ÓÏàÓ¦µÄÑùʽ ´úÂëÈçÏÂ:
private string _StyleClass;
public string StyleClass
{
get { return _StyleClass; }
set { _StyleClass = value; }
}
private void StyleForm()
{
HtmlForm Form1 = this.FindControl("form1") as HtmlForm;
Form1.Attributes.Add("class", _StyleClass);


}
protected override void OnPreRender(EventArgs e)
{
//¿Ø¼þ³ÊÏÖµ÷Ó÷½·¨
StyleForm();
base.OnPreRender(e);
}


Ïà¹ØÎĵµ£º

ʹÓÃASP.NET Global.asax Îļþ

Global.asax Îļþ£¬ÓÐʱºò½Ð×ö ASP.NET Ó¦ÓóÌÐòÎļþ£¬ÌṩÁËÒ»ÖÖÔÚÒ»¸öÖÐÐÄλÖÃÏìÓ¦Ó¦ÓóÌÐò¼¶»òÄ£¿é¼¶Ê¼þµÄ·½·¨¡£Äã¿ÉÒÔʹÓÃÕâ¸öÎļþʵÏÖÓ¦ÓóÌÐò°²È«ÐÔÒÔ¼°ÆäËüһЩÈÎÎñ¡£ÏÂÃæÈÃÎÒÃÇÏêϸ¿´Ò»ÏÂÈçºÎÔÚÓ¦ÓóÌÐò¿ª·¢¹¤×÷ÖÐʹÓÃÕâ¸öÎļþ¡£
¸ÅÊö
Global.asax λÓÚÓ¦ÓóÌÐò¸ùĿ¼Ï¡£ËäÈ» Visual Studio .NET »á×Ô¶¯²åÈëÕ⸠......

¹ØÓÚasp.netÓû§µÇ¼ȨÏÞ´úÂë

ÎÒÔÚ×öͼÊé¹ÜÀíϵͳ£¬Óû§¹ÜÀíȨÏÞ£¬ÔÚasp¡£netÀ²»ÓÃsessionµÄ»°£¬Ó¦¸ÃÓÃʲô´úÂë
protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
        & ......

dz̸ASP.NETÒ³ÃæÉúÃüÖÜÆÚ(¿Ø¼þ)

ASP.NETµÄÓŵãÎÒ˵¹ýºÜ¶à´ÎÁË£¬Ò²¾ÍÊǸ÷¸ö¿Ø¼þ¶ÀÁ¢¸ºÔð×Ô¼ºÄÚ²¿µÄÂß¼­£¬ÕâÊÇÒ»¸öºÃÊÂÇ飬ÒòΪËü½â¾öÁËÔ­±¾ASP´¦ÀíÂß¼­ñîºÏ¶È¸ßµÄÎÊÌ⡣Ȼ¶øÕâÊÇÐèÒª´ú¼ÛµÄ£¬ÄǾÍÊÇÒýÈëASP.NETÒ³ÃæÉúÃüÖÜÆÚ£¬Ëæ×ſؼþµÄ¶à²ãǶÌ×£¬Ó¦Óõĸ´ÔÓ¶ÈÔö¼Ó£¬ÎÒÃÇÔÙ´ÎÏÝÈëÄà̶£¡
ÆäʵÕâ¸öÎÄÕÂÌâÄ¿ÎÒÁ½¸öÔÂÇ°¾ÍдÏÂÁË£¬¿ÉÊÇһֱûÏëдÍêËü£¬Ö±µ½½ñÌìÎ ......

Ò»Ì×»ùÓÚasp.netµÄ°²È«Ð£Ñé»úÖÆÓ¦ÓÃÄ£ÐÍ £¡

using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Syste ......

ASP.NetÖг£¼ûµÄϵͳ¶ÔÏó

page£ºpage¶ÔÏóÊÇÖ¸Ò³Ãæ×ÔÉíµÄ·½Ê½£¬ÔÚÕû¸öÒ³ÃæµÄÖ´ÐÐÆÚÄÚ£¬¶¼¿ÉÒÔÓøöÔÏó¡£
Request£º´Ë¶ÔÏó·â×°ÁËÓÉWebä¯ÀÀÆ÷»òÕßÆäËû¿Í»§¶ËÉú³ÉµÄHTTPÇëÇóµÄϸ½Ú£¬Ìṩ´Óä¯ÀÀÆ÷¶ÁÈ¡ÐÅÏ¢»òÕ߶ÁÈ¡¿Í»§¶ËÐÅÏ¢µÈ¹¦ÄÜ£¬ÓÃÓÚÒ³ÃæÇëÇóÆÚ¡£
Response£º´Ë¶ÔÏó·â×°ÁË·µ»Øµ½HTTP¿Í»§¶ËµÄÊä³ö£¬ÌṩÏòä¯ÀÀÆ÷Êä³öÐÅÏ¢»òÕß·¢ËÍÖ¸ÁÓÃÓÚÒ³ÃæµÄÖ´ÐÐ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ