随笔分类 -  asp.net

写一下自己在学习asp.net的时候的一些心得或者别的朋友好的文章转贴的
FileUpload 控件 禁止手动输入
摘要:html标签:<input type="text" name="txt" onkeydown="event.returnValue=false;" onpaste="return false"/>服务器控件:<asp:TextBox ID="txt" runat="server"onkeydown="event.returnValue=false;" onpaste="retur... 阅读全文
posted @ 2009-03-11 16:26 Edwin dong 阅读(1234) 评论(0) 推荐(0)
.net 工具箱不可用 解决方式
摘要:.net 环境本来昨天用着好好的,今天打开电脑以后,工具箱里面的东西除了html控件之外,其他的都不可用了。不知道为什么,在网上找了一些方法也没有找到具体的解决方式。后来想到重置一下环境,于是重置了一下,搞定了。现在把重置环境的方式告诉一下大家 ,如果又遇到相同问题的,说不定可以用上在vs2005的路径下输入 devenv.exe /resetuserdata 重新设置下环境例如:Microsof... 阅读全文
posted @ 2009-02-12 09:47 Edwin dong 阅读(1086) 评论(2) 推荐(0)
DataList控件嵌套,激发内部控件事件
摘要:DataList嵌套 激发事件 阅读全文
posted @ 2008-04-22 13:51 Edwin dong 阅读(1169) 评论(3) 推荐(0)
开发环境不同引发的映射路径不正确的问题
摘要:映射路径 不正确 iis管理器 asp.net版本 阅读全文
posted @ 2007-11-02 10:11 Edwin dong 阅读(734) 评论(1) 推荐(0)
安装.net2005遇到的一系列问题
摘要:windows server 2003 sp1 产品密钥 安装.net2005 阅读全文
posted @ 2007-10-31 13:24 Edwin dong 阅读(822) 评论(1) 推荐(0)
jit 调试失败,出现以下错误:拒绝访问。jit调试由用户帐户"NT AUTHORITY\NETWORK SERVICE" 启动
摘要:jit 调试失败,出现以下错误:拒绝访问。 jit调试由用户帐户"NT AUTHORITY\NETWORK SERVICE" 启动 阅读全文
posted @ 2007-09-22 14:01 Edwin dong 阅读(4680) 评论(1) 推荐(0)
.Net环境下的缓存技术介绍 (转)
摘要:缓存 阅读全文
posted @ 2007-06-29 16:47 Edwin dong 阅读(21607) 评论(7) 推荐(3)
使用FileUpload控件上传文件时对文件大小的限制
摘要:HttpRuntime httpRuntime maxRequestLength 阅读全文
posted @ 2007-06-18 18:00 Edwin dong 阅读(5006) 评论(1) 推荐(0)
"无法在证书存储区中找到清单签名证书"的解决办法
摘要:无法在证书存储区中找到清单签名证书 阅读全文
posted @ 2007-06-06 16:23 Edwin dong 阅读(6475) 评论(6) 推荐(1)
使用消息框
摘要:使用警告、提示和确认 confirm alert prompt 阅读全文
posted @ 2007-05-31 14:35 Edwin dong 阅读(532) 评论(0) 推荐(0)
使用FileUpload实现多个文件同时上传
摘要:FileUpload 多个文件同时上传 HttpPostedFile 阅读全文
posted @ 2007-05-15 16:49 Edwin dong 阅读(3770) 评论(6) 推荐(1)


<% Function googleColor(value, random) Dim colorArray colorArray = Split(value, ",") googleColor = colorArray(random Mod (UBound(colorArray) + 1)) End Function Function googleScreenRes() Dim screenRes, delimiter, resArray screenRes = Request.ServerVariables("HTTP_UA_PIXELS") delimiter = "x" If IsEmpty(screenRes) Then screenRes = Request.ServerVariables("HTTP_X_UP_DEVCAP_SCREENPIXELS") delimiter = "," End If resArray = Split(screenRes, delimiter, 2) If (UBound(resArray) + 1) = 2 Then googleScreenRes = "&u_w=" & resArray(0) & "&u_h=" & resArray(1) End If End Function Function googleDcmguid() Dim dcmguid dcmguid = Request.ServerVariables("HTTP_X_DCMGUID") If Not IsEmpty(dcmguid) Then googleDcmguid = "&dcmguid=" & dcmguid End If End Function Dim googleTime, googleDt, googleScheme, googleHost googleTime = DateDiff("s", "01/01/1970 00:00:00", Now()) googleDt = (1000 * googleTime) + Round(1000 * (Timer - Int(Timer))) googleScheme = "http://" If StrComp(Request.ServerVariables("HTTPS"), "on") = 0 Then googleScheme = "https://" googleHost = Server.URLEncode(googleScheme & Request.ServerVariables("HTTP_HOST")) Dim googleAdUrl, googleAdOutput googleAdUrl = "http://pagead2.googlesyndication.com/pagead/ads?" &_ "ad_type=text_image" &_ "&channel=" &_ "&client=ca-mb-pub-6539345765131754" &_ "&dt=" & googleDt &_ "&format=mobile_single" &_ "&host=" & googleHost &_ "&ip=" & Server.URLEncode(Request.ServerVariables("REMOTE_ADDR")) &_ "&markup=xhtml" &_ "&oe=utf8" &_ "&output=xhtml" &_ "&ref=" & Server.URLEncode(Request.ServerVariables("HTTP_REFERER")) &_ "&url=" & googleHost & Server.URLEncode(Request.ServerVariables("URL")) &_ "&useragent=" & Server.URLEncode(Request.ServerVariables("HTTP_USER_AGENT")) &_ googleScreenRes() &_ googleDcmguid() Set googleAdOutput = Server.CreateObject("MSXML2.ServerXMLHTTP") googleAdOutput.Open "GET", googleAdUrl, false googleAdOutput.Send Response.Write(googleAdOutput.responseText) %>