Reply
Member
olandera
Posts: 1
Registered: ‎08-29-2011

DPM - MVC 3 C# stuck on the form displaying properly

I am trying to test this out using the razor c# method and have coded everything for the DPM as outlined in the quickstart guide.

 

I am hosting at godaddy on shared server.

 

The problem:  when you view the page the form is not displaying correctly.  Seems all the tags are getting stripped out, could this be some url encode security issue?

 

The code below:

 

@using (Html.BeginSIMForm("http://firefitnessaz.com/home/sim", 1.94m, "xxxxxxx", "xxxxxxxxxxxxx",true))
{
    @Html.CheckoutFormInputs(true)

    @Html.Hidden("fitpackorderid", "2000")

    <input type="submit" value="Pay" />

}

 

 

Any help appreciated.  

 

Thanks!

 

Member
jpnguyen
Posts: 1
Registered: ‎09-05-2011

Re: DPM - MVC 3 C# stuck on the form displaying properly

Have same problem :mansad:

Moderator
Trevor
Posts: 551
Registered: ‎08-21-2009

Re: DPM - MVC 3 C# stuck on the form displaying properly

[ Edited ]

I'm afraid that I know very little about Razor.  However, I do know that one of it's advertised benefits is that it automatically htmlencodes most of the inputs.  Because the BeginSIMForm method outputs complete HTML, I could definitely see Razor causing problems by double encoding the data. Unfortunately, I can't recommend any kind of solution for you.

Member
epicthreedev
Posts: 3
Registered: ‎12-08-2011

Re: DPM - MVC 3 C# stuck on the form displaying properly

Please see my response on stackoverflow to correct this problem in MVC 3

 

http://stackoverflow.com/a/8426501/1087034