开发者

Start out processing in ASP.NET once the page has been loaded and displayed

I have an ASP.Net app开发者_如何学Clication that uses a MasterPage. I have one page which includes two panels whose visibility is set dependent on the postback arguments to the page. In one condition I want some processing to occur but only after the whole page has been loaded as the panel will show a loading panel.

Ideally I wish to start this processing from code behind. Is this possible to do after the page is displayed?


It's not clear what kind of "processing" you mean, but it sounds like what you want is to kick off a background thread after the page has finished its life-cycle. You can offload the processing to a background worker thread (so it's outside the page life-cycle and not a blocking process for the web application), and kick off that thread from the page's Unload event.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜