0

How to add controls dynamically on button click in mvc3

1
  • 3
    Could you add some detail to your question please? What, specifically, are you trying to achieve? What have you tried so far? Maybe post a code snippet of where you've got to with the problem. Commented Apr 20, 2012 at 6:36

2 Answers 2

1

If you meant controller actions, you could do it like:

@this.Html.Action("ActionName", "ControllerNAme")

But if you meant ASP.NET Webforms server controls, forget that. In MVC the alternative is to use HTML helpers.

Sign up to request clarification or add additional context in comments.

Comments

0

you can use ajax to call controller, pass parameters for control and it should return view(control). you should serialize view before returning.

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.