How to Implement ASP keyword string segmentation

Source: Internet
Author: User

I want to make META keywords, such as my title display ASPCodeYes: <% = objrs ("title") %>
If <% = objrs ("title") %> the final title is displayed, such as "How to Implement string segmentation ?"
I want to divide a string by two Chinese characters, for example, "character, character string, string segmentation, segmentation, splitting, and implementation"
How to Write ASP code?
Thank you very much.

Copy code The Code is as follows: dim I, title
Title = objrs ("title ")
For I = 0 to Len (Title ") Step 2
Response. Write mid (title, I, 2 )&","

Copy code The Code is as follows: <%
Dim objrs, strsql
Set objrs = server. Createobject ("ADODB. recordset ")
Strsql = "select title, content from table"
Objrs. Open strsql, strconn, 1, 3
If objrs. EOF then
Response. Write "<center> no data </center>"

Dim I, title
Title = objrs ("title ")
For I = 1 to Len (Title ")-2
Response. Write mid (title, I, 2) & "," 'here is just a demonstration output. You need to assign it to the meta variable by yourself.

Before Meta

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: 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.