cancel
Showing results for 
Search instead for 
Did you mean: 

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!

 

olandera
Member
3 REPLIES 3

Have same problem :mansad:

jpnguyen
Member

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.

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

 

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

epicthreedev
Member