Как добавить идентификационный HTML-атрибут в ASP.NET MVC w/VB.NET

это решение

 public static void main(String[] args) {
    int count = 0;
    for (int i=1; i<=10; i++) {
        if (i%2==0) {
            System.out.println("My Name is Nikki\r\nI am learning Core Java");
            count++;
        }
        if (count == 4) {
            break;
        }
    }
}
7
задан CoolGravatar 7 May 2009 в 17:44
поделиться

2 ответа

I believe you need something like this

<%  Html.BeginForm("Create", "Model", 
    FormMethod.Post, New With {.id = "CreateForm"})%>    

I think it's trying to cast one of your empty strings as the FormMethod enumeration, which won't cast correctly.

Either way check this link out, it has all the overloads for the BeginForm method.

Html.BeginForm

10
ответ дан 6 December 2019 в 21:19
поделиться

Close:

<%Html.BeginForm("Create", "Model", "", "", new {id = "CreateForm"})%>
2
ответ дан 6 December 2019 в 21:19
поделиться
Другие вопросы по тегам:

Похожие вопросы: