随笔分类 -  web

asp.net中转换web user control为custom web control
摘要:ref: http://blogs.msdn.com/b/davidebb/archive/2005/10/31/turning-an-ascx-user-control-into-a-redistributable-custom-control.aspx 1. 创建ascx控件:建立WEB站点,创建ascx用户控件,并完成相关功能,最好建立一个test page测试此ascx控件; 2. 编译ASCX为DLL:发布此站点:发布选项取消:Allow this precompiled site to be updatable,勾上:'Use fixed naming and single 阅读全文

posted @ 2011-04-07 18:52 margiex 阅读(202) 评论(1) 推荐(0)

html marque属性说明
摘要:•WIDTH: how wide the marquee is•HEIGHT: how tall the marquee is•DIRECTION: which direction the marquee should scroll, up, down, left, right•BEHAVIOR: what type of scrolling: sc... 阅读全文

posted @ 2010-04-12 15:25 margiex 阅读(563) 评论(0) 推荐(0)

查看Ajax生成的html source code
摘要:If you are trying to view the generated source in Firefox, the simplest way is to firstdownload and install the Web Developer extension. Then go to the View Source menu item and select "View Generated... 阅读全文

posted @ 2009-10-08 22:26 margiex 阅读(307) 评论(0) 推荐(0)

在同一asp.net website工程中引用app_code中定义的control
摘要:在页面中的引用如下:<%@ Register TagPrefix="abc" Namespace="Test" Assembly="__code" %>或<%@ Register TagPrefix="abc" Namespace="Test" Assembly="App_Code" %>必须要有Namespace的定义,否则在上面的引用定义时要报错。如果在其它工程中要引用... 阅读全文

posted @ 2009-07-20 16:32 margiex 阅读(471) 评论(0) 推荐(0)

ajax loading 总结
摘要:1. 使用timer+ multiview, 先显示view1, 待timer中的执行完成之后,再显示view2即可. view1即loading提示内容,view2为真正要显示的内容. 可以针对整个页面使用.如果VIEW2中的内容显示失败,则显示VIEW3(错误提示), 通过模拟btn_Click,这样在page_load时候就可以调用ajax-loading. 从而可以实现整个页面上的所有... 阅读全文

posted @ 2008-05-28 11:33 margiex 阅读(1742) 评论(0) 推荐(0)

asp中接收到querystring是utf-8编码的处理方式
摘要:") Function URLDecode(sConvert) Dim aSplit Dim sOutput Dim I If IsNull(sConvert) Then URLDecode = "" Exit Function End If ' convert all pluses to spaces sO... 阅读全文

posted @ 2008-05-27 15:44 margiex 阅读(715) 评论(0) 推荐(0)

google scan 源代码下载
摘要:source code 主窗口中利用dataset保留的几张表定义: DataSet: History Table: setting: name, value history: ID, name, CountAnswer list: ID, IDkeyword, name file: ID, IDsite, Name 阅读全文

posted @ 2008-02-25 09:58 margiex 阅读(468) 评论(0) 推荐(0)

treegrid能运行版本
摘要:本地下载:/Files/margiex/TreeGrid2.rar 我只是改来能运行,版本还是归下面连接的朋友所有. 所有下级结占必须与根结点的字段相同,感觉用处不是太大.或许可以扩展一下. 源地址: http://e65.sogot.com/Pages/treegrid.aspx 阅读全文

posted @ 2008-02-01 16:44 margiex 阅读(606) 评论(0) 推荐(0)

asp.net notes
摘要:cache's expire problem string sendTimeKey = "abc_sendtime"; //DateTime dtLast = (DateTime)cache[sendTimeKey]; if (Cache[sendTimeKey] == null) { ... 阅读全文

posted @ 2008-01-19 21:43 margiex 阅读(302) 评论(0) 推荐(0)

treeview check cascading
摘要:网上找的,记在这里,以免忘记. //获取元素指定tagName的父元素 function public_GetParentByTagName(element, tagName) { var parent = element.parentNode; var upperTagName = tagName.toUpperCase(); //如果这个元素还不是想要的tag就继续... 阅读全文

posted @ 2008-01-09 23:35 margiex 阅读(506) 评论(0) 推荐(0)

在asp.net下上传大文件的方法及控件(引用)
摘要:web.config中的设置及IIS设置 http://weblogs.asp.net/jgalloway/archive/2008/01/08/large-file-uploads-in-asp-net.aspx 一个上传文件控件 http://www.brettle.com/neatupload 极其强悍的带progressbar的上传控件, http://demo.swfupload.org... 阅读全文

posted @ 2008-01-08 23:14 margiex 阅读(563) 评论(0) 推荐(0)

转载:一个JS做的tree,简单实用
摘要:js_tree 阅读全文

posted @ 2007-12-11 22:37 margiex 阅读(549) 评论(0) 推荐(0)

vista 中php4, php5 共存
摘要:由于有些开源PHP产品需要PHP4,因为不得不安装这个版本,如OSC2.1;而有些开源产品则使用PHP5,如wikipedia,因此为了同时开发 PHP4或PHP5的软件,则需要同时安装这两个版本的东西。 安装PHP4使用IIS的具体操作请参见:vista iis7上安装php4.4.7 http://www.cnblogs.com/margiex/archive/2007/09/11/88932... 阅读全文

posted @ 2007-12-08 16:52 margiex 阅读(371) 评论(0) 推荐(0)

wikipedia的mysql utf-8中文在.net中的处理
摘要:使用Mysql.Net connector,而不是odbc或oledb进行数据库连接。即使用MySqlConnection, MySqlCommand等类。 然后每次连接数据库之后,先执行SQL: set names 'utf8' 针对 varbinary类型的字段: 输入, MySqlParameter param = new MySqlParameter("titl... 阅读全文

posted @ 2007-12-08 16:42 margiex 阅读(694) 评论(0) 推荐(0)

btnet中添加email通知
摘要:btnet是一个.net开源的BUG跟踪系统,此处可下载 http://sourceforge.net/projects/btnet/ 当有BUG产生或修复某个bug之后, 为了方便通知项目组内其它成员,最好能有邮件通知. 首先,登录此系统的各用户在个人资料中需要输入一个自己的信箱. 并订阅相关的bug项目, 当然可以设置订阅新增还是update bug时的信息, 也可设置订阅自己提交的bug ... 阅读全文

posted @ 2007-09-25 21:44 margiex 阅读(359) 评论(0) 推荐(0)

vista iis7上安装php4.4.7
摘要:本来一直安装的php5,但有个应用有些页面总是报 T_elseIF错误, 检查代码是没有问题的, 最终怀疑是php版本的问题,因为在其它安装php4.4.7的机器上运行正常. 另外,装了php5在vista上经常提示一个iis worker process错误,(参见http://www.cnblogs.com/margiex/archive/2007/08/21/863708.html), 所以... 阅读全文

posted @ 2007-09-11 09:52 margiex 阅读(991) 评论(1) 推荐(0)

asp.net notes
摘要:Password TextBox and PostBack // Refill Password field this.txtPassword.Attributes.Add("value", this.txtPassword.Text); ajax cascadingdown, 只能在放有cascadingdown控件的页面上设置static web method... 阅读全文

posted @ 2007-09-04 22:46 margiex 阅读(383) 评论(0) 推荐(0)

在网页中象GMAIL一样检测客户端是否连接到网络
摘要:ref http://www.codeproject.com/useritems/InternetConnectionTest.asp 阅读全文

posted @ 2007-08-23 20:39 margiex 阅读(183) 评论(0) 推荐(0)

asp.net工程中aspx文件与codebehind文件的关联问题
摘要:经常碰上转换WEB工程之后的aspx与aspx.cs是并列显示,而不是点击aspx前面的加号再显示aspx.cs,虽然不影响功能,但心里总不舒服.经过查找, 直接修改工程文件.csproj, 找到aspx.cs等文件的定义,如下: ASPXCodeBehind 在compile节点中添加一个子节点: test.aspx即可,最后如下: ASPXCodeBe... 阅读全文

posted @ 2007-08-23 16:06 margiex 阅读(646) 评论(0) 推荐(0)

iis7上安装php5+mysql
摘要:从php.org下载php installer.msi文件,根据提示安装,安装时选中mysql模块. 安装完成之后,在IE中执行PHP无效,需要在IIS7中手工添加.php后缀的映射. 打开IIS管理器, 在WEB服务器的属性中有"handler mapping",打开之后,再添加一个新的映射, 后缀为".php",然后去选择PHP安装目录下的php5isapi.dll即可. 然后iisreset... 阅读全文

posted @ 2007-08-21 11:07 margiex 阅读(547) 评论(0) 推荐(0)