asp.net 1.1 µÄÓ¦ÓóÌÐò¼æÈÝfirefox
asp.net 1.1 µÄÓ¦ÓóÌÐò£¬Ä¬ÈÏÊDz»Ö§³ÖfirefoxµÄ
iis»á¸ù¾ÝÇëÇóµÄuser-agent À´ÅжÏä¯ÀÀÆ÷ÀàÐÍ£¬Èç¹ûä¯ÀÀÆ÷´ï²»µ½ÒªÇ󣬷µ»ØµÄhtml»áäÖȾÓÐÎÊÌâ
±È·½Ëµ ¶àÐеÄtextboxÔÚfirefoxϲ»»áäÖȾ³öwidthºÍheight£¬ÊÇĬÈÏ´óС
ÔÒòÊÇasp.net 1.1ʱ£¬firefox»¹²»Ç¿´ó£¬Ã»Óб»microsoft×¢Òâµ½
Æäʵ¿ÉÒÔÔÚweb.configÀïÅäÖÃһϣ¬ÈÃfirefox±»¼ì²âÕý³£
·½·¨ÊÇ£¬ÐÞ¸Äweb.config£¬ÔÚ <system.web>ÏÂÔö¼Ó
<browserCaps>
<case match=”^Mozilla/5\.0 \([^)]*\)
(Gecko/[-\d]+)(?’VendorProductToken’
(?’type’[^/\d]*)([\d]*)/(?’version’(?’major’\d+)(?’minor’\.\d+)(?’letters’\w*)))?”>
browser=Gecko
<filter>
<case match=”(Gecko/[-\d]+)(?’VendorProductToken’
(?’type’[^/\d]*)([\d]*)/(?’version’(?’major’\d+)(?’minor’\.\d+)(?’letters’\w*)))”>
type=${type}
</case>
<case> <!– plain Mozilla if no VendorProductToken found –>
type=Mozilla
</case>
</filter>
frames=true
tables=true
cookies=true
javascript=true
javaapplets=true
ecmascriptversion=1.5
w3cdomversion=1.0
css1=true
css2=true
xml=true
tagwriter=System.Web.UI.HtmlTextWriter
<case match=”rv:(?’version’(?’major’\d+)(?’minor’\.\d+)(?’letters’\w*))”>
version=${version}
majorversion=0${major}
minorversion=0${minor}
<case match=”^b” with=”${letters}”>
beta=true
</case>
</case>
</case>
</browserCaps>
Ïà¹ØÎĵµ£º
ÔÚ±¾ÆªÎļþÖУ¬ÎÒÃǽ«ÌÖÂÛ±à³ÌÈËÔ±ÔÚʹÓÃASP.NET¿ª·¢Ó¦ÓóÌÐòʱÐèҪעÒâµÄ10¸ö¼¼ÇÉ£¬ÕâЩ¼¼ÇÉÉæ¼°´ÓȱʡµÄ¿Ø¼þ¡¢±íµ¥ÃûµÄ¸Ä±äµ½StringBuilderÀàµÄʹÓã¬ÓÐÖúÓÚ±à³ÌÈËÔ±Äܹ»¾¡¿ìµØÊÊÓ¦.NET»·¾³¡£ 1¡¢ÔÚʹÓÃVisual Studio .NETʱ£¬³ýÖ±½Ó»ò·ÇÒýÓõĶÔÏóÍ⣬²»ÒªÊ¹ÓÃȱʡµÄÃû×Ö¡£
.NET´øÀ´µÄºÃ´¦Ö®Ò»ÊÇËùÓеÄÔ´´úÂëºÍÅäÖÃÎ ......
ÒÔǰ·¢¹ýÒ»¸ö.NETÉÏ´«ÎļþµÄ·½·¨µÄ£¬²»¹ýÄǸö·½·¨ÖжÔÎļþÀàÐ͵ÄÅжÏÖ»ÊǶԺó׺ÃûÀ´½øÐÐÅжϵģ¬ÕâÑù¼ÙÈçÎÒ°ÑÒ»¸ötxtÎı¾ÎļþµÄºó׺Ãû¸ÄΪjpgÁËÒ²¿ÉÒÔÉÏ´«£¬ÕâÑùÎÞÒâÖоÍÔì³ÉÁ˰²È«ÎÊÌâ¡£
¸Õ¸Õ´ÓÍøÉÏÕÒÁ˸ö·½·¨£¬ÊÔÑéÁËһϣ¬ÊÇÄܹ»±æÈϳöÕýÈ·µÄÎļþÀàÐ͵ģ¬ÈçÏ£º
using System;
using System.Collections.Generic; ......
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default3.aspx.cs" Inherits="Admin_Default3" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script language="javascript" type ="text/javascript"> ......
ÔÚweb.configÖÐÐÞ¸ÄÐÞ¸ÄÊôÐÔ
1£º<configSections><configSections>ÖмÓÏÂÃæ´úÂë
<configSections>
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral ......
ÔÚAsp.netÖУ¬´ÓAÒ³ÃæÖе¯³öBÒ³Ãæ£¬ÔÚBÒ³ÃæÖÐÑ¡ÔñÊý¾Ýºó£¬¹Ø±Õ²¢½«Êý¾Ý¸üе½AÒ³Ãæ£¬ÊÇÒ»ÖÖ³£Óà µÄ·½Ê½¡£Ö»ÊÇÎÒ¶ÔJavascript²»ÊìϤ£¬ËùÒÔµ·¹ÄÁËÒ»ÏÂÎ磬ÖÕÓÚÓÐÁËÒ»µã³É¼¨£º
²âÊÔÏîÄ¿ÓÐÁ½¸öÒ³Ãæ£ºDefault.aspx¼°Default2.aspx£¬ÔÚDefault.aspxÒ³ÃæÉÏÓÐÒ»¸öTextBox1¼°Ò»¸öButton1£¬Button1ÓÃÓÚ´¥·¢Default2.aspx£¬TextBox1Óà ......