murugan 的个人资料.NET and Beyond照片日志列表更多 工具 帮助

murugan

.NET and Beyond

2月27日

SiteMap nodes and Empty or identical Urls

When the SiteMap is used as datasource to the Menu, if the sitenode contains empty urls the styles is not applied to the menu items. This looks very odd, because eventhough the menu item declared with empty url the styles is applied.
 
To avoid this we may add a blank urls [url="page:blank"], but when we add this to more than one sitemap node It throughs the following error
 
Multiple nodes with the same URL 'about:blank' were found. XmlSiteMapProvider requires that sitemap nodes have unique URLs.
 
Raj Kaimal blogged about it already.
 
The solution given by Raj Kaimal and ScottGu, is not going to help always. In some application the top menu items will not take to any url, rather it just displays a list of submenu items which takes to a valid url. So the best solution will be implementing our own xmlSiteMapProvider which would facilitate to give identical or empty urls.
11月29日

Split Button with popup Menu

Some of your application may need a split button with popup menu similar to the print button in MS Word File Open dialog, like this. [splitbutton.jpg]

 

A sample implementation is available Here.

Virtual ListView

When we want to poplate more listItem, say 50,000 to the listview it takes longtime to load and display. Rather a better approach will be we will load the necessary item whenever the user scroll we will load the appropriate item. This will improve the performance.

There is a sepearate thread is dealing with these requirment in c# & .net 1.1 here.

A sample implementation available from these links.
1. http://www.windowsforms.com/ControlGallery/ControlDetail.aspx?Control=214&tabindex=9

2.http://www.freeweb.hu/noiseehc/VirtualListView.cs

Note : In .net 2.0 this comes as builtin functionality.
 
公共文件夹
没有相册。
尚未添加列表。