在更新面板中加载aspx页面 [英] Load aspx page in update panel

查看:73
本文介绍了在更新面板中加载aspx页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

实际上,我正在使用asp.net和c#开发一个Web模板,该模板包含3个部分,我使用updatepanel处理页面的部分刷新.第一部分是顶部菜单,它刷新左子菜单,然后左子菜单刷新中间面板,并显示所有详细信息,其中包含带有插入,删除,编辑和分页按钮的表.我已使用listview开发表.
我有50多个这样的模块,其中包含带有一些按钮的表,如果我将所有表放在同一页面中,则页面代码将非常庞大.这就是为什么我想出将每个表放在单独的页面中,然后将每个页面加载到第3面板中的原因. 我已经通过了Uframe,但无法在我的页面上正确使用它.
我真的很感激任何人都可以帮助我克服这个问题,在第3面板中加载单独的aspx页面,但无需使用iframe.或指导我如何逐步使用uframe.或者如果您有其他解决此问题的方法.
非常感谢.

actually, I''m developing a web template with asp.net and c#, which is contain 3 parts and i handle the partial refreshing of the page with using updatepanel. the first parts is the top menu which is refresh the left sub menu, then the left sub menu refresh the middle panel and shows all the detail which is contain table with insert, delete, edit and paging buttons. i have use listview to develop the tables.
i have more than 50 module same like this which is contain table with some buttons and if i put all the tables in same page the page code would be very huge. that''s why i come up with idea to put each table in separate page and just load each page in the 3rd panel.
i have gone through the Uframe but i couldn''t use it at my page properly.
i would really appreciate that anybody help me to overcome this problem, to load separate aspx page in 3rd panel, but without using iframe. or guide me how to use the uframe step by step. or if you have another idea to get ride of this problem.
many thanks.

推荐答案

我建​​议您考虑使用iframe 代替您的内容. Performance 会更好,编码/维护会更简单,我真的想不出任何disadvantages. 参考

或者您可以尝试以下操作:
UpdatePanel和IFRAME结合的优点

或从以下链接中获取概念:

在UpdatePanel中动态加载UserControl
I''d suggest looking into using an iframe for your content instead. Performance would be better, it would be more simple to code/maintain, and I really can''t think of any disadvantages. ref

OR You can try the following:
Goodness of UpdatePanel and IFRAME Combined

Or get the concept from the following link:

Loading UserControl Dynamically in UpdatePanel


这篇关于在更新面板中加载aspx页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆