within my MVC application , I have many partial views which specific ones can only be displayed upon clicking an hyperlink.

Razor View : Index.Html


Partial Code : Skill_List.cshtml

<div class="skill_list">
Some content here

Partial Code : ViewSkills.cshtml

<div class="View Skill">
<input type="button" id="viewskills" value="View Skills" /> 

CSS for skill_list

.skill_list {
display : none

I am aiming for the button with id viewskills to render the skill_list partial view when clicked upon?

I don't wish to use any Javascript , Jquery or Ajax . I am aiming to do this only using C# and CSHTML. Any ideas how?

Thank you

Related posts

Recent Viewed