开发者

How to get the HTML source for Dynamic rendered partial views in MVC3

开发者 https://www.devze.com 2023-04-05 01:40 出处:网络
I have a page where it has 3 partial views in total.Lets name A,B,C.During开发者_C百科 page load,A and B partial views are loaded. \'A\' partial view has a dropdown ,and its on change event ,I need to

I have a page where it has 3 partial views in total.Lets name A,B,C.During开发者_C百科 page load,A and B partial views are loaded. 'A' partial view has a dropdown ,and its on change event ,I need to load the partial view 'C'.Am able to get 'C ',but I also need to get the HTML source for the dynamic 'C' partial view when 'Viewpage source' is viewed.Can any 1 help on this?

Thanks Shiva


I did something similar using the controller name: @ViewContext.RouteData.Values["Controller"]

0

精彩评论

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