ASP keyword string segmentation How to implement the method _ Application skills

Source: Internet
Author: User

I want to do meta keywords, such as my title display ASP code is: <% =objrs ("title")%>
If <% =objrs ("title")%> the end-displayed title such as "How is the string split implemented?" ”
I would like to divide the string into two Chinese characters, such as "character, String, string, split, cut, how, what real, realize"
How does the ASP code write?
Thank you so much.

Copy Code code as follows:

Dim i, Title
title = objRS ("title")
For i = 0 to Len (Title) Step 2
Response.Write Mid (title, I, 2) & ","
Next

Copy Code code 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> does not have this data </center>"
Else
%>

<%
Dim i, Title
title = objRS ("title")
For i = 1 to Len (Title)-2
Response.Write Mid (title, I, 2) & "," ' This is just a demonstration output, you have to assign him to meta variables.
Next
%>

Add to the front of the meta

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.