Using ADO on ASP home pages that do not support databases

Source: Internet
Author: User
Tags header first row
ado| Data | Database Many people may have their own ASP personal homepage, but there is not a lot of database permissions, today I give a method. You can build a library of your own. Not in Access or SQL Server format. is to build a format of your own. (It sounds high and deep!) The previous development of a database, are some very powerful system analyst O! Let's make some modifications today! )
That's it. Control.
Tdc:tabular Data Control.
Usage: <object id=countsrc classid= "Clsid:333c7bc4-460f-11d0-bc04-0080c7055a83" >
<param name= "value=" ">
</object>
Parameters may have:
AppendData: Whether to add new database records.
CharSet: Whether the database ignores case.
Dataurl: Database address.
Escapechar: Sets the overflow character.
Fielddelim: Set data non-transposition, default to ","
Language: The default is 中文版
Recordset: Sets the DataSet.
Sort: Sorts the way.
Useheader: Sets whether the first row is a header row.

............
There are a few I can not translate. I didn't use it.
The specific use is the above code!
Liezi. Look at Microsoft's this. As you can see, its database is actually an ASP file.
<object id=countsrc classid= "Clsid:333c7bc4-460f-11d0-bc04-0080c7055a83" border=0 width=0
<param name=dataurl value= "srcrel.asp" >
<param name=useheader value= "True" >
</object>
Ha ha. I also built a
The first behavior header row. is the name of the column:
Number,name,sex,age
001,dreams,boy,2x
002,starleee,boy,2x
003,aa,boy,3x
004,,bb,3x
See it. I saved him in my format. Starleee.txt
And then you can call it.
<object id=countsrc classid= "Clsid:333c7bc4-460f-11d0-bc04-0080c7055a83" border=0 width=0
<param name=dataurl value= "Starleee.txt" >
<param name=fielddelim value= "," > "I was separated by", ".
<param name=useheader value= "True" >
</object>
This is my database.
Cool and not cool. Then you can think of it as a database. A cursor that builds a client. Use ADO method, combine RDS to use bar.
The effect is good! What's the use of him? Think about it. He can use it on a free home page that doesn't support the database. Now many ISPs are not letting you use Access, or SQL Server. So we can finish it. Build a library of your own. and then call it. As long as he supports IE. (nonsense, support ASP's affirmative support ie.) )



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.