MVC converts randomly generated strings to pictures

Source: Internet
Author: User
The original: MVC converts randomly generated strings into pictures

Insus.net in this article "randomly get a string in an ASP. http://www.cnblogs.com/insus/p/3619224.html, just produce a random string," So how do we make it happen? Is it a picture?
There is no relationship, Insus.net church everyone to achieve it.

If your site is still an application, or ASP, non-MVC, you can refer to the following two links:
"Implement string to Picture" http://www.cnblogs.com/insus/archive/2009/03/08/1406122.html this is a video.

Another article, "Text creation picture, aspx to ascx value" http://www.cnblogs.com/insus/archive/2013/03/08/2950300.html.


In an ASP. NET MVC application, you can first create a defined result:

In the controller, create a two action:

To create a view:

Demonstrate:

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.