在哪里使用更新面板

发布于 2024-08-03 23:20:21 字数 258 浏览 4 评论 0原文

我有一个以编程方式创建的自定义树视图,因为需要使用 asp.net 树视图无法实现的特定布局。它位于母版页上。当我单击树节点时,内容区域会在回发后刷新。有一个页面类别.aspx,这是该母版页的内容页面。我在名为 products.aspx 的内容区域中有一个用户控件。现在我想使用 ajax 来防止单击树节点时发生的回发。我尝试将用户updatepanel 和 treeview 中的控件以及 updatepanel 中的控件,但没有成功。

如何在此场景中使用 updatepanel。

I have a custom treeview which i create programmatically as there is a need of specific layout which is not achievable using asp.net treeview.It is on a master page.When i click on treenodes the content area refreshes after a postback.There is a page category.aspx which is a content page of this master page.I have a user control in that content area named products.aspx.Now i want to use ajax to prevent the postback which happens when i click on treenode.I tried putting user control in updatepanel and treeview as well in updatepanel but to no awail.

How to use updatepanel in this scenerio.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

筱果果 2024-08-10 23:20:21

UpdatePanel必须与用户控件或自定义控件的开发一起使用。 更新面板

UpdatePanel must be used with the development of User control or Custom Control. UpdatePanel

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文