ASTreeView 1.5.8 Release Notes

The latest version of ASTreeView is 1.5.8. In this new version, some small bugs have been fixed and several new features have been added: New APIs: SelectNode – select a node by node value CheckNodes – check nodes by node values UnCheckNodes -  uncheck nodes by node values FindByValue – find node by node value,… Read More »

ASTreeView – Perform PostBack while deleting nodes

How to do a postback after a node being deleted? Here’s the steps: 1. Set the OnNodeDeletedScript property of ASTreeView. OnNodeDeletedScript=”deletedHandler(val)” 2. Add a hidden button and a textbox(both are server side control) to the page: <div style=”display:none;”> <asp:Button ID=”btnPostBackTrigger” runat=”server” OnClick=”btnPostBackTrigger_Click” /> <asp:TextBox ID=”txtIDContainer” runat=”server”></asp:TextBox> </div> 3. Implement the deletedHandler javascript method: <script type=”text/javascript”>… Read More »

ASTreeView – How to disable checkbox PostBack

There’s a request that to disable the checkbox PostBack while the AutoPostBack properties is set to true. Because for node selection, we want to enable the PostBack. By default, if we set the AutoPostBack properties of ASTreeView, both the checkbox and selection will be effected. So here we need a little tricky to achieve that:… Read More »

Subclipse through ISA Proxy

If you want to use Subclipse( an svn plugin for eclipse ) and you are behind your company’s ISA Server, you need to tell the Subclipse to use proxy while accessing outside: 1. Go to C:\Documents and Settings\[User Name]\Application Data\Subversion 2. Edit the servers file, in the bottom of the file, uncomment the proxy settings… Read More »

解决google.com自动跳转到google.com.hk问题

谷歌终究还是离开了中国,无奈,悲哀。中国网民真可怜,中国人民真可怜。 发一下如何解决google.com自动跳转到google.com.hk问题,希望对要访问google.com的朋友有所帮助,感谢Li Ji的帮助。 方法如下: 1. 清空cookie 2. 访问:http://scholar.google.cn 3. 点击页面下方的 Google Scholar in English 4. 用浏览器进http://www.google.com/ncr

ASTreeView 1.5.3 Release Notes

ASTreeView has been updated to version 1.5.3. In the new version, developer can have more flexibility to control Add/Edit/Delete/DragDrop with customized javascript handler. In addition, from 1.5.3, two versions of ASTreeView will be available, one for .Net Framework 2.0(build with Ajax Extension 1.0), one for .Net Framework 3.5(build with Ajax Extension 3.5 ). Samples also… Read More »

Detect invalid characters in sql

A customer needs to know whether the names of the users contain some invalid characters, like tab characters. This is the code of a function which validates a string in sql: CREATE FUNCTION IsNameValid( @Name NVARCHAR(100) ) RETURNS BIT BEGIN SELECT @Name = RTRIM(ltrim(@Name)) IF(@name IS null) OR (@Name = ”) RETURN 1 DECLARE @len… Read More »

ASTreeView 1.5.2 Release Notes

ASTreeView has been updated to version 1.5.2, the main BIG improvement is that a new NodeType – TextNode has been added. With TextNode, you can set two links in one node which is not possible in previous versions. Even javascript can be the content of the nodes in a TextNode. New Features: 1. TextNode type… Read More »