×Ö·û´®½ØÈ¡£¨°üÀ¨html£¬BasicPage.csÀàʹÓã©
/// <summary>
/// ½Ø¶Ï×Ö·û´®(ÖÐÎļÆÒ»¸ö×Ö·û¿í¶È£¬ÆäËü¼Æ°ë¸ö×Ö·û¿í¶È)
/// </summary>
/// <param name="input">Ðè½Ø¶ÏµÄ×Ö·û´®</param>
/// <param name="length">×Ö·û¿í¶È</param>
/// <returns>½Ø¶Ï×Ö·û´®(´ø"...")</returns>
protected string truncatedChars(string input, int length)
{
input = Server.HtmlEncode(input);
if (input.Length > length)
{
int pos = 0;
string result = "";
foreach (char chr in input)
{
if (Regex.IsMatch(chr.ToString(), "[^\x00-\xff]"))
{
pos += 2;
}
else
{
pos += 1;
}
result += chr.To
Ïà¹ØÎĵµ£º
³£ÓÃÕýÔò±í´ïʽ´óÈ«£¡£¨ÀýÈ磺ƥÅäÖÐÎÄ¡¢Æ¥Åähtml£©
Æ¥ÅäÖÐÎÄ×Ö·ûµÄÕýÔò±í´ïʽ£º [u4e00-u9fa5]
¡¡¡¡ÆÀ×¢£ºÆ¥ÅäÖÐÎÄ»¹ÕæÊǸöÍ·ÌÛµÄÊ£¬ÓÐÁËÕâ¸ö±í´ïʽ¾ÍºÃ°ìÁË
¡¡¡¡Æ¥ÅäË«×Ö½Ú×Ö·û(°üÀ¨ºº×ÖÔÚÄÚ)£º[^x00-xff]
¡¡¡¡ÆÀ×¢£º¿ÉÒÔÓÃÀ´¼ÆËã×Ö·û´®µÄ³¤¶È£¨Ò»¸öË«×Ö½Ú×Ö·û³¤¶È¼Æ2£¬ASCII×Ö·û¼Æ1£©
¡¡¡¡Æ ......
IEÌṩÁËÒ»¸ö×Ô¶¯Íê³É¹¦ÄÜ¿ÉÒÔ¼ÇÒäÎÒÃǵÄÊäÈëÄÚÈÝ(ÈçµÇ¼ÕʺŵÈ),·½±ãÏÂÒ»´Î¿ìËÙµØÂ¼ÈëÀàËÆ×ÊÁÏ.ÕâȷʵÊÇÒ»¸ö·Ç³£ÓѺõŦÄÜ,
×Ô¶¯Íê³É¹¦ÄÜ£¬Ö»Ðè°ÑAUTOCOMPLETEÉèΪoff¼´¿É£¬Èç:
Õû¸ö±íµ¥½ûÖ¹×Ô¶¯Íê³É
HTML code
<FORM method=post action="submit.asp" AUTOCOMPLETE="OFF">
½ûÖ¹Îı¾¿ò×Ô¶¯Íê³É
HTML code ......
ÔÚFckEditor.Net 2.64ºÍasp.net 2.0µÄ»·¾³Ï·¢ÏÖÈçÏÂÎÊÌ⣺Èç¹ûä¯ÀÀÆ÷Ö´Ðзµ»Ø¶¯×÷£¬FckEditor±à¼¿òÄÚÏÔʾhtml´úÂ룺
¡¡¡¡½â¾ö·½·¨ÊÇ£ºÐÞ¸ÄÎļþFCKEditor\editor\fckeditor.html£¬ÔÚwindow.onload = function()µÄº¯ÊýµÚÒ»ÐÐÌí¼Ó
¡¡¡¡FCK.LinkedField.value=FCKTools.HTMLDecode(FCK.LinkedField.value);
¡¡¡¡Èç¹ûÎÊÌâ²» ......
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Îı¾±à¼Æ÷</title>
<meta http-equiv="C ......