在ASP.NET页面中动态加载内容 [英] Dynamic content loading in asp.net page

查看:123
本文介绍了在ASP.NET页面中动态加载内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个巨大的html文件,其中包含很多div,每个div都包含gridviews.

我的目标是首先加载页面,然后呈现每个div和gridview,以便用户无需等待更长的时间即可看到某些内容.
页面加载后,我拥有的选项是使用javascript调用Web服务方法.

但是我面临的挑战是我需要使用页面中声明的一些变量.
我可以将所有内容都放在会话中,然后尝试访问它.
这是可行的解决方案吗?还是触发多个$ post方法呢?

请提出最好的方法.

Hi,

I have a huge html file with lot''s of divs, each consisting of gridviews.

My objective is to load the page first and then render each of the divs and gridviews so that the user need not wait longer to see something.
The options I have is to call webservice methods using javascript once the page is loaded.

But the challenge I am facing is I need to use some variables declared in the page.
I can put everything in session and then try to access it.
Is it a feasible solution? Or what about firing multiple $post methods?

Please suggest which is the best way.

推荐答案

发布方法?

请提出最好的方法.
post methods?

Please suggest which is the best way.


您的问题为我记住了以下精彩文章.所以继续吧.

7个加载JavaScript Rich Web 2.0的网站的提示要快得多 [
Your question remembered the following nice article for me. So go ahead.

7 Tips for Loading JavaScript Rich Web 2.0-like Sites Significantly Faster[^]


这篇关于在ASP.NET页面中动态加载内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆