简体   繁体   中英

load an aspx page in an updatepanel

I'm developing a web template using asp.net and c#, which contains 3 parts. I handle the partial refreshing of the page with using 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. 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.

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 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)

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. This is documented specifically here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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