开发者

asp.net mvc ajax

开发者 https://www.devze.com 2023-01-01 22:45 出处:网络
<% using (Ajax.BeginForm(\"EditOrganizationMeta\", new AjaxOptions { UpdateTargetId = \"\\<%= OrganizationMeta.vcr_MetaKey + Lang.int_LangId%>\" }))
 <% using (Ajax.BeginForm("EditOrganizationMeta", new AjaxOptions { UpdateTargetId = "\<%= OrganizationMeta.vcr_MetaKey + Lang.int_LangId%>" }))
           开发者_如何学编程     { %>

i want to specify name after UpdateTargetid ,how will i do that?


You're already in a code block. Just use the variables normally.

<% using (Ajax.BeginForm("EditOrganizationMeta",
                          new AjaxOptions {
                                 UpdateTargetId = OrganizationMeta.vcr_MetaKey
                                                     + Lang.int_LangId
                          })) 
   { %> 


You can initialize multiple items in a collection by simply providing a comma between the items.

new AjaxOptions { 
                  UpdateTargetId = "\<%= OrganizationMeta.vcr_MetaKey + Lang.int_LangId%>",
                  Name = "whatever" 
}
0

精彩评论

暂无评论...
验证码 换一张
取 消