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>
相关文档:
其实所谓的伪静态页面,就是指的URL重写,在ASP.NET中实现非常简单
首先你要在你的项目里引用两个DLL:
ActionlessForm.dll
UR ......
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 ......
最近在和一个同学编写一个管理系统的时候,要用到GridView控件,结果在CSDN里面找到一个博客,这些讲得很详细,提供一个地址给大家参考吧
http://blog.csdn.net/21aspnet/archive/2007/03/25/1540301.aspx
还有一个就是百度空间里面的:http://hi.baidu.com/%BA%AB%C7%EC%D5%EA/blog/item/c0b717daa312fb3f33fa1c91.html ......
在Asp.net中,从A页面中弹出B页面,在B页面中选择数据后,关闭并将数据更新到A页面,是一种常用 的方式。只是我对Javascript不熟悉,所以捣鼓了一下午,终于有了一点成绩:
测试项目有两个页面:Default.aspx及Default2.aspx,在Default.aspx页面上有一个TextBox1及一个Button1,Button1用于触发Default2.aspx,TextBox1用 ......