How to check if checkbox is checked in view page with razor and if checked display a textbox

Viewed 6021

How can I check if a checkbox is checked in view page with razor and if checked display a textbox!

I'm new in asp.net mvc and razor, still learning.

View Code

@Html.CheckBoxFor(m => m.SupportRequired)    
@Html.TextBoxFor(m => m.AssistName new { @class = "form-control" })
1 Answers
Related