Saludos estoy trabajando con un quiz en Asp.Net MVC y cuando compilo mi proyecto y voy a las preguntas los RadioButtonfor
una de las opciones ya vienen seleccionadas y no puedo desmarcarlas. Hay una solución para esto?
Codigo:
<div class="row">
<div class="container" style="margin:0 auto;margin-top:150px;">
<div class="row">
<h1>@Html.DisplayFor(x => x.TEXTO)</h1>
</div>
<div class="row">
<h3>@Html.RadioButtonFor(x => x.PREGUNTA1, @Model.ID) @Model.PREGUNTA1</h3>
</div>
<div class="row">
<h3>@Html.RadioButtonFor(x => x.PREGUNTA2, @Model.ID) @Model.PREGUNTA2</h3>
</div>
<div class="row">
<h3>@Html.RadioButtonFor(x => x.PREGUNTA3, @Model.ID) @Model.PREGUNTA3</h3>
</div>
<div class="row">
<h3>@Html.RadioButtonFor(x => x.PREGUNTA4, @Model.ID) @Model.PREGUNTA4</h3>
</div>
<div class="row">
@Html.TextBoxFor(x => x.RESPUESTA)
</div>
<div class="rown">
<input type="submit" value="submit" class="btn btn-success" />
</div>
</div>
</div>