封装一个树形菜单三——.Net封装控件
Now I have the method to get a root of the? xml-format tree, and also a method to perform a dtree on website from the root. But now I have to make it a widget and more convient to use by other developers.
?
Here is the " helloo world " of asp.net widget.
?
1:create the "web widget" automatically by sdk
WebUserControl.ascx:
WebUserControl.ascx.cs:
?
The test file to call the WebUserControl widget:
?then "hello userControl zhuoyueping" is outputed.
?
Okay~ Come back to my tree~~
?
== 还有5分钟12点。。。本来是打算今天晚上写文档的,又悲催了。。剩下把控件搞成dll,明天再说了。
看看调用先:
?这句话话,可以指定的参数只比dtree少了一个pid,多了一个读取的xml路径,参数列表如下(跟dtree的一样)
Parameters?
okay,看看控件的实现:
?
我自己写的时候都看花了。。。现在也12点过4分了。。
不过运气还好,一次调试就成功了~~
