��ǰλ�ã� ��ҳ �� IT���� �� ����������ASP��ʹ����(class)

���ೣ������

����������ASP��ʹ����(class)

����

 �����������ߵ�һ��С������������������������ASP��ʹ����(class)������ѧϰASP�������ǿ���ѧϰһ�¡�

�ڲ���ǰ��һ�죬����Ϊ�˽���һ���﷨����������VBscript�ĵ�ʱ��żȻ�䷢������������һ�仰��
  Class Statement
  
  Declares the name of a class, as well as a definition of the variables, properties, and methods that comprise the class.
  ������������......
  
  Class ����
  
  ����һ���������֣����Ƕ���һЩ���������ԣ�����������һ����
  
  �������ģ�������VBScript�������࣡��������֪���ܲ�������ASP!?�����Ļ����ҾͲ�����д����objectһ����ASP���򣿣�˵�ɾ͸ɣ�ʵ���Ǽ���������Ψһ��׼���Ը����ְɣ�
  
  ���dz����������ij����������ж�������˵����PHP��VB��C++��������VBScript�е�����˵�������ǵ�һ�����������ǵ��ճ�����������վ�����������������������ٸ����㾭�飬��ģ����Ҳ����ڼΪ"����"�������Ҿ�������һ������֪���������µĶ������������������������������ɣ�(window2000+IIS5.0ͨ������)
  
  <%
  ''����һ����Ϊaspcn����
  Class aspcn
  Private aspcn
  ''��ʼ����
  Private Sub Class_Initialize
  aspcn="Aspcn Is Good!<br>"
  End Sub
  ''����һ������
  Public Function DoIt()
  DoIt=aspcn
  End Function
  ''����һ������
  Public Sub QueryStr(stat)
  Response.write stat
  End Sub
  
  End Class
  
  Set Hi_aspcn=New aspcn ''����һ����ΪHi_aspcn��aspcn����ʵ��
  response.write Hi_aspcn.DoIt
  varstr="Aspcn Is Cool!<br><font color=red>http://www.aspcn.com</font><br>WelCome!!!"
  Hi_aspcn.QueryStr varstr
  
  %>
  
  
  ���Ǻܼ򵥵�һ������������������������һ����Ϊaspcn����,������һ��DoIt������һ��QueryStr���������������ܼ������Ŵ����ܿ�����������ʾ���£�
  
  Aspcn Is Good!
  Aspcn Is Cool!
  http://www.aspcn.com
  WelCome!!!
  
  �Ժ������ǾͿ��԰����dz��õ��ij���д��һ���࣬��ʱ������<��--#include file="xxx.asp"-->���������������ˣ��������ǿ����������ṩ���µĿռ䣬����ˬ������C++һ���ˣ��е��ع���Ȼ�ĸо�.

��������
��������
�������� �鿴��������(0)
�dz�:
����: ���� �� �� �Ҳ�Ҫ ���� �� ������ �ͻ� ʺ ����
����: 0/500 (����������Ҫ�������˲�����ʾ)