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

asp.netÓÃfckEditor³öÏÖÂÒÂëÎÊÌâ

¹Ø¼üÔÚÉÏ´«µÄʹÓÃÓõ½ÁËupload.aspx,¶øÕâ¸öÒ³ÃæĬÈϵıàÂëͳһΪutf-8,ËùÒÔÎÒÃÇÒª¸øËü¸Ä±äһϡ£ÔÚÄãµÄweb.configÖÐÔö¼Ó´Ë×Ö¶Î
  <location path="fckeditor/editor/filemanager/connectors/aspx/upload.aspx">
    <system.web>
      <globalization requestEncoding="utf-8" responseEncoding="gb2312"/>
    </system.web>
  </location>
×¢Ò⣬ÄãµÄweb.ConfigÖв»ÒªÖ¸¶¨È«¾Ö <globlization>È磺
<globalization requestEncoding="gb2312" responseEncoding="gb2312" culture="zh-CN" uiCulture="zh-CN"/>
Èç¹ûÕâÑù£¬ÄãÖ¸¶¨µÄÆäËû·¾¶<location>½«Ê§Ð§£¬Çмɣ¡£¡£¡£¡


Ïà¹ØÎĵµ£º

ÔÚASP.NETÖÐÏÂÔØÎļþ

//TransmitFileʵÏÖÏÂÔØ
    protected void Button1_Click(object sender, EventArgs e)
    {
        /*
        ΢ÈíΪResponse¶ÔÏóÌṩÁËÒ»¸öеķ½·¨TransmitFileÀ´½â¾öʹÓÃResponse.BinaryWrite
&nbs ......

ASP.NETÈ¥µôHTML±ê¼Ç

using System;
using System.Web;
using System.Text.RegularExpressions;
public static string NoHTML(string Htmlstring)  
  {  
   //ɾ³ý½Å±¾  
   Htmlstring   =   Regex.Replace(Htmlstring,@"<script[^>]*?>.*?&l ......

asp.netÌá½»html±ê¼ÇºóµÄ×îÓÅ°²È«´¦Àí

ASP.Net 1.1ºóÒýÈëÁ˶ÔÌá½»±íµ¥×Ô¶¯¼ì²éÊÇ·ñ´æÔÚXSS(¿çÕ¾½Å±¾¹¥»÷)µÄÄÜÁ¦¡£µ±Óû§ÊÔͼÓÃÖ®ÀàµÄÊäÈëÓ°ÏìÒ³Ãæ·µ»Ø½á¹ûµÄʱºò£¬ASP.NetµÄÒýÇæ»áÒý·¢Ò»¸ö HttpRequestValidationExceptioin¡£Ä¬ÈÏÇé¿öÏ»᷵»ØÈçÏÂÎÄ×ÖµÄÒ³Ã棺
ÒÔÏÂÊÇÒýÓÃƬ¶Î£º
Server Error in '/YourApplicationPath' Application
A potentially dangerou ......

asp.net ÖеÄʱ¼äÑéÖ¤£¨ÊÕ¼¯£©

Ò»¡¢ÑéÖ¤Àà   
  1¡¢Êý×ÖÑéÖ¤ÄÚ   
  1.1   ÕûÊý   
  /^(-|\+)?\d+$/.test(str)   
  1.2   ´óÓÚ0µÄÕûÊý   £¨ÓÃÓÚ´«À´µÄIDµÄÑéÖ¤)   
  /^\d+$/.test(str)  &nb ......

Asp.netʹÓÃSqliteÊý¾Ý¿â

 1. ´Óhttp://sqlite.phxsoftware.com ÏÂÔØSystem.Data.SQLite.dll
 2. ´Óhttp://www.sqlite.org/download.html ÏÂÔØ sqlite3.dll
 3. Copy ÒÔÉÏ2¸öDllµ½Asp.netÍøÕ¾µÄbinĿ¼Ï£¬ÀàËÆ  E:\2009work\MyWeb\Bin
 4. ÓÃsqlitespy ¹¤¾ßн¨Êý¾Ý¿â£¬E:\2009work\MyWeb\App_Data\db.db3 £ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ