The skills of a debugged ASP program converting to a component in VB
February 3, 2001
NetEase virtual community in the "VB and basic area" in a "use of VB to write a pure ASP program [to][technology]", in fact, I think the best way should be:
The
Return Values How-to Execute a Stored Proc ' s
This demo It's called Returnvalue.asp and shows to execute a stored procedure the has input params, output params , a returned recordset and a return value.
' CODE to CREATE ' The STORED PROCEDURE so
Method One, try to use complex SQL instead of a simple stack of SQL.
For the same transaction, a complex SQL completion is more efficient than a bunch of simple SQL finishes. When you have multiple queries, be good at using joins.
Ors=oconn.execute (
At some point, we need to create a table in an Access database and not necessarily have to change the database to upload it, let me briefly explain the method below.
' first set up a database file
Set Conn=server.createobject
First method: Manually register the DLL
This method is used from IIS 3.0 to IIS 4.0 and to other Web servers. It requires you to execute it on the command line, and go to the target containing the DLL.
Record, and enter:
:egsvr32 Component_name.dll
For the use of ASP technology programming beginners, it is the first feeling, I have had such a experience. After a "ordeal", you'll find inspiration. Now I have accumulated some experience in programming, to the cost of the text, dedicated to the
As with most language scripts, the best way to learn about ASPs is to try out your own ASP, using your own system to install PWS or IIS. You can test ASP components and functions on your own server while you are learning. For ease of learning, we
var dataset,sql,datalist;
var i=0;
var j=0;
Datalist=new News ();
Dataset=server.createobject ("Adodb.recordset");
Sql= "SELECT * from news where ngroup= ' group News ' ORDER by id DESC";
Dataset.open (sql,dataconn,1,1);
Is there any data
if
' Important code, copy the code into the code configuration file. (The code profile is a normal ASP file, where all the common code is placed in the ' file, and other calls to the public code are included in the file via include.)
' Permission
Related articles See:
http://www.111cn.net/Develop/read_article.asp?id=22695
This article on the basis of a number of additions, add a few suitable for Chinese web site function to go in, there may be some did not add, there are interested friends
Using asp.net (VB) to create a Web site, we call the way is very simple:
Dim test as New Class1 ()
Test. Createwebsit (Webname,port, "d:vb", "localhost")
Here is the code for CLASS1, which does the job of setting up a site and automatically
The original code is as follows
The code is as follows
Copy Code
gridview1.headerstyle.height=17;
Found not to work in IE10.
Look at the generated HTML code and discover that there is a HEIGHT:17PX element,
What has been done recently is to refactor existing projects. The WEB from to MVC, in fact, is also a push.
There is an export function, the data output into TXT file for download. The original approach was to have a hidden iframe, set a form form
ASP files as DLL files
When you create or use a complex ASP Web application, you must encounter a DLL that needs to be used. The DLL usually includes code, compiled in VB, C + +, or other Windows programming languages, for ASP applications.
Nonsense not to say, directly to everyone paste code, the code has comments, we see more.
Privatevoidform1_formclosing (Objectsender, FormClosingEventArgs e)
{
First step: Define the CS array
CS file in the background program to have an array, this array to define as a public array.
Public string[] lat = null;
Public string[] LNG = NULL;
Step Two: Assign values to the CS array
CS array of values are
ASP developers continue to work to achieve better performance and scalability in their design projects. Fortunately, there are many books and sites that offer good advice in this regard. However, these recommendations are based on the structure of
Hey, for a long time did not write something, the teacher this time again let me test their own things, found that there is a special character filter lax problem, so again write a function to filter special characters.
Function Chkinvaildword
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