Total members 11894 |It is currently Sun Nov 24, 2024 8:17 am Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





To run ASP, you first will need IIS web server. We assume that the root of server is C:/mywebpage. Let’s “firstpage.asp” to be our first asp web page file, in order to run this file , set the URL of web browser to :
Code:
http://localhost/ firstpage.asp

Note you have to set the ISS setting to point to C:/mywebpage as default root. Now, how our file first? We start the web page by telling the application server that we are using VB-script:
Code:
<%@ Language=VBScript %>

In this case we are using VBScript for asp server side programming. The next part is the declarations of variables to be used later in our application.
Code:
<% Option Explicit %>

Following show declaration of a variable and assigning a string value to it, we define the variable using
“Dim” command.
Dim myMsg
myMsg =”My string”
You can print the content of this variable using “Response” object and “Write” function. Following is full and simple example, as you notice that the VB-script code is embedded with HTML code:
Code:
<%@ Language=VBScript %>
<%
 Option Explicit %>

<
html>
<
head>
<
title>Page Title</title>
</
head>

<
body >

<%
Dim myMsg 
myMsg 
=”My string”
Response
.Write myMsg
%>

</
body>
</
html>
 




_________________
M. S. Rakha, Ph.D.
Queen's University
Canada


Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 time
Post new topic Reply to topic  [ 1 post ] 

  Related Posts  to : ASP file structure
 c++/data structure     -  
 What is the size of this Structure     -  
 Display data from database as Tree Structure in JSP     -  
 program using structure to store roll number,name     -  
 Encrypt/Decrypt a file from source file to target file.     -  
 Copy file to file in java code- implementation     -  
 file descriptor vs file pointer     -  
 getting file name of html input file tag using jsp     -  
 How to convert xml file to Pdf file using C     -  
 C++ File I/O     -  



Topic Tags

ASP Basics
cron





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com