How to return Nested PartialViews (including their javascript) from an AJAX call in ASP.Net MVC
问题 I have created a treeview of Categories using nested partial views: my Index page (that displays the treeview): <div> Category Menu: <input type="button" value="1" name='selectCat_btn' /> <input type="button" value="2" name='selectCat_btn' /> </div> <!-- Treeview --> <% Html.RenderPartial("ItemCats_UL", Model); %> <div id="CatSelectorOutput"> </div> ItemCats_UL: <div> <ul id="catsTree"> <% Html.RenderPartial("ItemCats_LI", Model); %> </ul> </div> <script type="text/javascript" > $(document)