0

I am new to nopcommerce, I have successfully implemented onepage checkout plugin for payment checkout in nopcommerce.

I want to just change payment info option. want to show radio buttons with image instead of default dropdown on payment cart option.

But it is giving error when customize paymentinfo.cshtml

"Error executing child request for handler 'System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerAsyncWrapper'"

Default Code:

@Html.DropDownListFor(model => model.CreditCardType, Model.CreditCardTypes, new { @class = "dropdownlists" })

Customized Code:

 @foreach (var item in Model.CreditCardTypes)
 {                
        <h1> @item.CreditCardType</h1> 
        OR
        @Html.RadioButton(item.CreditCardType.ToString(), item.CreditCardType)
 }
Divyang Desai
  • 7,483
  • 13
  • 50
  • 76
Kiya
  • 168
  • 1
  • 17
  • It needs to be `` –  Oct 08 '18 at 05:57
  • still it gives same errror "Error executing child request for handler 'System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerAsyncWrapper'." – Kiya Oct 08 '18 at 06:49
  • That error has nothing to do with generating the radio buttons (which need to be as per the code in my previous comment) –  Oct 08 '18 at 06:56
  • Right, I have also changed render type from return View() to return Partical View(). still it is not solved. – Kiya Oct 08 '18 at 07:08
  • That error can be caused by a number of issues, for example using `@Html.Action()` to call a child action which is marked with `[HttpGet]` (and the error happens if you POST and return the view –  Oct 08 '18 at 07:50
  • It is solved by simple modification in Radiobuttion Binding. This error occurs only when syntax error or unproper binding of control. – Kiya Oct 10 '18 at 05:15

0 Answers0