随笔分类 -  web

允许gridview使用多列同时排序,并显示排序列
摘要:参考此文: http://aspalliance.com/666引用的文章示例分为两个工程,一个是继承于GridView的自定义GV控件, 另一个则是测试工程. 要求绑定到GV的DataSource为ObjectDataSource或SqlDataSource. 最关键是这种数据源要求在设计时在页面上指定好,而不能动态的在代码中实现绑定. (也许可以,没时间研究). 因此采用另一种方法,直接将控件... 阅读全文

posted @ 2007-04-08 22:08 margiex 阅读(1435) 评论(0) 推荐(0)

gridview中将header的多列合并为一列
摘要:Protected Sub GridView1_RowCreated(ByVal sender As Object, _ ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) _ Handles GridView1.RowCreated If e.Row.RowType = D... 阅读全文

posted @ 2007-03-30 21:21 margiex 阅读(773) 评论(0) 推荐(0)

asp.net开发基本要求
摘要:熟练使用windows中的一些工具软件和设置windows的一些选项;html语法,熟练使用,查看各网页源码;数据库:安装sql server 2000, 掌握操作和大部分菜单的功能;了解数据库的基础概念和术语;熟练使用select/insert/update/delete四类 SQL语法;。通过查看sql 联机帮助可以学习这些内容,都是中文的。C#编程入门;基本掌握简单的程序结构和编写简单示例,... 阅读全文

posted @ 2007-03-28 20:25 margiex 阅读(351) 评论(0) 推荐(0)

web站点的32种风格
摘要:web站点的32种风格http://tutorialblog.org/30-great-website-designs-part1/ 阅读全文

posted @ 2007-03-28 00:13 margiex 阅读(277) 评论(0) 推荐(0)

vista iis7中asp.net不能写入eventlog的解决办法
摘要:在HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application 下建立一个新的key, 此key的名称与你写入到eventlog时的source名称相同即可.请参考: http://dirtydogstink.com/blog/2006/07/13/AnEasyFixRequestedRegistryAccess... 阅读全文

posted @ 2007-03-24 19:56 margiex 阅读(653) 评论(1) 推荐(0)

8种样式的WEB菜单
摘要:有DEMO查看,也可以下载DEMO网页,添加相应菜单到自己的网页中.参考如下网址:http://www.roscripts.com/8_web_menus_you_just_can't_miss-116.html个人感觉也不是非常牛的那种效果. 阅读全文

posted @ 2007-03-08 20:34 margiex 阅读(1088) 评论(0) 推荐(0)

urlencoding mapping table
摘要:URL-encoding from %00 to %8f ASCII Value URL-encode ASCII Value URL-encode ASCII Value URL-encode ... 阅读全文

posted @ 2006-11-11 11:31 margiex 阅读(389) 评论(0) 推荐(0)

php install with mysql on w2k3 and IIS mannually
摘要:unzip phpX-install.zip to C:\phpmodify php.ini, uncomment ext and set the folders, copy php.ini C:\windows\copy libmysql.dll, php_curl.dll php_mysql.dll to C:\windows\system32add php isapi to IIS.iisr... 阅读全文

posted @ 2006-10-20 19:11 margiex 阅读(246) 评论(0) 推荐(0)

atlas.asp.net上一个视频有关atlas使用的教学源代码
摘要:asp.net 站点上本身未提供,根据视频自己制作的一个. 视频下载站点: http://atlas.asp.net/Default.aspx?tabid=47 这里是此视频过程的英文说明:http://blogs.msdn.com/smcbreen/archive/2006/04/08/571384.aspx 大概过程是: 前12分钟 – 使用DB建立一个功能较全面的TODO LIST应用. ... 阅读全文

posted @ 2006-08-04 16:18 margiex 阅读(495) 评论(0) 推荐(0)

vs2005不能调试asp.net 2.0程序
摘要:VS IDE中按F5调试,提示:unable to attach. 绑定句柄无效.google搜索了一把,大部分的错误都是unable to start debug server或其它的,终于在这里找到了这个问题的解决:http://blogs.geekdojo.net/mitchell/archive/2005/12/06/9515.aspx要求启动终端服务,因为用的是w2k3 server系统... 阅读全文

posted @ 2006-08-02 09:40 margiex 阅读(1150) 评论(0) 推荐(0)

get assemblyinfo.cs version info in asp.net 2.0
摘要:in asp.net 2.0, u can't get version like winform with Application.ProductVersion.假设在页面中执行assembly.GetexecutingAssembly().GetName().Version.ToString()取出来的信息与assemblyInfo中的也不一致, 因为在asp.net 2.0中每个page有其自... 阅读全文

posted @ 2006-07-26 11:43 margiex 阅读(442) 评论(0) 推荐(0)

在winforms应用中使用Cache对象(转载)
摘要:http://www.codeproject.com/csharp/cacheinwinformapps.asp使用System.Web.Caching.Cache 对象, 定义应用程序的入口类定义: 添加一个属性,取得Cachepublic static Cache Cache { get { EnsureHttpRuntime()... 阅读全文

posted @ 2006-07-16 17:07 margiex 阅读(1254) 评论(1) 推荐(0)

html中使用imagemap
摘要:久未做HTML imagemap了,而且没有dreamweaver, 和frontpage, 只好网上查一下基本语法.现在在这里写BLOG真是没办法, 好不容易休两天假, 已经零点30分了, 一个项目组需要拨号远程支持,唉, 干这行真是没多少意思呀.幸好通过google找到一个网页. http://www.ihip.com/cside.html大概看了一下. 支持的shape有rect, 和 ci... 阅读全文

posted @ 2006-04-02 00:35 margiex 阅读(948) 评论(0) 推荐(0)

vs2k5 notes
摘要:gridview can't been export to excel if it's in one web user control. it will report error: Control '_ctl3_gvLog' of type 'GridView' must be placed inside a form tag with runat=server. 阅读全文

posted @ 2006-02-26 19:32 margiex 阅读(299) 评论(0) 推荐(0)

javascript tips
摘要:1. window.top.location.href the IE top windowwindow.parent.location.href or window.parent.src or window.frames["name"].src repesents the up level window, maybe not the top window in IE. 阅读全文

posted @ 2006-02-15 15:34 margiex 阅读(252) 评论(0) 推荐(0)

owc chart 的使用.
摘要:MS的东东的确还是很不错了,只要是EXCEL中能做的图,这玩意都可以弄,而且还是免费的:) 当然在.net中使用的是interop COM,而不是managed code.office9: msowc.dlloffice10: owc10.dlloffice11: owc11.dll在office 2k3 中带有owc10 & owc11的安装MSI文件,安装之后即可使用。office9只有一个可... 阅读全文

posted @ 2006-01-23 21:18 margiex 阅读(2036) 评论(0) 推荐(0)

move vs2k3 to vs2k5
摘要:0. backup all your projects and code first;1. use project auto convertion;2. if possible, update the reference component to vs2k5 release version;3. before converting, remove the readonly property fro... 阅读全文

posted @ 2005-12-10 16:05 margiex 阅读(292) 评论(0) 推荐(0)

start internal web server in .net 2.0
摘要:you can start it by command line:Start /B WebDev.WebServer.exe /port:7171 /path:"F:\My Web Site" 阅读全文

posted @ 2005-11-14 14:40 margiex 阅读(251) 评论(0) 推荐(0)

一个托盘程序, 简化notifyicon的使用.
摘要:引用: http://www.codeproject.com/csharp/mintraybtn.asp 阅读全文

posted @ 2005-10-13 10:24 margiex 阅读(279) 评论(0) 推荐(0)

在.net平台上运行伪JAVA
摘要:由于在一个项目局方要求使用JAVA平台, 而当前又都是.net平台的应用. 重新用JAVA开发工作量太大. 时间也来不及. 想到在.net中有url rewrite功能, 何不先"骗"过去再说, 反正只要不上服务器, 不看网页源代码, 估计要发现不太容易, 特别是对技术不懂的人.实现之后应该是输入http://host/XXX.jsp的时候,其实调用的是XXX.aspx. 对于任何页面都是如此. ... 阅读全文

posted @ 2005-10-10 17:24 margiex 阅读(1276) 评论(10) 推荐(0)