Garima Bansal

Garima Bansal

  • 1k
  • 694
  • 41.4k

maintain the selection of radio button after redirect

Jan 10 2024 7:58 AM

After redirect the page, the radio button which i selected earlier should be maintain, How i do it?

  Html.RadioButtonFor(model => model.flag, "R", htmlAttributes: new { @id = "oflag1" })
                            Refusal   
                            Html.RadioButtonFor(model => model.flag, "RJ", htmlAttributes: new { @id = "oflag2" })
                            Return to JTP    

                            Html.RadioButtonFor(model => model.flag, "RA", htmlAttributes: new { @id = "oflag4" })
                            Call for Addln.Particulars   

                            Html.RadioButtonFor(model => model.flag, "FC", htmlAttributes: new { @id = "oflag3" })
                            Forward to Chairman
                            Html.ValidationMessageFor(model => model.flag, "", new { @class = "text-danger" })

 


Answers (4)