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

asp.netÉú³É¾²Ì¬Ò³

ÏȽ¨¸öhtmlÄ£°æÒ³(template.htm)£º
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>$title</title>
</head>
<body>
<table $htmlformat[0] height="100%" border="0" width="100%" cellpadding="10" cellspacing="0" bgcolor="#eeeeee" style="border:1px solid #000000">
<tr>
<td width="100%" valign="middle" align="left">
<span style="color: $htmlformat[1];font-size: $htmlformat[2]">$htmlformat[3]</span>
</td>
</tr>
</table>
</body>
</html>
ÔÚasp.netÖеÄÓ¦ÓÃ(c#):
   string[] format=new string[4];//¶¨ÒåºÍhtmlyem±ê¼ÇÊýĿһÖµÄÊý×é
   StringBuilder htmltext=new StringBuilder();
   try
   {
    using (StreamReader sr= new StreamReader(base.Server.MapPath(".")+"\\template.htm"))
¡¡    {
¡¡¡¡    String line;
¡¡¡¡    while ((line = sr.ReadLine()) != null)
¡¡¡¡    {
¡¡¡¡¡¡     htmltext.Append(line);
¡¡¡¡    }
¡¡¡¡    sr.Close();
¡¡    }
   }
   catch
   {
¡¡    Response.Write("<Script>alert('¶ÁÈ¡Îļþ´íÎó')</Script>");
   }
   //---------------------¸ø±ê¼ÇÊý×鸳ֵ------------
   string title="Ä£°å²âÊÔ";
   format[0]="background=\"bg.jpg\"";//±³¾°Í¼Æ¬
   format[1]= "#990099";//×ÖÌåÑÕÉ«
   format[2]="150px";//×ÖÌå´óС
   format[3]= "<marquee>Éú³ÉµÄÄ£°åhtmlÒ³Ãæ</marquee>";//ÎÄ×Ö˵Ã÷
   //----------Ìæ»»htmÀïµÄ±ê¼ÇΪÄãÏë¼ÓµÄÄÚÈÝ
   htmltext.Replace("$title",title);//°Ñtitle²»·ÅÔÚÊý×éÊÇΪÁ˱ȽÏһϣ¬£º£©¡£ÕâÑùд±È½ÏÈÝÒ׿´¶®
   for(int i


Ïà¹ØÎĵµ£º

Asp.Net 301ÖØ¶¨ÏòµÄʵÏÖ(SEOÓѺã¬ÓÐÀûÓÚPRÖµ)

ÍøÕ¾µÄÖØ¶¨Ïò£¬Í¨³£ÓõÄÓÐ 301 ºÍ 302£¬301ÊÇÓÀ¾ÃÖØ¶¨Ïò£¬ÊǶÔSEOÓѺõģ¬ÓÐÀûÓÚ±£³ÖÔ­ÓòÃûºÍÐÂÓòÃûÖ®¼äµÄPR×ªÒÆ¼°Á÷Á¿Êý¾ÝµÈ¡£
Asp.Net ÖÐʵÏÖ301ÖØ¶¨ÏòµÄ´úÂ룬ҲÊDZȽϼòµ¥µÄ£¬¾Ù¸öÀý×Ó£º
Ô­À´µÄÓòÃûÊÇ www.abc.com, ÏÖÔÚÒª½«¶ÔÕâ¸öÓòÃûµÄ·ÃÎÊ£¬È«²¿Öض¨Ïòµ½ www.zu14.cn;
Ö»ÐèÔÚ ÐèҪתÏòµÄÒ³ÃæÀ
protected void ......

26ÖÖÌá¸ßASP.NETÍøÕ¾·ÃÎÊÐÔÄܵÄÓÅ»¯·½·¨

1. Êý¾Ý¿â·ÃÎÊÐÔÄÜÓÅ»¯
Êý¾Ý¿âµÄÁ¬½ÓºÍ¹Ø±Õ
¡¡¡¡·ÃÎÊÊý¾Ý¿â×ÊÔ´ÐèÒª´´½¨Á¬½Ó¡¢´ò¿ªÁ¬½ÓºÍ¹Ø±ÕÁ¬½Ó¼¸¸ö²Ù×÷¡£ÕâЩ¹ý³ÌÐèÒª¶à´ÎÓëÊý¾Ý¿â½»»»ÐÅÏ¢ÒÔͨ¹ýÉí·ÝÑéÖ¤£¬±È½ÏºÄ·Ñ·þÎñÆ÷×ÊÔ´¡£ ASP.NETÖÐÌṩÁËÁ¬½Ó³Ø£¨Connection Pool£©¸ÄÉÆ´ò¿ªºÍ¹Ø±ÕÊý¾Ý¿â¶ÔÐÔÄܵÄÓ°Ï졣ϵͳ½«Óû§µÄÊý¾Ý¿âÁ¬½Ó·ÅÔÚÁ¬½Ó³ØÖУ¬ÐèҪʱȡ³ö£¬¹Ø±Õʱ ......

asp.net ÖÐÓÃJSµ¯³öģ̬´°¿ÚµÄ·ÖÒ³ÎÊÌâ

ÔÚasp.netÖÐÓÃjs¿ØÖƵ¯³öÒ»¸öģ̬´°¿Ú£¬Ä£Ì¬´°¿ÚÈ´²»ÄÜ·ÖÒ³¡£µ¥¶ÀÔËÐдËÒ³·ÖҳЧ¹ûÊÇ¿ÉÒÔ´ïµ½µÄ¡£
Îҵĵ¯³öģ̬´°¿ÚµÄ´úÂëÊÇ£º
var param=window.showModalDialog("../StorageList.aspx",null,"height=100px;width=950px;status=yes;toolbar=no,location=nu");
²»ÖªµÀΪʲô»á³öÏÖÕâÖÖЧ¹û£¿
½â¾ö·½·¨ÊÇÔÚÒªµ¯³öµÄģ̬´ ......

asp.netÔËÐÐÔ­Àí


 
Ö÷ÒªÀࣺ
¡¡¡¡System.Web.HttpRuntime
¡¡¡¡System.Web.HttpApplicationFactory
¡¡¡¡System.Web.HttpApplication
¡¡¡¡System.Web.Compilation.BuildManager
¡¡¡¡System.Web.Compilation.ApplicationBuildProvider
¡¡¡¡System.Web.Compilation.BuildProvidersCompiler
¡¡¡¡System.Web.UI.PageHandlerFactory ......

ASP.NET Routing for URLRewriting with QueryStrings

In the last post I showed how to use the ASP.NET 3.5 Routing Engine
for URLRewriting purposes. I want to go further in this post by adding
the ability to add variables into a route path and forward and append
query string variables to the destination Web Form request.
A route can contain one or ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ