Answers for "How to set the value to be selected of the radio button in mvc"

0

How to set the value to be selected of the radio button in mvc

BY LOVE
•	Here , employee is an object and from that object we are fetching Gender property which is of string type.

@if (employee.Gender == "Male")
        {
            <input type="radio" name="Gender" value="Male" checked="checked" /> 
            <text>Male</text>
        }
        else
        {
            <input type="radio" name="Gender" value="Male" /> 
             <text>Male</text>
        }
Posted by: Guest on May-14-2020
0

How to set the value to be selected of the radio button in mvc

•	Here , employee is an object and from that object we are fetching
	Gender property which is of string type.

@if (employee.Gender == "Male")
        {
            <input type="radio" name="Gender" value="Male" checked="checked" /> 
            <text>Male</text>
        }
        else
        {
            <input type="radio" name="Gender" value="Male" /> 
             <text>Male</text>
        }
Posted by: Guest on May-07-2020

Code answers related to "How to set the value to be selected of the radio button in mvc"

Browse Popular Code Answers by Language