Reputation: 965
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 based on some user action.
What is the best way to do this?
-- Christian
Upvotes: 0
Views: 759
Reputation: 26690
If you are using jQuery just wire your ajax call to the $(document).ready() event.
Upvotes: 6