
ASP.NET
文章平均质量分 67
piperzero
这个作者很懒,什么都没留下…
展开
-
aspx页面中文汉字显示为乱码
<!--google_ad_client = "pub-4490194096475053";/* 内容页,300x250,第一屏 */google_ad_slot = "3685991503";google_ad_width = 300;google_ad_height = 250;// -->检查了web.config的配置是正确的: !-- 全球化 此节转载 2008-12-29 16:23:00 · 1724 阅读 · 0 评论 -
今,昨,周,月 页面访问统计
<!--google_ad_client = "pub-4490194096475053";/* 内容页,300x250,第一屏 */google_ad_slot = "3685991503";google_ad_width = 300;google_ad_height = 250;//--><script type="text/javascript"src="转载 2008-12-07 02:18:00 · 1340 阅读 · 0 评论 -
ASP.NET获取客户端IP及MAC地址
<!--google_ad_client = "pub-4490194096475053";/* 内容页,300x250,第一屏 */google_ad_slot = "3685991503";google_ad_width = 300;google_ad_height = 250;//--><script type="text/javascript"src="转载 2008-12-07 02:16:00 · 1342 阅读 · 0 评论 -
循环访问RadioButtonGroup中的各个子项的值
<!--google_ad_client = "pub-4490194096475053";/* 内容页,300x250,第一屏 */google_ad_slot = "3685991503";google_ad_width = 300;google_ad_height = 250;//--><script type="text/javascript"src="转载 2008-12-07 02:17:00 · 1318 阅读 · 0 评论 -
ASP.NET中防止Access数据库下载
<!--google_ad_client = "pub-4490194096475053";/* 内容页,300x250,第一屏 */google_ad_slot = "3685991503";google_ad_width = 300;google_ad_height = 250;//--><script type="text/javascript"src="转载 2008-12-07 02:16:00 · 1335 阅读 · 0 评论 -
伪静态
<!--google_ad_client = "pub-4490194096475053";/* 内容页,300x250,第一屏 */google_ad_slot = "3685991503";google_ad_width = 300;google_ad_height = 250;//--><script type="text/javascript"src="转载 2008-12-10 13:47:00 · 1260 阅读 · 0 评论 -
VS2003 转 VS2005 常见的问题解决
我使用ASP.NET已经3年了,刚开始是使用手动编写,后来使用 VS2003,又从 .NET Framework 1.0 升级至 1.1 ,一直都没有问题。 这段时间,由于要开发手机应用,准备从 VS2003 向 VS2005 过渡。在没有看过两者有什么区别前,我就尝试将原来的 VS2003的项目转换成VS2005的项目。转换结束后,出现了一大堆的错误,而且很多文件都导不进vs2005的项转载 2008-12-08 20:47:00 · 1886 阅读 · 0 评论 -
.NET开发 正则表达式中的 Bug
<!--google_ad_client = "pub-4490194096475053";/* 内容页,300x250,第一屏 */google_ad_slot = "3685991503";google_ad_width = 300;google_ad_height = 250;//--><script type="text/javascript"src="转载 2008-12-11 16:10:00 · 1190 阅读 · 0 评论 -
aspx 操作mysql
服务器装了mysql odbc驱动,想在那个iis上操作另一个服务器的mysql,可没现成的aspx操作mysql的程序,找了一下午,在msdn上找到个.net的sqldatasource类可以操作. "http://www.w3.org/TR/xhtmlll/DTD/xhtmlll.dtd"> asp.net to mysql asp.net connect mysql Dat转载 2008-12-12 09:35:00 · 1318 阅读 · 0 评论 -
asp.net用户ASPNET登录失败的问题
<!--google_ad_client = "pub-4490194096475053";/* 内容页,300x250,第一屏 */google_ad_slot = "3685991503";google_ad_width = 300;google_ad_height = 250;// -->执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息转载 2008-12-18 10:10:00 · 1557 阅读 · 0 评论 -
根据IP获取当地天气预报的实现
<!--google_ad_client = "pub-4490194096475053";/* 内容页,300x250,第一屏 */google_ad_slot = "3685991503";google_ad_width = 300;google_ad_height = 250;// -->访问www.163.com,首页的栏目里有当地的天气预报。可以猜转载 2008-12-18 10:21:00 · 1712 阅读 · 0 评论 -
asp.net URL重写(URLRewriter) 之简化版
<!--google_ad_client = "pub-4490194096475053";/* 内容页,300x250,第一屏 */google_ad_slot = "3685991503";google_ad_width = 300;google_ad_height = 250;// -->在 asp.net 里实现 URL重写(URLRewriter)转载 2008-12-19 09:45:00 · 1294 阅读 · 0 评论 -
asp.net 上传大文件控件
<!--google_ad_client = "pub-4490194096475053";/* 内容页,300x250,第一屏 */google_ad_slot = "3685991503";google_ad_width = 300;google_ad_height = 250;// -->这段时间写了个asp.net 上传大文件控件。经过测试,在ie中转载 2008-12-19 09:44:00 · 1347 阅读 · 0 评论 -
合并 GridView 的单元格
<!--google_ad_client = "pub-4490194096475053";/* 内容页,300x250,第一屏 */google_ad_slot = "3685991503";google_ad_width = 300;google_ad_height = 250;// -->#region 合并单元格 合并某一行的所有列 ///转载 2008-12-19 09:46:00 · 1325 阅读 · 0 评论 -
Asp.Net结合JS在图层上显示记录信息
<!--google_ad_client = "pub-4490194096475053";/* 内容页,300x250,第一屏 */google_ad_slot = "3685991503";google_ad_width = 300;google_ad_height = 250;// -->function MM_reloadPage(init) { /转载 2009-07-15 08:24:00 · 1678 阅读 · 0 评论 -
用.NET的File控件上传文件的解决方案
传大文件,有好几种方法: 1、思归的HttpWorkerRequest方法,太难,看不懂:-( 2、利用第三方的控件 AspNetUpload 要钱!!算了,咱还是喜欢免费的。 3、修改web.config文件,但是不能捕获错误。 4、通过ftp的方式上传。服务器需要提供ftp服务。 没辙,只好选第三种方式,谁让咱太蠢了呢!(太蠢了,没有关系,要多吃鱼,听说吃鱼能聪明点。) 那就仔细专研第三种方式原创 2009-07-17 08:56:00 · 1598 阅读 · 0 评论 -
ASP.NET中前台javascript与后台代码调用
1如何在JavaScript访问C#函数? 2.如何在JavaScript访问C#变量? 3.如何在C#中访问JavaScript的已有变量? 4.如何在C#中访问JavaScript函数? 问题1答案如下: javaScript函数中执行C#代码中的函数: 方法一:1、首先建立一个按钮,在后台将调用或处理的内容写入button_click中; 2、在前台写一个js函数,内容为document.g转载 2009-08-28 16:45:00 · 1867 阅读 · 0 评论 -
JSP与ASP.Net之间的Session值共享
介绍:ASP.NET中登录后,JSP可以用ASP.Net中的Session的值 这个话题刚开始,宝宝(itbaby.jss.cn)的思路是ASP.NET中序列化Session以二进制数据保存到数据库,然后由JSP读取数据库中的二进制数据反序列化成Session对 象,再强制转化成JAVA的Session对象,在JAVA端转换时,出现了错误,找遍网上的资料也没能解决,故采用一种替换的方式. 替换转载 2008-12-04 21:41:00 · 1313 阅读 · 0 评论 -
如何获取当前程序文件的路径 Current Path
<!--google_ad_client = "pub-4490194096475053";/* 内容页,300x250,第一屏 */google_ad_slot = "3685991503";google_ad_width = 300;google_ad_height = 250;//--><script type="text/javascript"src="转载 2008-12-04 21:41:00 · 1348 阅读 · 0 评论 -
在.NET框架应用程序中发送电子邮件
<!--google_ad_client = "pub-4490194096475053";/* 内容页,300x250,第一屏 */google_ad_slot = "3685991503";google_ad_width = 300;google_ad_height = 250;//--><script type="text/javascript"src="转载 2008-12-04 21:35:00 · 1802 阅读 · 0 评论 -
asp.net中利用ashx实现图片防盗链
<!--google_ad_client = "pub-4490194096475053";/* 内容页,300x250,第一屏 */google_ad_slot = "3685991503";google_ad_width = 300;google_ad_height = 250;//--><script type="text/javascript"src="转载 2008-11-23 12:09:00 · 1632 阅读 · 0 评论 -
分页实现方法的性能比较
<!--google_ad_client = "pub-4490194096475053";/* 内容页,300x250,第一屏 */google_ad_slot = "3685991503";google_ad_width = 300;google_ad_height = 250;//--><script type="text/javascript"src="转载 2008-11-24 10:09:00 · 1146 阅读 · 0 评论 -
asp.net 实现购物车详细代码【转】
<!--google_ad_client = "pub-4490194096475053";/* 内容页,300x250,第一屏 */google_ad_slot = "3685991503";google_ad_width = 300;google_ad_height = 250;//--><script type="text/javascript"src="转载 2008-11-26 09:35:00 · 2549 阅读 · 0 评论 -
在ASP.NET中上传图片并生成缩略图的C#源码
<!--google_ad_client = "pub-4490194096475053";/* 内容页,300x250,第一屏 */google_ad_slot = "3685991503";google_ad_width = 300;google_ad_height = 250;//-->window.google_render_ad();转载 2008-11-28 17:51:00 · 1230 阅读 · 0 评论 -
asp.net(c#)一次预览并上传多张图片
用asp.net开发网站时,经常要上传图片,现在IE7出现,原来的img.src=xxx.jpg这种预览方式已经失效。本文介绍新的上传前预览图片的处理方式。代码很简单,直接贴代码了。 aspx文件代码: 无标题页 function $(o){return document.getElementById(o);} function CheckImgCss(o,img) { i转载 2008-11-29 10:53:00 · 1618 阅读 · 0 评论 -
VS2005(c#)项目调试问题解决方案集锦
<!--google_ad_client = "pub-4490194096475053";/* 内容页,300x250,第一屏 */google_ad_slot = "3685991503";google_ad_width = 300;google_ad_height = 250;// -->1.检测到有潜在危险的 Request.Form 值 原因:转载 2009-02-09 09:09:00 · 1634 阅读 · 0 评论 -
asp.net如何生成图片验证码
新建一个页面image.aspx,添加命名空间: usingSystem.Drawing.Imaging; usingSystem.IO; 然后在Page_load事件拷入如下代码: //生成4位的验证码 stringtmp=RndNum(4); HttpCookiea=newHttpCookie("ImageV",tmp); Response.Cookies.Add(a); this.Val转载 2008-12-01 10:36:00 · 1184 阅读 · 0 评论 -
ASP.NET中上传下载文件
//检查上传文件不为空 if(File1.PostedFile!=null) { stringnam=File1.PostedFile.FileName; //取得文件名(抱括路径)里最后一个"."的索引 inti=nam.LastIndexOf("."); //取得文件扩展名 stringnewext=nam.Substring(i); //这里我自动根据日期和文件大小不同为文件命名,确保文件名转载 2008-12-01 10:37:00 · 1130 阅读 · 0 评论 -
ASP.NET在线用户列表精确版——解决用户意外退出在线列表无法及时更新问题
<!--google_ad_client = "pub-4490194096475053";/* 内容页,300x250,第一屏 */google_ad_slot = "3685991503";google_ad_width = 300;google_ad_height = 250;//--><script type="text/javascript"src="转载 2008-12-04 19:46:00 · 1203 阅读 · 0 评论 -
一个通过web.Mail发送邮件的类
usingSystem; usingSystem.Web; usingSystem.Web.Mail; usingDottext.Framework; usingDottext.Framework.Configuration; namespaceYourNamespace.Email { /// ///DefaultimplementationoftheIMailProvider /// publ原创 2008-12-04 21:28:00 · 1237 阅读 · 0 评论 -
asp.net开发wap程序必备:识别来访手机品牌型号
<!--google_ad_client = "pub-4490194096475053";/* 内容页,300x250,第一屏 */google_ad_slot = "3685991503";google_ad_width = 300;google_ad_height = 250;//--><script type="text/javascript"src="转载 2008-12-04 21:34:00 · 2006 阅读 · 0 评论 -
asp和asp.net共享session解决办法
<!--google_ad_client = "pub-4490194096475053";/* 内容页,300x250,第一屏 */google_ad_slot = "3685991503";google_ad_width = 300;google_ad_height = 250;//--><script type="text/javascript"src="转载 2008-12-03 14:04:00 · 1080 阅读 · 0 评论 -
DataGrid里面根据日期的不同显示new图标
<!--google_ad_client = "pub-4490194096475053";/* 内容页,300x250,第一屏 */google_ad_slot = "3685991503";google_ad_width = 300;google_ad_height = 250;//--><script type="text/javascript"src="转载 2008-12-04 21:24:00 · 1312 阅读 · 0 评论 -
ASP.NET中17种正则表达式
"^/d+$"//非负整数(正整数+0) "^[0-9]*[1-9][0-9]*$"//正整数 "^((-/d+)|(0+))$"//非正整数(负整数+0) "^-[0-9]*[1-9][0-9]*$"//负整数 "^-?/d+$"//整数 "^/d+(/./d+)?$"//非负浮点数(正浮点数+0) "^(([0-9]+/.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-转载 2008-12-04 21:31:00 · 1140 阅读 · 0 评论 -
用ashx动态生成文件
<!--google_ad_client = "pub-4490194096475053";/* 内容页,300x250,第一屏 */google_ad_slot = "3685991503";google_ad_width = 300;google_ad_height = 250;//--><script type="text/javascript"src="转载 2008-12-04 21:32:00 · 1171 阅读 · 0 评论 -
asp.net开发wap必备:更好的匹配手机设备
网站建设,升级,改版http://www.zerogo.cn前台生成静态HTML文件,无论是打开速度还是搜索引擎支持都更好。后台可以采用PHP或者ASP.可以按照您的要求设计tel:13732406798qq:38028280 msn:txf2004@msn.com 长期在线虽然微软说asp.net能够匹配各种手机设备,但是手机型号众多,微软收集的手机资料有限,所以导致asp.转载 2008-12-04 21:33:00 · 1488 阅读 · 0 评论 -
关于通过标签取得相关文章的算法
<!--google_ad_client = "pub-4490194096475053";/* 内容页,300x250,第一屏 */google_ad_slot = "3685991503";google_ad_width = 300;google_ad_height = 250;// -->有10000篇文章,每篇可能有0-10个标签,不同的标签共有10转载 2009-09-03 09:56:00 · 1859 阅读 · 0 评论