简体   繁体   English

在更新面板中加载aspx页面

[英]load an aspx page in an updatepanel

I'm developing a web template using asp.net and c#, which contains 3 parts. 我正在使用asp.net和c#开发一个Web模板,其中包含3个部分。 I handle the partial refreshing of the page with using updatepanel. 我使用updatepanel处理页面的部分刷新。

As you can see in picture below, the first parts is the top menu which is refreshed; 如下图所示,第一部分是刷新的顶部菜单; the left sub menu, then the left sub menu refresh the middle panel(Details) and shows all the detail which contains a table with insert, delete, edit and paging buttons. 左子菜单,然后左子菜单刷新中间面板(详细信息)并显示所有详细信息,其中包含带有插入,删除,编辑和分页按钮的表。 I used a listview to develop the tables. 我使用列表视图来开发表。

I have more than 50 modules similar to this which contain a table with some buttons, and if I put all the tables in the same page the page, the code would be very huge. 我有50多个与此类似的模块,其中包含一个带有一些按钮的表,如果将所有表放在该页面的同一页面中,代码将非常庞大。 That's why I came up with the idea to put each table in separate page and just load each page in the 3rd panel. 这就是为什么我想到将每个表放在单独的页面中,然后将每个页面加载到第3面板中的想法。

I have gone through the Uframe but I couldn't use it at my page properly. 我已经阅读了Uframe,但是无法在我的页面上正确使用它。

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. 我真的很感激任何人都可以帮助我克服这个问题,在第3面板中加载单独的aspx页面,但不使用iframe,或指导我如何逐步使用uframe。 Or if you have another idea to get rid of this problem. 或者,如果您有其他想法可以解决此问题。

我的样本页面

This is exactly the type of situation that Master Pages were intended for. 这正是母版页打算用于的情况类型。 Master pages allow you to define a consistent look for pages, with as much content as you like on the Master, and the parts that change in a "child" page (in the ContentTemplate) 母版页允许您为页面定义一致的外观,并在母版上定义尽可能多的内容,以及在“子”页面中更改的部分(在ContentTemplate中)

Master Pages are documented here and there is an introduction to Master Pages video here . 母版页都记录在这里 ,有一个介绍母版页视频在这里

Master pages can absolutely work with an UpdatePanel as well. 母版页也绝对可以与UpdatePanel一起使用。 This is documented specifically here . 这是专门记录在这里

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM