针对我的场景的 Web 控制建议
这是我的场景,我想询问您关于最好使用哪种控件的意见。 我正在使用 C#、ASP.net 2.0。
我需要创建一个类似于树的结构。 用户将从某些内容开始,然后向其中添加节点。 每个节点本身都是一个结构,因此应该向用户提供创建新节点类型或使用现有节点类型的选项。
这里显而易见的选择是 TreeView。 然而,我有一些担忧: 1) 我被要求尽量减少返回 Web 服务器的次数,我不确定这如何与 TreeView 配合使用。
2)如果我最终使用 TreeView,创建一个新的节点类型(当前它是 .ascx(用户控件))可能会很棘手,因为我需要打开一个新窗口并将节点 id 和名称返回到创建节点类型时的父页面(包含 TreeView )并无缝更新它。
有什么建议吗?
Here is my scenario and I would like to ask your opinion on which control is best to use. I am using C#, ASP.net 2.0.
I am required to create a structure that resembles a tree. The user will start with something and then will add nodes to it. Every node is a structure by itself, so a user should be presented with an option to create a new node type or use an existing type of a node.
The obvious choice here seems TreeView. However, I have few concerns:
1) I was asked to minimize the number of trips back to the web server, and I am not sure how this would work with TreeView.
2) If I do end up using TreeView, creating a new node type (currently it is a .ascx (user control)) could be tricky to deal with, as I would need to open a new window and return node id and name to the parent page (which contains TreeView ) upon node type creation and seemlessly update it.
Any recommendations?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能想查看 JQuery 的 Treeview
http://docs.jquery.com/Plugins/ Treeview/treeview#options
通过这种方式,您可以在客户端更新树视图,当用户让一切按需要工作时,然后提交树状态。
.Net 的 JQuery
http://jquerydotnet.codeplex.com/
You may want to look into JQuery's Treeview
http://docs.jquery.com/Plugins/Treeview/treeview#options
this way, you can update the treeview on the client side, and when the user gets everything working as needed, then submit the tree state.
JQuery for .Net
http://jquerydotnet.codeplex.com/