Geeks With Blogs
Doug.Instance Improving the world one post at a time November 2010 Entries
Execute Javascript in MVC Partial View
First, some background information: I have some javascript that requires data from the database to set values so I dynamically generate the script on the server via an action in my controller. I only want to do this generation when the partial view using it is dispalyed. So here is the problem: You have javascript you only want to load when a certain partial view is displayed. Depending on the state of data in the database, the partial view might load on page load or it might only load after an MVC ......

Posted On Friday, November 12, 2010 1:50 PM

Copyright © Doug Lampe | Powered by: GeeksWithBlogs.net