Capturing a section of a view save as partial view

Source: Internet
Author: User

When doing an ASP. NET MVC daemon, according to the program needs, isus.net need to implement a function, that is, the dynamic interception of a section of the view saved as part of the view partial views.

The idea is to use the Jqury program in the view, and the HTML string that the post intercepts into the controller. Store the string as a partial view in the controller.

Here is a mock-up of the actual program, creating the original view:


The original view, insus.net list some fill fields, of course, you need to intercept may not be these, depending on the actual needs.


Back to the controller and write an operation to process the data:


Next, you can write the jquery code:


Demonstrate:



Capturing a section of a view save as partial view

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.