开发者

Loading content in ASP.NET MVC View delayed using Ajax

quick question :)

I have an ASP.NET MVC view. I want the view to load and then do a post using ajax to load some secondary content. I know the Ajax.ActionLink methods etc. but I want the post to happen automatically when the page is loaded. And not开发者_JS百科 based on some user action.

What is the best way to do this?

-- Christian


If you are using jQuery just wire your ajax call to the $(document).ready() event.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜