随笔分类 -  ASP.NET

ASP.NET的一些资料
摘要:代码 阅读全文
posted @ 2010-03-19 11:34 哥本哈根 阅读(250) 评论(0) 推荐(0)
摘要:[代码] 阅读全文
posted @ 2010-03-13 15:30 哥本哈根 阅读(241) 评论(0) 推荐(0)
摘要:今天用上传控件上传文件时,出现这样的问题,程序没事,但上传的时候,有些文件可以上传,但有些文件不行,我试了一个.exe的文件,点击提交后就会出来“该页面信息无法显示”打断点调试了一下,结果发现根本就没有执行任何代码就直接跳到“该页面信息无法显示”的页面去啦。在群里问了一会,有一个朋友说可能是由于文件大小的问题,于是我就试了一下文件小的,果然可以上传,... 阅读全文
posted @ 2010-03-12 10:08 哥本哈根 阅读(246) 评论(0) 推荐(0)
摘要:代码 阅读全文
posted @ 2010-03-09 09:52 哥本哈根 阅读(215) 评论(0) 推荐(0)
摘要:代码 阅读全文
posted @ 2010-03-09 09:42 哥本哈根 阅读(249) 评论(1) 推荐(0)
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--/// <summary> /// 上传照片,调用MakeThumbnail方法对照片的大小进行修改 /// </summary> public void uploadPict... 阅读全文
posted @ 2010-01-21 10:37 哥本哈根 阅读(246) 评论(0) 推荐(0)
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1.在form中添加一个NotifyIcon控件 2.把87.ico这个图标放在\bin\Debug目录下 using System; using System.Collections.Generic... 阅读全文
posted @ 2010-01-20 14:43 哥本哈根 阅读(384) 评论(1) 推荐(1)
摘要:<SCRIPT LANGUAGE="javascript">   <!--   window.open ('page.html')   -->   </SCRIPT>      因为着是一段javascripts代码,所以它们应该放在<SCRIPT LANGUAGE="javascript">标签和</script>之间。<!-- ... 阅读全文
posted @ 2010-01-11 14:14 哥本哈根 阅读(401) 评论(0) 推荐(0)
摘要:这两天一直碰到一个郁闷的问题,在对表单进行提交的时候,用户名是中文的,怎么测试都不通过,今天上午突然想起来是不是因为中文字符编码的问题!经过测试,果然是因为这个问题!现在把解决方法贴出来!呵呵!在项目的web.config文件中添加下面的代码代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.Co... 阅读全文
posted @ 2010-01-06 11:03 哥本哈根 阅读(276) 评论(0) 推荐(0)
摘要:若要在 Global.asax 文件中启用错误事件处理程序,Web.config 文件不能为 defaultRedirect 指定文件。配置文件优先。因此,可以将 customErrors 设置为 Off 或移除 defaultRedirect 设置。如果 Web.config 配置文件将 customErrors 设置为 Off,则 Global.asax 中的 Application_Erro... 阅读全文
posted @ 2010-01-04 11:07 哥本哈根 阅读(368) 评论(0) 推荐(0)
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--//要引入下面两个命名空间usingSystem.Net;usingSystem.Net.Mail;///error是传进来的错误信息publicstringaaa(stringerror){//发件... 阅读全文
posted @ 2010-01-03 12:44 哥本哈根 阅读(354) 评论(2) 推荐(0)
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--MicrosoftJScript运行时错误:对象不支持此属性或方法<scriptlanguage="javascript"><!--function__doPostBack(even... 阅读全文
posted @ 2009-12-31 10:06 哥本哈根 阅读(384) 评论(0) 推荐(0)
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.... 阅读全文
posted @ 2009-12-21 16:51 哥本哈根 阅读(301) 评论(0) 推荐(0)
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--usingSystem.Data;usingSystem.Configuration;usingSystem.Web;usingSystem.Web.Security;usingSystem.Web.... 阅读全文
posted @ 2009-12-18 10:38 哥本哈根 阅读(611) 评论(2) 推荐(1)
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--stringdbname=Server.MapPath("data/db.mdb");stringsql="select*fromzuuser";OdbcConnectionconn=newOdbcC... 阅读全文
posted @ 2009-12-14 15:47 哥本哈根 阅读(269) 评论(0) 推荐(0)
摘要:[代码] 阅读全文
posted @ 2009-11-24 10:40 哥本哈根 阅读(591) 评论(2) 推荐(0)
摘要:解决的办法1[代码]解决方法2[代码] 阅读全文
posted @ 2009-11-17 09:58 哥本哈根 阅读(518) 评论(0) 推荐(0)
摘要:1. 怎样调整代码排版的格式?选择:编辑—>高级—>设置文档的格式 或 编辑—>高级—>设置选中代码的格式。格式化cs代码:Ctrl+k+f 格式化aspx代码:Ctrl+k+d2. 怎样跳转到指定的某一行?两种方法:Ⅰ. Ctrl+GⅡ. 单击状态栏中的行号3. 怎样创建矩形选区?两种方法:͖... 阅读全文
posted @ 2009-11-16 14:36 哥本哈根 阅读(410) 评论(1) 推荐(0)
摘要:((\d{11})|^((\d{7,8})|(\d{4}|\d{3})-(\d{7,8})|(\d{4}|\d{3})-(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})|(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1}))$)匹配格式:11位手机号码3-4位区号,7-8位直播号码,1-4位分机号如:12345678901、1234-12345678-123... 阅读全文
posted @ 2009-10-23 11:10 哥本哈根 阅读(351) 评论(0) 推荐(0)
摘要:[代码][代码] 阅读全文
posted @ 2009-10-20 12:30 哥本哈根 阅读(529) 评论(0) 推荐(0)