如题,有没有除了一页设置,另一页检查以外的方法?
解决方案 »
- C# .net的问题,偶尔出现以下问题,高手指点
- XML Parsing Error: not well-formed Location怎么解决呀,,急!!!
- Access数据库改为xx.config?
- gridview手工数据源 列显示 方面的问题
- 超链接间题,有颜色
- 请问在asp.net中有方法访问.exe程序吗?
- 请各位帮心解决一个ASP.NET文件上传的问题
- 请教一个发布时的简单问题,生手勿笑~ 参与有分!!!
- 谁用过devexpress,找不到dll,只有gac文件。
- treeview控件安装了,但是VC#的工具箱中看不到,为什么
- asp.net和asp用UrlEncode后得到的值不一样,怎么解决?
- 师兄,大哥,美女,帅哥们,救命啊,怎么整哦!!!分也没得了!我要跳楼了!
var cookieEnabled=(navigator.cookieEnabled)? true : false//if not IE4+ nor NS6+
if (typeof navigator.cookieEnabled=="undefined" && !cookieEnabled){
document.cookie="testcookie"
cookieEnabled=(document.cookie.indexOf("testcookie")!=-1)? true : false
}//if (cookieEnabled) //if cookies are enabled on client's browser
//do whatever</script>
Public ReadOnly Property Cookies As Boolean[C#]
public bool Cookies {get;}[C++]
public: __property bool get_Cookies();[JScript]
public function get Cookies() : Boolean;属性值
如果浏览器客户端支持 Cookie,则为 true;否则为 false。默认为 false。示例
[Visual Basic, C#, JScript] 以下示例中的代码仅在客户端浏览器支持 Cookie 时执行。[Visual Basic]
If Request.Browser.Cookies = True Then
'...
End If[C#]
if (Request.Browser.Cookies == true)
{
//...
}[JScript]
if(Request.Browser.Cookies){
//...
}要求
平台: Windows 2000, Windows XP Professional, Windows Server 2003 系列
支持Cookie
End If
服务器端用这个方便
Request.Browser.Cookies