asp.netgridviewpageloadexpression-web

Entire Page is loading


I have three menus. "Personal Info" "Mobile Info" "Documents" each buttons have their own link/page that displays a GridView. Now, when I click the other menu, the browser loads my entire page that causes so long to load the other page. I want to change that thing.

Now, what i want to do is. I just want only to load the area which the gridview located. Example: If i click the Personal Info button, the PersonalInfo_Gridview will appear in that area, then when I click the Mobile Info Button the PersonalInfo_Gridview will replace by MobileInfo_Gridview without loading the entire page.

here's my screenshot of my 3 menus: enter image description here

How can i do that? I'm using Microsoft Expression Web, and ASP.NET please help.


Solution

  • You should use an UpdatePanel to update your data.

    using the UpdatePanel control, you can enable a Web page to participate in partial-page updates without writing any client script. If you want, you can add custom client script to enhance the client user experience. When you use an UpdatePanel control, the page behavior is browser independent and can potentially reduce the amount of data that is transferred between client and server.

    Look at how to set different triggers to use the menu buttons to trigger the udpate.

    Refer: Understanding ASP.NET UpdatePanel Triggers