asp.net mvc parameter from page to a partial view
问题 I'm with a problem, I have a ajax link that pass a parameter, but, the page that it opens does not need that parameter. The page only load 2 partial views, one of those need that parameter passed to the page to load the data correctly, and the other just need to load a form, so, don't need that parameter. How can i acheive this? 回答1: In order to do what you want, you will need to add the id to the ViewData construct. var sysfunctions= UnisegurancaService.FunctionsRepository.All(); ViewData[