views:

25

answers:

2
+1  Q: 

asp.net mvc ajax

 <% 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?

+1  A: 

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
                          })) 
   { %> 
tvanfosson
+1  A: 

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" 
}
womp