asp.net 1.1 的应用程序兼容firefox
	
    
    
	asp.net 1.1 的应用程序,默认是不支持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>
    
     
	
	
    
    
	相关文档:
        
    
    using System;
using System.Web;
namespace pub.mo
{
    public class js
    {
        private js() { }
        private static string scr_j1 = "<mce:script type=\"text/javascript\"><!--
";
        private static string scr_j2 = "
// --></mce:script>";
        /// <summa ......
	
    
        
    
    asp.net有时候常常用服务器绑定控件有些麻烦...
代码有些杂....
using System;
using System.Web.UI.WebControls;
using System.Data;
using System.Web.UI.HtmlControls;
using System.Collections.Generic;
using System.Web;
using System.Text;
namespace pub.mo
{
    public class bind
    {
        p ......
	
    
        
    
    asp.net的错误--Failed to access IIS metabase 收藏 
  
Server Error in '/sdxx' Application. 
--------------------------------------------------------------------------------
Failed to access IIS metabase. 
Description: An unhandled exception occurred during the execution of the current web  ......
	
    
        
    
    浅谈ASP.NET中的三种会话状态
     常用的ASP.NET的会话状态中有三种.分为进程内会话状态、状态服务器会话状态、SQL Server 会话状态
    
     先谈谈进程内会话状态(Inprocess)这是一种默认的模式,但是只要在Web.config中进行简单的配置就可进行更改,具体 ......