After having read this article "ASP, and assign value to" NET MVC after http://www.cnblogs.com/insus/p/3643254.html, When asked about Insus.net, you do not want to assign values in the control builder, but instead want to use jquery in the view to get the control values within the user control or to assign values to them. How do you want to do that?
Below insus.net spend less time, do a simple example, demonstrate and share the implementation of the method.
Before implementing, modify the public static htmlstring rendercontrol<t> (String path) method in the AscxUtility.cs class.
Because Web control needs to be placed within a form to run.
Create a user control Uc1.ascx:
In the controller, create a two action:
To create a view:
The above tag 3 is the get user control rendered by the htmlstring on the div tag.
Mark 4 and Tag 5 are to get the value with the assignment.
Live Demo:
Here is another method that is rendered using the Razor syntax, modified by the following four steps, and can be avoided by the controller write public Contentresult Showuc () Action.
The results of the operation did not change, or the same.