2006年11月22日
#
最近为了在web页面上通过代码动态的显示一个列表(DataList),由于显示的item项比较复杂,所以使用了
load模版的方法,新建一个usercontrol页面(.ascx),按平时模版列的做法,
在其html中加入<%# DataBinder.Eval(Container.DataItem, "displayname") %>,结果执行的时候
出现异常:“System.Web.UI.Control”并不包含对“DataItem”的定义。
看来加载模版和平时直接写在页面上还是有区别的,google了一下,发现有用VB写的,将Container转换成
DataListItem,于是将上面的脚本改成<%# DataBinder.Eval(((DataListItem)Container).DataItem, "displayname") %>
就没问题了。
2005年7月10日
#
着实让人有些不爽,几次提交希望免费开通,竟然被拒绝!
2004年12月16日
#
2004年11月2日
#
刚把我的media play升级到media play10,觉得比以前的版本都好使,
以前总觉得媒体库不好用,现在感觉好多了。增加了个在线商店功能。
microsoft的界面总是看的那么爽。可惜的是只能在windows xp下运行。
有个splat模式看着比较爽,其小视图的效果如下:
2004年10月14日
#
这段时间一直在写windows service,每次写完调试都是在控制台输入命令进行安装/启动/卸载,
虽然工作量不大,但时间长了也觉得麻烦。于是用.net做了个windows service的安装。
首先在解决方案中创建一个安装部署的项目,右键点击项目名称,在菜单中选择[添加]-->[项目输出],
在弹出的"添加项目输出组"窗口中,第一个下拉框会列出该解决方案中其他的项目,
选择需要制作安装的windows service项目,再选择主输出,点[确定]。如图:

本以为这样就可以的,但是安装完后,windows service并没有安装成服务。
还必须在安装项目中添加自定义操作。右击安装项目->视图->自定义操作.
如下图:分别添加自定义操作,在应用程序文件夹中选择刚才添加的主输出即可.

2004年7月2日
#
2004年6月10日
#
Special QuickWatch for a DataSet
By mohammed barqawi
I think it's very useful....
Detail info: here
2004年6月2日
#
web-based MS SQL Server(MSDE)2000 client tool, query analyzer and dba utility to design, create, query, backup, manage and monitor database from a web browser. Pure ASP script, no installation needed. Freeware for Educational and Personal usage.

... nice tool :-)
DownLoad url
2004年5月26日
#
一直想用模式窗口来打开.aspx页面,但是只要是执行服务器端的事件就会有问题.前些天从codeproject里看到篇文章,才发现解决办法:
Ever try to create a pop-up in ASP.NET. but ASP.NET 1.0 and 1.1 didn’t come with a mechanism to support the concept of modal forms. In fact, many internet browsers lack built-in support for the concept of modal forms.

Solution 1, Base:
The modal form in IE is a little unusual. One way to overcome this weirdness involves placing the following statement in the header of the intended modal form:
<base target=”_self”>
Solution 2, Smart Navigation:
in Page_Load event:
Response.Cache.SetNoServerCaching();
Response.Cache.SetCacheability(System.Web.HttpCacheability.NoCache);
Response.Cache.SetNoStore();
Response.Cache.SetExpires(new DateTime(1900,01,01,00,00,00,00));
There are variations to this, but I tried to stick with ASP.NET code .
详细信息请进http://www.codeproject.com/aspnet/ThoseCrazyPopups.asp