sams5817
sams5817

Reputation: 1037

How to allow portion of the page load at the very last?

I working in application development using ASP.NET in C#.

I have a Grid View which I wanted it to load at the very last of the page load.

The page should load the master page first, where all images and other functionality was loaded, then only load the GridView.

Can this achieve on c# back end code?like the page life cycle event.

Please advice, thank you in advanced.

Upvotes: 0

Views: 137

Answers (1)

Mert Akcakaya
Mert Akcakaya

Reputation: 3149

You can't tell to load something first or last using C#, because it is about HTTP Request and Response which is basically TCP/IP. You can however use AJAX to load some of the contents first and load some other contents last handling Javascript events like onload.

EDIT

I understand loading in this context as loading the page on the client side. If you are talking about loading page on the server side, yes you can do that. You need to load contents using page lifecycle events.

Upvotes: 2

Related Questions