Beruflich Dokumente
Kultur Dokumente
• When a browser requests an ASP file, IIS passes the request to the ASP engine.
The ASP engine reads the ASP file, line by line, and executes the scripts in the
file. Finally, the ASP file is returned to the browser as plain HTML
You can run ASP on your own PC without an external server. To do that, you must install
Microsoft's Personal Web Server (PWS) or Internet Information Services (IIS) on your
PC.
The default scripting language is VBScript. To set JavaScript as the default scripting
language for a particular page you must insert a language specification at the top of the
page. Like this: <%@ language="JavaScript"%>
Advantages of ASP:
• Minimizes network traffic by limiting the need for the browser and server to talk to
each other
• Makes for quicker loading time since HTML pages are only downloaded
• Allows to run programs in languages that are not supported by the browser
• Can provide the client with data that does not reside on the client’s machine
• Provides improved security measures since the script cannot be viewed by the browser
<%
Response.write("3<p>")
%>
<%@language="JScript"%>
<%
Response.Write("3<p>");
%>
ASP PROCEDURES
<%
sub vbproc(num1,num2)
response.write(num1*num2)
end sub
%>
<%
function jsproc(num1,num2)
{
Response.Write(num1*num2)
}
%>
<%jsproc(3,4)%>
<%
sub vbproc(num1,num2)
Response.Write(num1*num2)
end sub
%>
<script language="javascript" runat="server">
function jsproc(num1,num2)
{
Response.Write(num1*num2)
}
</script>
<%call vbproc(3,4)%>
<%call jsproc(3,4)%>
Note: When calling a JavaScript or a VBScript procedure from an ASP file written in
JavaScript, always use parentheses after the procedure name. In vbscript, parentheses are
optional. If you omit the "call" keyword, the parameter list must not be enclosed in
parentheses.
1. Request.QueryString
2. Request.Form
GET:
POST:
ASP COOKIES
A cookie is a temporary file used to identify a user. A cookie is a small file that the server
embeds on the user's computer. Each time the same computer requests a page with a
browser, it will send the cookie too.
For example, a website may offer its contents in different languages. On your first visit,
you may choose to have the content delivered in French and the site may record that
preference in a persistent cookie set on your browser. When you revisit that site it will
use the cookie to ensure that the content is delivered in French.
Creating a Cookie:
<%Response.Cookies("firstname")="Alex"%>
Properties:
1. Domain: This is the domain that the cookie originated from. It is set by default to
the domain in which it was created but it can be altered.
3. Path: This specifies in more detail the exact path on the domain that can use the
cookie.
Response.Cookies("name").Path = "/this/is/the/path"
4. Secure: If set, the cookie will only be set if the browser is using secure sockets or
https:// to connect.
Response.Cookies("name").Secure = True
Dictionary Cookie OR Cookies with Keys: It is a cookie that can hold multiple values.
Example:
Response.Cookies("name")("first") = "John"
Response.Cookies("name")("last") = "Smith"
Example:
<%
dim x,y
for each x in Request.Cookies
response.write("<p>")
if Request.Cookies(x).HasKeys then
for each y in Request.Cookies(x)
response.write(x & ":" & y & "=" & Request.Cookies(x)(y))
response.write("<br />")
next
else
Response.Write(x & "=" & Request.Cookies(x) & "<br />")
end if
response.write "</p>"
next
%>
Note: There are limits on how much data you can put on a clients browser. Most
browsers allow you to place 20 cookies per domain at a maximum of 4k each.
Types of cookies:
1. Persistent: Persistent cookies are stored on your computer hard disk. They stay
on your hard disk and can be accessed by web servers until they are deleted or
have expired. Persistent cookies are not affected by your browser setting that
deletes temporary files when you close your browser.
2. Non-Persistent: Non-persistent cookies are saved only while your web browser is
running. They can be used by a web server only until you close your browser.
They are not saved on your disk.
ASP OBJECTS
Request Object: The ASP Request object is used to get information from the user.
Application Object: A group of ASP files that work together to perform some purpose is
called an application. The Application object in ASP is used to tie these files together.
Session Object: The Session object is used to store information about, or change settings
for a user session.
Server Object: The ASP Server object is used to access properties and methods on the
server.
ASPError Object: The ASPError object is used to display detailed information of any
error that occurs in scripts in an ASP page.
RESPONSE:
Collections
Collection Description
Cookies Sets a cookie value. If the cookie does not exist, it will be created,
and take the value that is specified
Properties
Property Description
Buffer Specifies whether to buffer the page output or not
CacheControl Sets whether a proxy server can cache the output generated by ASP
or not
Charset Appends the name of a character-set to the content-type header in
the Response object
ContentType Sets the HTTP content type for the Response object
Expires Sets how long (in minutes) a page will be cached on a browser
before it expires
ExpiresAbsolute Sets a date and time when a page cached on a browser will expire
IsClientConnected Indicates if the client has disconnected from the server
Pics Appends a value to the PICS label response header
Status Specifies the value of the status line returned by the server
Methods
Method Description
AddHeader Adds a new HTTP header and a value to the HTTP response
AppendToLog Adds a string to the end of the server log entry
BinaryWrite Writes data directly to the output without any character conversion
Clear Clears any buffered HTML output
End Stops processing a script, and returns the current result
Flush Sends buffered HTML output immediately
Redirect Redirects the user to a different URL
Write Writes a specified string to the output
REQUEST:
Collections
Collection Description
ClientCertificate Contains all the field values stored in the client certificate
Cookies Contains all the cookie values sent in a HTTP request
Form Contains all the form (input) values from a form that uses the post
method
QueryString Contains all the variable values in a HTTP query string
ServerVariables Contains all the server variable values
Properties
Property Description
TotalBytes Returns the total number of bytes the client sent in the body of the
request
Methods
Method Description
BinaryRead Retrieves the data sent to the server from the client as part of a post
request and stores it in a safe array
APPLICATION:
Collections
Collection Description
Contents Contains all the items appended to the application through a
script command
StaticObjects Contains all the objects appended to the application with the
HTML <object> tag
Methods
Method Description
Contents.Remove Deletes an item from the Contents collection
Contents.RemoveAll() Deletes all items from the Contents collection
Lock Prevents other users from modifying the variables in the
Application object
Unlock Enables other users to modify the variables in the Application
object (after it has been locked using the Lock method)
Events
Event Description
Application_OnEnd Occurs when all user sessions are over, and the application
ends
Application_OnStart Occurs before the first new session is created (when the
Application object is first referenced)
SESSION:
Collections
Collection Description
Contents Contains all the items appended to the session through a
script command
StaticObjects Contains all the objects appended to the session with the
HTML <object> tag
Properties
Property Description
CodePage Specifies the character set that will be used when displaying
dynamic content
LCID Sets or returns an integer that specifies a location or region.
Contents like date, time, and currency will be displayed
according to that location or region
SessionID Returns a unique id for each user. The unique id is generated
by the server
Timeout Sets or returns the timeout period (in minutes) for the
Session object in this application
Methods
Method Description
Abandon Destroys a user session
Contents.Remove Deletes an item from the Contents collection
Contents.RemoveAll() Deletes all items from the Contents collection
Events
Event Description
Session_OnEnd Occurs when a session ends
Session_OnStart Occurs when a session starts
SERVER:
Properties
Property Description
ScriptTimeout Sets or returns the maximum number of seconds a script can run
before it is terminated
Methods
Method Description
CreateObject Creates an instance of an object
Execute Executes an ASP file from inside another ASP file
GetLastError() Returns an ASPError object that describes the error condition that
occurred
HTMLEncode Applies HTML encoding to a specified string
MapPath Maps a specified path to a physical path
Transfer Sends (transfers) all the information created in one ASP file to a
second ASP file
URLEncode Applies URL encoding rules to a specified string
ERROR:
Properties
Property Description
ASPCode Returns an error code generated by IIS
ASPDescription Returns a detailed description of the error (if the error is ASP-
related)
Category Returns the source of the error (was the error generated by ASP?
By a scripting language? By an object?)
Column Returns the column position within the file that generated the error
Description Returns a short description of the error
File Returns the name of the ASP file that generated the error
Line Returns the line number where the error was detected
Number Returns the standard COM error code for the error
Source Returns the actual source code of the line where the error occurred
ASP SESSION
The Session object is used to store information about a user session. Session variables are
used to store information about ONE single user, and are available to all pages in one
application. Typically information stored in session variables are name, id, and
preferences.
Session is implemented by creating a unique cookie for each user.
Session Starts when a new user requests an ASP file, and the Global.asa file includes a
Session_OnStart procedure.
A session ends if a user has not requested or refreshed a page in the application for a
specified period. By default, this is 20 minutes.
<%Session.Timeout=5%>
<%Session.Contents.RemoveAll()%>
To know the number of items in the content collection: use Count property
<%Session.Contents.Count%>
ASP APPLICATION
A group of ASP files that work together to perform some purpose is called an application.
Application variables are available to all pages in one application. Application variables
are used to store information about ALL users in a specific application.
Sub Application_OnStart
application("vartime")=""
application("users")=1
End Sub
</script>
<%
Application.Lock
'do some application object operations
Application.Unlock
%>
ASP #INCLUDE
The #include directive is used to create functions, headers, footers, or elements that will
be reused on multiple pages.
Syntax:
<!--#include virtual="somefilename"-->
or
<!--#include file ="somefilename"-->
Note: Included files are processed and inserted before the scripts are executed.
GLOBAL.ASA FILE
The Global.asa file is an optional file (stored in the root directory of the application) that
can contain declarations of objects, variables, and methods that can be accessed by every
page in an ASP application.
• Application events
• Session events
• <object> declarations
• TypeLibrary declarations
• the #include directive
Events in Global.asa
1. The FIRST user calls the first page from an ASP application.
2. after the Web server is restarted or after the Global.asa file is edited
Session_OnStart: Occurs
1. EVERY time a NEW user requests his or her first page in the ASP application.
Session_OnEnd: Occurs
Application_OnEnd: Occurs
Object Declaration:
Syntax:
Parameters:
1. scope
2. id
3. ProgID
4. ClassID
Example:
<object runat="server" scope="session" id="MyAd"
progid="MSWC.AdRotator">
</object>
1. ADROTATOR:
The ASP AdRotator component creates an AdRotator object that displays a different
image each time a user enters or refreshes a page.
Syntax:
<%
set adrotator=server.createobject("MSWC.AdRotator")
adrotator.GetAdvertisement("textfile.txt")
%>
//Here textfile.txt contains information about the images
Example:
ASP page looks like below:
<%
url=Request.QueryString("url")
If url<>"" then Response.Redirect(url)
%> */
<html>
<body>
<%
set adrotator=Server.CreateObject("MSWC.AdRotator")
response.write(adrotator.GetAdvertisement("textfile.txt"))
%>
</body>
</html>
Properties:
1. Border
2. Clickable
3. TargetFrame
2. CONTENT ROTATOR:
The ASP Content Rotator component creates a ContentRotator object that displays a
different HTML content string each time a user enters or refreshes a page.
Syntax:
<%
Set cr=Server.CreateObject( "MSWC.ContentRotator" )
%>
Example:
//ASP File looks like this:
<html>
<body>
<%
set cr=server.createobject("MSWC.ContentRotator")
response.write(cr.ChooseContent("text/textads.txt"))
%>
</body>
</html>
//Txt file looks like this
%% #1
This is a great day!!
%% #2
<h1>Smile</h1>
%% #3
<img src="smiley.gif">
%% #4
Here's a <a href="http://www.w3schools.com">link.</a>
Note: #Num indicates the relative weight of the HTML content string
Methods:
1. ChooseContent
2. GetAllContent
3. CONTENT LINKING:
The ASP Content Linking component is used to create a quick and easy navigation
system!
The Content Linking component returns a Nextlink object that is used to hold a list of
Web pages to be navigated.
Syntax:
<%
Set nl=Server.CreateObject( "MSWC.NextLink" )
%>
Example:
//txt file looks like this:
asp_intro.asp ASP Intro
asp_syntax.asp ASP Syntax
asp_variables.asp ASP Variables
asp_procedures.asp ASP Procedures
//On each of the pages listed above, put one line of code: <!-- #include file="nlcode.inc"--
>. This line will include the code below on every page listed in "links.txt" and the
navigation will work.
Methods:
1. GetListCount
2. GetListIndex
3. GetNextDescription
4. GetNextURL
5. GetNthDescription
6. GetNthURL
7. GetPreviousDescription
8. GetPreviousURL
4. BROWSER CAPABILITIES:
The ASP Browser Capabilities component creates a BrowserType object that determines
the type, capabilities and version number of each browser that visits your site.
When a browser connects to a server, an HTTP User Agent Header is also sent to the
server. This header contains information about the browser (like browser type and
version number). The BrowserType object then compares the information in the header
with information in a file on the server called "Browscap.ini".
If there is a match between the browser type and version number sent in the header and
the information in the "Browsercap.ini" file, you can use the BrowserType object to list
the properties of the matching browser. If there is no match for the browser type and
version number in the Browscap.ini file, it will set every property to "UNKNOWN".
The "Browsercap.ini" file is used to declare properties and to set default values for
browsers.
Syntax:
<%
Set MyBrow=Server.CreateObject("MSWC.BrowserType")
%>
Example:
;IE 5.0
[IE 5.0]
browser=IE
Version=5.0
majorver=#5
minorver=#0
frames=TRUE
tables=TRUE
cookies=TRUE
backgroundsounds=TRUE
vbscript=TRUE
javascript=TRUE
javaapplets=TRUE
ActiveXControls=TRUE
beta=False
;DEFAULT BROWSER
[*]
browser=Default
frames=FALSE
tables=TRUE
cookies=FALSE
backgroundsounds=FALSE
vbscript=FALSE
javascript=FALSE
<html>
<body>
<%
Set MyBrow=Server.CreateObject("MSWC.BrowserType")
%>
<table border="1" width="100%">
<tr>
<th>Client OS</th>
<th><%=MyBrow.platform%></th>
</tr>
<tr>
<td >Web Browser</td>
<td ><%=MyBrow.browser%></td>
</tr>
<tr>
<td>Browser version</td>
<td><%=MyBrow.version%></td>
</tr>
<tr>
<td>Frame support?</td>
<td><%=MyBrow.frames%></td>
</tr>
<tr>
<td>Table support?</td>
<td><%=MyBrow.tables%></td>
</tr>
<tr>
<td>Sound support?</td>
<td><%=MyBrow.backgroundsounds%></td>
</tr>
<tr>
<td>Cookies support?</td>
<td><%=MyBrow.cookies%></td>
</tr>
<tr>
<td>VBScript support?</td>
<td><%=MyBrow.vbscript%></td>
</tr>
<tr>
<td>JavaScript support?</td>
<td><%=MyBrow.javascript%></td>
</tr>
</table>
</body>
</html>
FILESYSTEM:
The following code creates a text file (c:\test.txt) and then writes some text to the file:
<%
dim fs,fname
set fs=Server.CreateObject("Scripting.FileSystemObject")
set fname=fs.CreateTextFile("c:\test.txt",true)
fname.WriteLine("Hello World!")
fname.Close
set fname=nothing
set fs=nothing
%>
Properties:
Property Description
Drives Returns a collection of all Drive objects on the computer
Methods:
Method Description
BuildPath Appends a name to an existing path
CopyFile Copies one or more files from one location to another
CopyFolder Copies one or more folders from one location to another
CreateFolder Creates a new folder
CreateTextFile Creates a text file and returns a TextStream object that can
be used to read from, or write to the file
DeleteFile Deletes one or more specified files
DeleteFolder Deletes one or more specified folders
DriveExists Checks if a specified drive exists
FileExists Checks if a specified file exists
FolderExists Checks if a specified folder exists
GetAbsolutePathName Returns the complete path from the root of the drive for the
specified path
GetBaseName Returns the base name of a specified file or folder
GetDrive Returns a Drive object corresponding to the drive in a
specified path
GetDriveName Returns the drive name of a specified path
GetExtensionName Returns the file extension name for the last component in a
specified path
GetFile Returns a File object for a specified path
GetFileName Returns the file name or folder name for the last component
in a specified path
GetFolder Returns a Folder object for a specified path
GetParentFolderName Returns the name of the parent folder of the last component
in a specified path
GetSpecialFolder Returns the path to some of Windows' special folders
GetTempName Returns a randomly generated temporary file or folder
MoveFile Moves one or more files from one location to another
MoveFolder Moves one or more folders from one location to another
OpenTextFile Opens a file and returns a TextStream object that can be used
to access the file
TEXTSTREAM OBJECT:
The variable f is an instance of the TextStream object in the above example.
To create an instance of the TextStream object you can use the CreateTextFile or
OpenTextFile methods of the FileSystemObject object, or you can use the
OpenAsTextStream method of the File object.
Properties:
Property Description
AtEndOfLine Returns true if the file pointer is positioned immediately before the
end-of-line marker in a TextStream file, and false if not
AtEndOfStream Returns true if the file pointer is at the end of a TextStream file,
and false if not
Column Returns the column number of the current character position in an
input stream
Line Returns the current line number in a TextStream file
Methods:
Method Description
Close Closes an open TextStream file
Read Reads a specified number of characters from a TextStream file and
returns the result
ReadAll Reads an entire TextStream file and returns the result
ReadLine Reads one line from a TextStream file and returns the result
Skip Skips a specified number of characters when reading a TextStream
file
SkipLine Skips the next line when reading a TextStream file
Write Writes a specified text to a TextStream file
WriteLine Writes a specified text and a new-line character to a TextStream
file
WriteBlankLines Writes a specified number of new-line character to a TextStream
file
DRIVE:
The Drive object is used to return information about a local disk drive or a network share.
The Drive object can return information about a drive's type of file system, free space,
serial number, volume name, and more.
Example:
<%
Dim fs,d
Set fs=Server.CreateObject("Scripting.FileSystemObject")
Set d=fs.GetDrive("c:")
Response.Write("Drive " & d & ":")
Response.Write("Total size in bytes: " & d.TotalSize)
set d=nothing
set fs=nothing
%>
Output:
Properties:
Property Description
AvailableSpace Returns the amount of available space to a user on a specified drive
or network share
DriveLetter Returns one uppercase letter that identifies the local drive or a
network share
DriveType Returns the type of a specified drive
FileSystem Returns the file system in use for a specified drive
FreeSpace Returns the amount of free space to a user on a specified drive or
network share
IsReady Returns true if the specified drive is ready and false if not
Path Returns an uppercase letter followed by a colon that indicates the
path name for a specified drive
RootFolder Returns a Folder object that represents the root folder of a specified
drive
SerialNumber Returns the serial number of a specified drive
ShareName Returns the network share name for a specified drive
TotalSize Returns the total size of a specified drive or network share
VolumeName Sets or returns the volume name of a specified drive
FILE:
To work with the properties and methods of the File object, you will have to create an
instance of the File object through the FileSystemObject object. First; create a
FileSystemObject object and then instantiate the File object through the GetFile method
of the FileSystemObject object or through the Files property of the Folder object.
Example:
<%
Dim fs,f
Set fs=Server.CreateObject("Scripting.FileSystemObject")
Set f=fs.GetFile("c:\test.txt")
Response.Write("File created: " & f.DateCreated)
set f=nothing
set fs=nothing
%>
Output:
Properties:
Property Description
Attributes Sets or returns the attributes of a specified file
DateCreated Returns the date and time when a specified file was created
DateLastAccessed Returns the date and time when a specified file was last accessed
DateLastModified Returns the date and time when a specified file was last
modified
Drive Returns the drive letter of the drive where a specified file or
folder resides
Name Sets or returns the name of a specified file
ParentFolder Returns the folder object for the parent of the specified file
Path Returns the path for a specified file
ShortName Returns the short name of a specified file (the 8.3 naming
convention)
ShortPath Returns the short path of a specified file (the 8.3 naming
convention)
Size Returns the size, in bytes, of a specified file
Type Returns the type of a specified file
Methods:
Method Description
Copy Copies a specified file from one location to another
Delete Deletes a specified file
Move Moves a specified file from one location to another
OpenAsTextStream Opens a specified file and returns a TextStream object to access
the file
FOLDER:
To work with the properties and methods of the Folder object, you will have to create an
instance of the Folder object through the FileSystemObject object. First; create a
FileSystemObject object and then instantiate the Folder object through the GetFolder
method of the FileSystemObject object.
Example:
<%
Dim fs,fo
Set fs=Server.CreateObject("Scripting.FileSystemObject")
Set fo=fs.GetFolder("c:\test")
Response.Write("Folder created: " & fo.DateCreated)
set fo=nothing
set fs=nothing
%>
Output:
Collections:
Collection Description
Files Returns a collection of all the files in a specified folder
SubFolders Returns a collection of all subfolders in a specified folder
Properties:
Property Description
Attributes Sets or returns the attributes of a specified folder
DateCreated Returns the date and time when a specified folder was created
DateLastAccessed Returns the date and time when a specified folder was last accessed
DateLastModified Returns the date and time when a specified folder was last
modified
Drive Returns the drive letter of the drive where the specified folder
resides
IsRootFolder Returns true if a folder is the root folder and false if not
Name Sets or returns the name of a specified folder
ParentFolder Returns the parent folder of a specified folder
Path Returns the path for a specified folder
ShortName Returns the short name of a specified folder (the 8.3 naming
convention)
ShortPath Returns the short path of a specified folder (the 8.3 naming
convention)
Size Returns the size of a specified folder
Type Returns the type of a specified folder
Methods:
Method Description
Copy Copies a specified folder from one location to another
Delete Deletes a specified folder
Move Moves a specified folder from one location to another
CreateTextFile Creates a new text file in the specified folder and returns a
TextStream object to access the file
Example:
<%
Dim d
Set d=Server.CreateObject("Scripting.Dictionary")
d.Add "re","Red"
d.Add "gr","Green"
d.Add "bl","Blue"
d.Add "pi","Pink"
Response.Write("The value of key gr is: " & d.Item("gr"))
%>
Output:
Properties:
Property Description
CompareMode Sets or returns the comparison mode for comparing keys in a
Dictionary object
Count Returns the number of key/item pairs in a Dictionary object
Item Sets or returns the value of an item in a Dictionary object
Key Sets a new key value for an existing key value in a Dictionary object
Methods:
Method Description
Add Adds a new key/item pair to a Dictionary object
Exists Returns a Boolean value that indicates whether a specified key exists
in the Dictionary object
Items Returns an array of all the items in a Dictionary object
Keys Returns an array of all the keys in a Dictionary object
Remove Removes one specified key/item pair from the Dictionary object
RemoveAll Removes all the key/item pairs in the Dictionary object
VIRTUAL DIRECTORY
Allows you to create multiple website under one ip address. Allows you reference
another location (folder) to include additional functionality.
To create one
1) Open IIS Manager (Ctrl Panel->Admin Tools->Internet Service Manager)
2) Right click the default site and “New”>”Virtual Directory”.
3) Type the name of the virtual directory and then browse to the location you would like
to reference.
UPLOAD FILES
//Form tag in upload page
<form name="Ifrm" method="post" action="" action="" ENCTYPE="multipart/form-
data">
//If a file already exists with same name then we can give option whether to upload or not
to upload.
Upload.OverwriteFiles = False/True
Eg:
True:
If swetha.jpg already exists then also the file is uploaded as swetha[1].jpg
False:
If same name already exists then we cannot upload.
//If there is any error in uploading and we still want to move ahead then we give this. If
we want to see the error then we should remove this statement.
On Error Resume Next
//We can also add code for creating the folder if the specified does not exist
Set fso=Server.CreateObject("Scripting.FileSystemObject")
if fso.FolderExists(server.mappath("./CoachImages"))=false then
Set fobj=fso.CreateFolder(server.mappath("./CoachImages"))
end if
Set fobj=nothing
Set fso=nothing
//To get the count of the uploaded files
Count = Upload.Save(server.mappath("./"&folder))
Next
Export to Excel
// Mention below lines in the asp page
Response.ContentType = "application/vnd.ms-excel"
Response.AddHeader "Content-Disposition", "attachment; filename=sheet1.xls"
After this, use an html table to write the desired data.
Send Mail
Note: We use a third party component “Persits” to send a mail.
With objPersits
.From = "affiliates@sportskids.com" //From Email Id
.FromName = "SportsKids.com" //Name of the Sender
.Host = "mail.sportskids.com" //Mail Host
.Subject = "Invitation"
.AddAddress <mailTo>,<mailName>
.Body = mailbody
.isHTML = True //If html content exists in the mail body
on error resume next
.Send //To send mail finally
if err.number <> 0 then
response.write "Error " & err.number & " sending to " & mailTo & "
(" & mailName & ")<br>"
err.clear
else
//Mail has been sent
end if
.RemoveAddress mailTo, mailName
End With
No Print
//Give the link in the html page to print
<a href="javascript:onclick=window.print()" class="navlinksareas">Print</a>
//On clicking, the entire page is printed
//Put the div tags with class=”noprint” in the page wherever required
<div class="noprint">……..</div>
Paging