InternetUnicodeHTMLCSSScalable Vector Graphics (SVG)Extensible Markup Language (xml)ASP.NetDocument Object Model (DOM)JavaScript Ad Rotator ComponentBrowser Capabilities ComponentContent Linking componentContent Rotator componentCounters ComponentLogging Utility ComponentMyInfo ComponentPage Counter componentPermission Checker ComponentStatus Component Draft for Information Only
Content
ASP Server Components
ASP Server ComponentsSome of the ASP server components are the common features found in dynamic web pages. These base ASP server components are provided to enrich the pre-made functions of ASP technology for making dynamic and interactive web pages. However, some IIS pre-made components are not installed for all version of IIS. Ad Rotator, Browser Capabilities, Content Linker, Content Rotator, Counters, Logging Utility, My Info, Page Counter, Status, and tools are not installed with IIS 6.0. However, if you upgrade your Web server from a previous version of IIS, the pre-made components are not removed. Some IIS pre-made components, ASP content rotator and nextlink, are deprecated in IIS7. And most IIS pre-made components are either not installed with IIS7 or their usage is not supported. Tools ComponentThe Tools component can be used to create a Tools object that acts as a HTML tags holder on an ASP page that providing some utilities for adding sophisticated functionality to the web page. File NameThe file name of the Tools component is Tools.dll. SyntaxSet ToolsName = Server.CreateObject("MSWC.Tools") ParametersToolsName The parameter "ToolsName" is the name assigned to the instance of the Tools object created by the call using the Server.CreateObject. RemarkIn Personal Web Server for Windows 95 or windows 98, the Tools object has already been included in the Global.asa file in the default virtual directory. The Tools component does not work with Internet Information Server 7 (IIS7). Tools.FileExists MethodTools.FileExists method is used to check the existence of a specified file published on the site by specifying the relative URL rather than an absolute URL. If the specified URL exists whith the published directory, the Tools.FileExists method returns -1. And if the specified file does not exist, the Tools.FileExists method returns 0. SyntaxToolsName.FileExists(URL) ParametersToolsName The parameter "ToolsName" is the name of the instance of the Tools object to be set. URL The optional parameter "URL" is used to specify the relative URL of the file to be checked Tools.Owner MethodTools.Owner method is used to check whether the current user is the site administrator. If the name and password submitted in the request header matches the Administrator name and password, the Tools.Owner method returns -1. And if the submitted name and password does not match, the Tools.Owner method returns 0. Currently, the Tools.Owner method only works properly on Personal Web Server for Macintosh. SyntaxToolsName.Owner ParametersToolsName The parameter "ToolsName" is the name of the instance of the Tools object to be set. Tools.PluginExists MethodTools.PluginExists method is used to check the existence of the specified Macintosh server plug-in exists on the site or not. If the specified Macintosh server plug-in name is currently registered, the Tools.PluginExists method returns -1. And if the specified Macintosh server plug-in name is not registered, the Tools.PluginExists method returns 0. The Tools.PluginExists method is only used on Macintosh. For IIS for Windows 95 or latet, the Tools.PluginExists method always returns 0. SyntaxToolsName.PluginExists(PluginName) ParametersToolsName The parameter "ToolsName" is the name of the instance of the Tools object to be set. PluginName The parameter "PluginName" is used to specify the name of the Macintosh server plug-in to be checked Tools.ProcessForm MethodTools.ProcessForm method is used to merges data from a template file with form data submitted by a user for creating a new file. The data submitted by the user can be manipulated by script in the template file. SyntaxToolsName.ProcessForm(OutputFileURL, TemplateURL,[InsertionPoint]) ParametersToolsName The parameter "ToolsName" is the name of the instance of the Tools object to be set. OutputFileURL The parameter "OutputFileURL" is used to specify the relative URL of the file to which the merged data is written. TemplateURL The parameter "TemplateURL" is used to specify the relative URL of the template file. InsertionPoint The optional parameter "InsertionPoint" is used to indicate where in the template file to start inserting the process data. The optional parameter "InsertionPoint" has not been implemented and value assigned to this parameter will be ignored. RemarksThe template file can contain ASP scripts using the delimiters <% and %>. Scripts in <% and %> delimiters is treated just like other text in the template file and copied into the output file. If the output file is an ASP page, the script will run when the output file is executed. For scripts in the template file to be executed during the call to Tools.ProcessForm method, script should be placed between special delimiters <%% and %%>. Since these scripts are executed before the template data is saved in the output file, the result of these scripts between special delimiters <%% and %%> get saved in the output file. If the specified output file exists, the existing file will be overwritten. If the InsertionPoint parameter does not exist, The Tools.ProcessForm method replaces the entire output file. If the InsertionPoint parameter exists, and does not begin with an asterisk (*), Tools.ProcessForm method finds the InsertionPoint string in the output file and inserts the date immediately after it. If the InsertionPoint string begins with an asterisk (*), Tools.ProcessForm method finds the InsertionPoint string in the output file and inserts the data immediately before. If the InsertionPoint string exists, but is not found in the output file, the data is appended to the end of the file. Tools.Random MethodTools.Random method is used to return an integer between -32768 and 32767 . The Tools.Random method is similar to the Rnd function but returns an integer. Similarly, a positive random integer can be obtained by using the Abs function. And a random integer below a specific value can be obtained by using the Mod function. SyntaxToolsName.Random ParametersToolsName The parameter "ToolsName" is the name of the instance of the Tools object to be set. Examples
©sideway ID: 130300003 Last Updated: 3/8/2013 Revision: 0 Ref: References
Latest Updated Links
|
Home 5 Business Management HBR 3 Information Recreation Hobbies 8 Culture Chinese 1097 English 339 Travel 7 Reference 79 Computer Hardware 251 Software Application 213 Digitization 32 Latex 52 Manim 205 KB 1 Numeric 19 Programming Web 289 Unicode 504 HTML 66 CSS 65 SVG 46 ASP.NET 270 OS 431 DeskTop 7 Python 72 Knowledge Mathematics Formulas 8 Set 1 Logic 1 Algebra 84 Number Theory 206 Trigonometry 31 Geometry 34 Calculus 67 Engineering Tables 8 Mechanical Rigid Bodies Statics 92 Dynamics 37 Fluid 5 Control Acoustics 19 Natural Sciences Matter 1 Electric 27 Biology 1 |
Copyright © 2000-2024 Sideway . All rights reserved Disclaimers last modified on 06 September 2019