. Net simplified to traditional instances, traditional to simplified Encode. dll download,. netencode. dll

Source: Internet
Author: User

. Net simplified to traditional instances, traditional to simplified Encode. dll download,. netencode. dll

In the project, first reference Encode. dll is as follows:

Encode. dll

 

1. html page code

<% @ Page Language = "C #" AutoEventWireup = "true" CodeBehind = "simplified conversion. aspx. cs "Inherits =" ASP. NET _ language basics. simplified and traditional conversion "%> <! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 

 


2. backend. cs code

Using System; using System. collections. generic; using System. linq; using System. web; using System. web. UI; using System. web. UI. webControls; using EncodeMy; namespace ASP. NET _ language basics {public partial class simplified conversion: System. web. UI. page {protected void Page_Load (object sender, EventArgs e) {} protected void btnjtof_Click (object sender, EventArgs e) {EncodeRobert er = new EncodeRobert (); txtfan. text = er. SCTCConvert (ConvertType. simplified, ConvertType. traditional, txtjian. text);} protected void btnftoj_Click (object sender, EventArgs e) {EncodeRobert er = new EncodeRobert (); txtfan. text = er. SCTCConvert (ConvertType. traditional, ConvertType. simplified, txtjian. text );}}}

 

3,

 


Net Web Page code from simplified to traditional?

Private void button#click (object sender, EventArgs e)
{
EncodeRobert edControl = new EncodeRobert (); // creates a simplified conversion object.
TxtResult. Text = edControl. SCTCConvert (ConvertType. Simplified, ConvertType. Traditional, txtSource. Text); // perform Simplified Conversion
}
Write it in the button event, but you need to reference A using EncodeMy; not a class library that comes with. net. Refer to Encode. dll. You can find this online.

Net how to implement simplified and Traditional Chinese conversion? What is its conversion principle?

Download.csdn.net/source/617532 ,. If you need to write it in your project, you can reference Encode. dll in the bin folder.

Using EncodeMy;

EncodeRobert edControl = new EncodeRobert (); // creates a simplified conversion object.
TxtResult. Text = edControl. SCTCConvert (ConvertType. Simplified, ConvertType. Traditional, txtSource. Text); // perform Simplified Conversion
 

Related Article

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.