- I built a form in sales force and added it to my site. The whole goal of this is that the form on my site submits to sales force.
- I want to add server-side validation to my form like I have on other forms on my site.
- Sales force uses a weird name for drop down lists that often starts with a number. In my case, the drop down list input name="33N80563003V2aX"
This is giving me an issue because, as I understand it, the name of the property in my model has to match the name of the input control on the .aspx page. However, I can't have the name of my property start with a number.
//In my .aspx page:
Name:
<%= Html.TextBox("name", Model.Name, new { tabindex = 1 })%>
Type of Issue:
<%= Html.DropDownList("33N80563003V2aX", Model.33N80563003V2aX, "--None--", new { tabindex = 2 })%>
//In my model: (does not compile because of the name)
public string Name { get; set; }
public SelectList 33N80563003V2aX { get; set; }
Any suggestions?