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

2 Answers 2

1

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
                          })) 
   { %> 
Sign up to request clarification or add additional context in comments.

Comments

1

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.