<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1544993908041623695</id><updated>2011-04-21T10:44:26.237-07:00</updated><category term='word files online'/><category term='asp tutorials'/><title type='text'>ASP Coding Guide</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://aspcodingguide.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1544993908041623695/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://aspcodingguide.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Anjali</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>15</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1544993908041623695.post-1532289713598507301</id><published>2007-02-14T20:54:00.001-08:00</published><updated>2007-02-14T20:54:36.176-08:00</updated><title type='text'>ASP Syntax</title><content type='html'>&lt;div align="justify"&gt;If you have any experience with PHP, Javascript, or general programming then ASP's syntax will make some sense to you. However, if you only have experience with web technologies like HTML and CSS, then ASP will be more of a challenge.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1544993908041623695-1532289713598507301?l=aspcodingguide.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aspcodingguide.blogspot.com/feeds/1532289713598507301/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1544993908041623695&amp;postID=1532289713598507301' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1544993908041623695/posts/default/1532289713598507301'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1544993908041623695/posts/default/1532289713598507301'/><link rel='alternate' type='text/html' href='http://aspcodingguide.blogspot.com/2007/02/asp-syntax.html' title='ASP Syntax'/><author><name>Anjali</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1544993908041623695.post-7239087717602136868</id><published>2007-02-14T20:48:00.002-08:00</published><updated>2007-02-14T20:51:59.421-08:00</updated><title type='text'>Your First ASP Script</title><content type='html'>&lt;div align="justify"&gt;&lt;span style="font-family:arial;"&gt;Before we get into the meat and potatoes of ASP programming let's just run a very simple ASP script to check that your &lt;/span&gt;&lt;a href="http://www.tizag.com/aspTutorial/aspSetup.php"&gt;&lt;span style="font-family:arial;"&gt;IIS installation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:arial;"&gt; and ASP are working properly. Open up a text editor and type the following ASP Code and save the file as "firstscript.asp".&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;div align="justify"&gt;&lt;br /&gt;&lt;span style="font-family:arial;color:#ff0000;"&gt;firstscript .asp ASP Code :&lt; %&lt;br /&gt;Respon se.Write( "Hello  Me")&lt;br /&gt;%&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt; &lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt; &lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;"&gt;Be sure to save this file to the directory "tizagASP" as was mentioned in the previous lesson, &lt;/span&gt;&lt;a href="http://www.tizag.com/aspTutorial/aspRunning.php"&gt;&lt;span style="font-family:arial;"&gt;Running ASP&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:arial;"&gt;.&lt;br /&gt;Launch Internet Explorer and type the following into the address bar:&lt;br /&gt;http://localhost/tizagASP/firstscript.asp&lt;br /&gt;If you see the following...&lt;br /&gt;Internet Explorer Display:&lt;br /&gt;Hello Me&lt;br /&gt;...then you've got all the file saving and running mumbo jumbo figured out and you can start focusing on learning ASP! Now let's continue!&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1544993908041623695-7239087717602136868?l=aspcodingguide.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aspcodingguide.blogspot.com/feeds/7239087717602136868/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1544993908041623695&amp;postID=7239087717602136868' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1544993908041623695/posts/default/7239087717602136868'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1544993908041623695/posts/default/7239087717602136868'/><link rel='alternate' type='text/html' href='http://aspcodingguide.blogspot.com/2007/02/your-first-asp-script.html' title='Your First ASP Script'/><author><name>Anjali</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1544993908041623695.post-3538484850606297425</id><published>2007-02-14T20:48:00.001-08:00</published><updated>2007-02-14T20:48:42.419-08:00</updated><title type='text'>Creating ASP Testing Grounds</title><content type='html'>&lt;p align="justify"&gt;&lt;span style="font-family:arial;"&gt;Throughout this tutorial we will be referring to the folder "tizagASP" that you should create if you want to follow along with these ASP Tutorials.&lt;br /&gt;Inside the wwwroot folder create a New Folder and rename it "tizagASP"&lt;br /&gt;To access this directory you would type the following into Internet Explorer:&lt;br /&gt;http://localhost/tizagASP/FILENAME.asp&lt;br /&gt;Where FILENAME is name of your ASP file&lt;br /&gt;All of the files you create while reading the ASP Tutorial should go into this directory.&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1544993908041623695-3538484850606297425?l=aspcodingguide.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aspcodingguide.blogspot.com/feeds/3538484850606297425/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1544993908041623695&amp;postID=3538484850606297425' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1544993908041623695/posts/default/3538484850606297425'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1544993908041623695/posts/default/3538484850606297425'/><link rel='alternate' type='text/html' href='http://aspcodingguide.blogspot.com/2007/02/creating-asp-testing-grounds.html' title='Creating ASP Testing Grounds'/><author><name>Anjali</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1544993908041623695.post-951333451342598690</id><published>2007-02-14T20:46:00.001-08:00</published><updated>2007-02-14T20:46:43.831-08:00</updated><title type='text'>Running an ASP Web Page</title><content type='html'>If you do not know where to save and run your ASP web pages from, this lesson will guide you through the process. In the previous lesson we installed Microsoft's Server software (IIS or PWS) to enable your computer to run .asp files. However, having IIS or PWS installed is not enough to run ASP files. The next step you must complete is to save and run your ASP files from a special location on your hard drive: the Inetpub directory to be specific.&lt;br /&gt;&lt;br /&gt;Follow these steps to navigate to this directory:&lt;br /&gt;&lt;br /&gt;Open up "My Computer" or "Windows Explorer" so that you can view your system's files and directories.&lt;br /&gt;&lt;br /&gt;Select and Open the C drive (C:)&lt;br /&gt;&lt;br /&gt;Double click the Inetpub folder&lt;br /&gt;&lt;br /&gt;Double click the wwwroot folder - The full path to this location is "C:\Inetpub\wwwroot" for you advanced users&lt;br /&gt;&lt;br /&gt;Within the wwwroot directory locate the "localstart.asp" file.&lt;br /&gt;&lt;br /&gt;This is the same file you saw after completing the installation in the previous lesson. Your ASP files will have to go into this wwwroot directory or a contained sub-directory to run properly.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1544993908041623695-951333451342598690?l=aspcodingguide.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aspcodingguide.blogspot.com/feeds/951333451342598690/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1544993908041623695&amp;postID=951333451342598690' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1544993908041623695/posts/default/951333451342598690'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1544993908041623695/posts/default/951333451342598690'/><link rel='alternate' type='text/html' href='http://aspcodingguide.blogspot.com/2007/02/running-asp-web-page.html' title='Running an ASP Web Page'/><author><name>Anjali</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1544993908041623695.post-4026509097732170486</id><published>2007-02-14T20:41:00.002-08:00</published><updated>2007-02-14T20:42:01.550-08:00</updated><title type='text'>Tizag's Setup</title><content type='html'>&lt;div align="justify"&gt;&lt;span style="font-family:arial;"&gt;This tutorial was written on XP Professional, but any of you using Windows 98 or other Windows derivatives should have no problem following along. If you do encounter a specific problem, please feel free to &lt;/span&gt;&lt;a href="http://www.tizag.com/about/contact.php"&gt;&lt;span style="font-family:arial;"&gt;Contact Us&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:arial;"&gt;.&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1544993908041623695-4026509097732170486?l=aspcodingguide.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aspcodingguide.blogspot.com/feeds/4026509097732170486/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1544993908041623695&amp;postID=4026509097732170486' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1544993908041623695/posts/default/4026509097732170486'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1544993908041623695/posts/default/4026509097732170486'/><link rel='alternate' type='text/html' href='http://aspcodingguide.blogspot.com/2007/02/tizags-setup.html' title='Tizag&apos;s Setup'/><author><name>Anjali</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1544993908041623695.post-2700816521955353560</id><published>2007-02-14T20:41:00.001-08:00</published><updated>2007-02-14T20:41:31.786-08:00</updated><title type='text'>Installing ASP and IIS on Windows XP Professional</title><content type='html'>&lt;div align="justify"&gt;&lt;span style="font-family:arial;"&gt;First locate your XP Professional CD and put it into your CD-ROM then follow these steps:&lt;br /&gt;Open your control panel. Click Start -&gt; then Settings -&gt; then Control Panel&lt;br /&gt;Select and Open "Add or Remove Programs"&lt;br /&gt;On the left column of the popup window select "Add or Remove Windows Components"&lt;br /&gt;Scroll down until you see Internet Information Services (IIS)&lt;br /&gt;If IIS is not checked then check it, otherwise you already have IIS installed on your computer&lt;br /&gt;Click Next and follow the on screen instructions from the installer&lt;br /&gt;When it has completed, open up Internet Explorer and type in http://localhost&lt;br /&gt;If IIS was install appropriately you should be taken to the welcome screen http://localhost/localstart.asp&lt;/span&gt; &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1544993908041623695-2700816521955353560?l=aspcodingguide.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aspcodingguide.blogspot.com/feeds/2700816521955353560/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1544993908041623695&amp;postID=2700816521955353560' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1544993908041623695/posts/default/2700816521955353560'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1544993908041623695/posts/default/2700816521955353560'/><link rel='alternate' type='text/html' href='http://aspcodingguide.blogspot.com/2007/02/installing-asp-and-iis-on-windows-xp.html' title='Installing ASP and IIS on Windows XP Professional'/><author><name>Anjali</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1544993908041623695.post-6118427805131682106</id><published>2007-02-14T20:39:00.002-08:00</published><updated>2007-02-14T20:41:02.430-08:00</updated><title type='text'>Installing ASP</title><content type='html'>&lt;p align="justify"&gt;&lt;span style="font-family:arial;color:#000099;"&gt;ASP (Active Server Pages) is part of the Internet Information Server (IIS) package that comes with certain Microsoft operating systems. Currently there is no native support for ASP on the other operating systems, such as: Mac OS, Linux, and Unix. The operating systems that do have the ability to support ASP are: Windows 95, 98, NT, 2000, 2003, XP Pro. &lt;/span&gt;&lt;/p&gt;&lt;p align="justify"&gt;&lt;span style="font-family:arial;color:#000099;"&gt;You will notice that XP Home Edition was not on the list of operating systems, and this was done intentionally by Microsoft to encourage people to purchase the more expensive XP Professional Edition. This lesson will provide an installation walkthrough for Windows 98 and Windows XP Pro.&lt;br /&gt;Note: Chilisoft does have a solution for some Linux and Solaris users and can be purchased at Sun's web site: &lt;a href="http://www.sun.com/software/chilisoft/"&gt;Sun Java System Active Server Pages 4.0&lt;/a&gt;.&lt;br /&gt;&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1544993908041623695-6118427805131682106?l=aspcodingguide.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aspcodingguide.blogspot.com/feeds/6118427805131682106/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1544993908041623695&amp;postID=6118427805131682106' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1544993908041623695/posts/default/6118427805131682106'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1544993908041623695/posts/default/6118427805131682106'/><link rel='alternate' type='text/html' href='http://aspcodingguide.blogspot.com/2007/02/installing-asp.html' title='Installing ASP'/><author><name>Anjali</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1544993908041623695.post-1084600919831289058</id><published>2007-02-14T20:39:00.001-08:00</published><updated>2007-02-14T20:39:35.497-08:00</updated><title type='text'>What You Need to Know</title><content type='html'>&lt;div align="justify"&gt;Before you start in on Tizag's ASP Tutorial, it is recommended that you have a strong grasp of HTML, as this tutorial will not explain the HTML code in any great depth. If your HTML knowledge could use a touchup, check out our &lt;a href="http://www.tizag.com/htmlT/"&gt;HTML Tutorial&lt;/a&gt; or for the complete HTML Beginner: &lt;a href="http://www.tizag.com/beginnerT/"&gt;First Web Site Walkthrough&lt;/a&gt;.&lt;br /&gt;This ASP Tutorial is quite long, so do not try to take it on all at once. We find that reading a couple lessons at one sitting and then giving yourself time to reflect on what you learned really helps to understand the subject better. Good luck!&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1544993908041623695-1084600919831289058?l=aspcodingguide.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aspcodingguide.blogspot.com/feeds/1084600919831289058/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1544993908041623695&amp;postID=1084600919831289058' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1544993908041623695/posts/default/1084600919831289058'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1544993908041623695/posts/default/1084600919831289058'/><link rel='alternate' type='text/html' href='http://aspcodingguide.blogspot.com/2007/02/what-you-need-to-know.html' title='What You Need to Know'/><author><name>Anjali</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1544993908041623695.post-8420708245665079524</id><published>2007-02-14T20:38:00.001-08:00</published><updated>2007-02-14T20:38:57.266-08:00</updated><title type='text'>Complete Solution - ASP</title><content type='html'>&lt;div align="justify"&gt;&lt;span style="font-family:arial;"&gt;While ASP is quite useful, it is not a stand alone solution. Rather, ASP is a supplement to HTML (and CSS and even Javascript) and your final ASP code will often contain bits of pieces of code that are not ASP. If you had ever wanted to take orders, gather emails, or make a decent guestbook, ASP will provide you the necessary tools to complete these tasks.&lt;/span&gt; &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1544993908041623695-8420708245665079524?l=aspcodingguide.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aspcodingguide.blogspot.com/feeds/8420708245665079524/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1544993908041623695&amp;postID=8420708245665079524' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1544993908041623695/posts/default/8420708245665079524'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1544993908041623695/posts/default/8420708245665079524'/><link rel='alternate' type='text/html' href='http://aspcodingguide.blogspot.com/2007/02/complete-solution-asp.html' title='Complete Solution - ASP'/><author><name>Anjali</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1544993908041623695.post-5762569334595997276</id><published>2007-02-14T20:35:00.000-08:00</published><updated>2007-02-14T20:38:11.146-08:00</updated><title type='text'>ASP Introduction</title><content type='html'>&lt;div align="justify"&gt;&lt;span style="font-family:arial;"&gt;Active Server Pages (ASP) is a server side scripting language that lets a webmaster transform the plain, static web site into a dazzling, dynamic solution. With Microsoft's server side scripting language you can gather data from your site's visitors, use sessions, cookies, application variables, and more. Don't worry if you don't know what all of those terms mean because you will soon be learning all about them.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1544993908041623695-5762569334595997276?l=aspcodingguide.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aspcodingguide.blogspot.com/feeds/5762569334595997276/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1544993908041623695&amp;postID=5762569334595997276' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1544993908041623695/posts/default/5762569334595997276'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1544993908041623695/posts/default/5762569334595997276'/><link rel='alternate' type='text/html' href='http://aspcodingguide.blogspot.com/2007/02/asp-introduction.html' title='ASP Introduction'/><author><name>Anjali</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1544993908041623695.post-2299905048261172871</id><published>2007-02-13T20:47:00.000-08:00</published><updated>2007-02-13T20:54:04.994-08:00</updated><title type='text'>Visual Basic Script (VBScript)</title><content type='html'>There are three ways to use VBScript in ASP pages:&lt;br /&gt;1. In-line VBScript statements: The VBScript statements must be enclosed in the special in-line script tag: &lt;% %&gt;. The enclosed statements will be executed by the server, and the output of response.write() calls will be merged in-line with the surrounding static HTML text. In-line VBScript statements require a language declaration statement to define explicityly VBScript as the server side scripting language, if you are not sure what is the default language defined on the Web server. &lt;%@ language="vbscript"%&gt;&lt;br /&gt;...&lt;br /&gt;&lt;%&lt;br /&gt;vbscript_statement&lt;br /&gt;vbscript_statement&lt;br /&gt;...&lt;br /&gt;%&gt;&lt;br /&gt;2. In-line VBScript expression: The VBScript expression must be enclosed in the special in-line script tag: &lt;% %&gt; with a leading "=" sign. The enclosed expression will be evaluated, and the resulting value will be converted into a string and merged in-line withh the surrounding static HTML text. In-line VBScript expression also require a language declaration statement to define explicityly VBScript as the server side scripting language, if you are not sure what is the default language defined on the Web server. &lt;%@ language="vbscript"%&gt;&lt;br /&gt;...&lt;br /&gt;&lt;%&lt;br /&gt;= vbscript_expresion&lt;br /&gt;%&gt;&lt;br /&gt;3. Script block of VBScript statements: The VBScript statements must be enclosed by the starting script block tag &lt;script&gt; and the ending tag &lt;/script&gt;. Two attributes are required on the script tag: "language" and "runat". &lt;script language="vbscript" runat="server"&gt;&lt;br /&gt;vbscript_statement&lt;br /&gt;vbscript_statement&lt;br /&gt;...&lt;br /&gt;&lt;/script&gt;&lt;br /&gt;Please note that the script block VBScript statements will be executed by the server. But the output of response.write() calls will not be merged in-line with the surrounding static HTML text. It will be:&lt;br /&gt;Inserted at the beginning of the HTTP reponse before any static HTML text, if the server's default scripting language is not VBScript.&lt;br /&gt;Appended at the end of the HTTP reponse after any static HTML text, if the server's default scripting language is VBScript.&lt;br /&gt;This rule was a big supprise to me. I had to post a message to microsoft.public.inetsdk.programming.scripting.vbscript, and got confirmed from Microsoft. See the article &lt;a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvid/html/msdn_vbnjscrpt.asp"&gt;Using VBScript and JScript on a Web Page&lt;/a&gt;.&lt;br /&gt;Mixing VBScript Statements with Static HTML Text&lt;br /&gt;Here is an ASP page example to show you how in-line statements and expressions can be mixed with static HTML text: &lt;%@ language="vbscript"%&gt;&lt;br /&gt;&lt;!-- inline_syntax.asp&lt;br /&gt;Copyright (c) 2003 by Dr. Herong Yang&lt;br /&gt;This program shows how to use inline scripting statements and&lt;br /&gt;expressions.&lt;br /&gt;--&gt;&lt;br /&gt;&lt;html&gt;&lt;body&gt;&lt;br /&gt;Good&lt;br /&gt;&lt;% if 0 &lt;= hour(time) and hour(time) &lt;&gt;&lt;br /&gt;moring,&lt;br /&gt;&lt;% elseif 12 &lt;= hour(time) and hour(time) &lt;&gt;&lt;br /&gt;afternoon,&lt;br /&gt;&lt;% else&lt;br /&gt;response.write("evening,")&lt;br /&gt;end if %&gt;&lt;br /&gt;Herong.&lt;/br&gt;&lt;br /&gt;&lt;% response.write("The current server time is: ") %&gt;&lt;br /&gt;&lt;% = Time %&gt; on &lt;% = Date %&gt;&lt;br /&gt;&lt;/body&gt;&lt;/html&gt;&lt;br /&gt;Output: Good evening, Herong.&lt;br /&gt;The current server time is: 10:01:56 PM on 5/24/2003&lt;br /&gt;In the previous example, I was able to break the "if" statement into two parts and use in-line script for one part and static text for the other.&lt;br /&gt;&lt;br /&gt;In the next example, I will show you the difference between in-line scripts and script blocks: &lt;!-- output_sequence.asp&lt;br /&gt;Copyright (c) 2002 by Dr. Herong Yang&lt;br /&gt;Verifying output sequence of scripts and HTML text.&lt;br /&gt;--&gt;&lt;br /&gt;&lt;html&gt;&lt;body&gt;&lt;br /&gt;&lt;script language="vbscript" runat="server"&gt;&lt;br /&gt;response.write("Text line 1.&lt;br/&gt;")&lt;br /&gt;&lt;/script&gt;&lt;br /&gt;Text line 2.&lt;br/&gt;&lt;br /&gt;&lt;script language="vbscript" runat="server"&gt;&lt;br /&gt;response.write("Text line 3.&lt;br/&gt;")&lt;br /&gt;&lt;/script&gt;&lt;br /&gt;Text line 4.&lt;br/&gt;&lt;br /&gt;&lt;/body&gt;&lt;/html&gt;&lt;br /&gt;Output: Text line 2.&lt;br /&gt;Text line 4.&lt;br /&gt;Text line 1.&lt;br /&gt;Text line 3.&lt;br /&gt;Supprised? I was supprised before I learned that execution rule about script blocks mentioned in the previous section. The output also tell us that the default language on IIS 5.0 is set to VBScript. Otherwise, text line 1 and 3 would be displayed first. The problem can be avoided by using the in-line scripts: &lt;%@ language="vbscript"%&gt;&lt;br /&gt;&lt;!-- output_sequence_corrected.asp&lt;br /&gt;Copyright (c) 2002 by Dr. Herong Yang&lt;br /&gt;Verifying output sequence of scripts and HTML text.&lt;br /&gt;--&gt;&lt;br /&gt;&lt;html&gt;&lt;body&gt;&lt;br /&gt;&lt;%&lt;br /&gt;response.write("Text line 1.&lt;br/&gt;")&lt;br /&gt;%&gt;&lt;br /&gt;Text line 2.&lt;br/&gt;&lt;br /&gt;&lt;%&lt;br /&gt;response.write("Text line 3.&lt;br/&gt;")&lt;br /&gt;%&gt;&lt;br /&gt;Text line 4.&lt;br/&gt;&lt;br /&gt;&lt;/body&gt;&lt;/html&gt;&lt;br /&gt;Now you know the different ways to use VBScript in ASP pages. But which way is better?&lt;br /&gt;In-line script, &lt;%...%&gt;, is very flexible in mixing dynamic data with static HTML text. But the syntax is not so XML friendly.&lt;br /&gt;Script block, &lt;script&gt;...&lt;/script&gt;, is not useful at all if you want to keep static HTML text in your page. It can only be used, if you want to write the entire page in a single block, and output all HTML text with response.write() calls.&lt;br /&gt;Personally, I prefer script block syntax, because I could easily manipulate it with XML tools. So I will be using script blocks most of the time for my sample ASP pages in this book. Note that even HTML comment tag &lt;!-- --&gt; must be moved into the script blocks.&lt;br /&gt;Variables and Expressions in VBScript&lt;br /&gt;Special rules about variables and expressions:&lt;br /&gt;Variables used without declarations are called "variant" variables.&lt;br /&gt;Variant variables can be used to store different data types.&lt;br /&gt;Variable names are case insensitive.&lt;br /&gt;"=" is the assignment operator. But it is also the boolean equality operator.&lt;br /&gt;"&amp;" is the string concatenation operator.&lt;br /&gt;Here is a sample ASP page, variable.asp: &lt;script language="vbscript" runat="server"&gt;&lt;br /&gt;' variable.asp&lt;br /&gt;' Copyright (c) 2002 by Dr. Herong Yang&lt;br /&gt;' This program demonstrates some special rules about variables and&lt;br /&gt;' expressions.&lt;br /&gt;'&lt;br /&gt;response.write("&lt;html&gt;&lt;body&gt;")&lt;br /&gt;response.write("&lt;b&gt;Tests on variables&lt;/b&gt;:&lt;br/&gt;")&lt;br /&gt;i = 1 + 2 + 3&lt;br /&gt;s = "Sum = "&lt;br /&gt;s = s &amp;amp; i &amp; "&lt;br/&gt;"&lt;br /&gt;i = i=6&lt;br /&gt;response.write(s)&lt;br /&gt;response.write("Is the answer correct? " &amp;amp; i)&lt;br /&gt;response.write("&lt;/body&gt;&lt;/html&gt;")&lt;br /&gt;&lt;/script&gt;&lt;br /&gt;Output: Tests on variables:&lt;br /&gt;Sum = 6&lt;br /&gt;Is the answer correct? True&lt;br /&gt;"i = i=6" is a very unusual statement. First of all, variable "i" has changed its data type from integer to boolean. Secondly, two "=" signs are used next to each other, the first one is an assignment operation, and the second one is a boolean equality operator.&lt;br /&gt;&lt;br /&gt;Arrays&lt;br /&gt;Array is a build-in data structure in Visual Basic language. It can used to store a collection of data elements with indexes to access each element. Arrays can be declared to hold a fixed number of elements as: dim weekdays(5)&lt;br /&gt;Arrays can also be declared to a variable number of elements as: dim weekdays()&lt;br /&gt;redim weekdays(5)&lt;br /&gt;other statements&lt;br /&gt;redim preserve weekdays(7)&lt;br /&gt;Elements in a array can be iterated with the "for each ... next" statement as: dim weekdays(5)&lt;br /&gt;other statements&lt;br /&gt;for each day in weekdays&lt;br /&gt;other statements&lt;br /&gt;next&lt;br /&gt;Here is a simple ASP page to how the features of arrays: &lt;script language="vbscript" runat="server"&gt;&lt;br /&gt;' array.asp&lt;br /&gt;' Copyright (c) 2002 by Dr. Herong Yang&lt;br /&gt;' This program demonstrates some special rules about arrays.&lt;br /&gt;'&lt;br /&gt;response.write("&lt;html&gt;&lt;body&gt;")&lt;br /&gt;response.write("&lt;b&gt;Tests on arrays&lt;/b&gt;:&lt;br/&gt;")&lt;br /&gt;dim days()&lt;br /&gt;redim days(5)&lt;br /&gt;' Referring elements by index&lt;br /&gt;days(0) = "Mon"&lt;br /&gt;days(1) = "Tue"&lt;br /&gt;days(2) = "Wed"&lt;br /&gt;days(3) = "Thu"&lt;br /&gt;days(4) = "Fri"&lt;br /&gt;' Iterating through indexes&lt;br /&gt;for i=0 to 5-1&lt;br /&gt;response.write("Element " &amp; i+1 &amp;amp; " = " &amp; days(i) &amp;amp; "&lt;br/&gt;")&lt;br /&gt;next&lt;br /&gt;' Increasing the size of the array&lt;br /&gt;redim preserve days(7)&lt;br /&gt;days(5) = "Sat"&lt;br /&gt;days(6) = "Sun"&lt;br /&gt;i = 1&lt;br /&gt;response.write("Two days added:&lt;br/&gt;")&lt;br /&gt;for each d in days&lt;br /&gt;response.write("Element " &amp; i &amp;amp; " = " &amp; d &amp;amp; "&lt;br/&gt;")&lt;br /&gt;i = i + 1&lt;br /&gt;next&lt;br /&gt;response.write("&lt;/body&gt;&lt;/html&gt;")&lt;br /&gt;&lt;/script&gt;&lt;br /&gt;Output Tests on arrays:&lt;br /&gt;Element 1 = Mon&lt;br /&gt;Element 2 = Tue&lt;br /&gt;Element 3 = Wed&lt;br /&gt;Element 4 = Thu&lt;br /&gt;Element 5 = Fri&lt;br /&gt;Two days added:&lt;br /&gt;Element 1 = Mon&lt;br /&gt;Element 2 = Tue&lt;br /&gt;Element 3 = Wed&lt;br /&gt;Element 4 = Thu&lt;br /&gt;Element 5 = Fri&lt;br /&gt;Element 6 = Sat&lt;br /&gt;Element 7 = Sun&lt;br /&gt;Element 8 =&lt;br /&gt;Note that:&lt;br /&gt;Indexes of elements in arrays starts with 0.&lt;br /&gt;"redim" can only be used against arrays that are declared with dynamic size.&lt;br /&gt;"redim" can be used repeatedly.&lt;br /&gt;"redim preserve" can be used to preserve the elements that already exist.&lt;br /&gt;"for each ... next" statement revealed an extra element in the array. I am not sure why?&lt;br /&gt;"Collection" Class&lt;br /&gt;Collection: A class representing a collection of ordered elements. The stored elements can be referred by an index number or by the key associated with the elements. It offers the following methods and properties based on the documentation of Visual Basic .NET:&lt;br /&gt;"Item(ikey)": Property to return the element of the specified index or key. Item() is the default method of a collection object, so you can call this method without the method name, like object(ikey), instead of object.Item(ikey).&lt;br /&gt;"Count": Property to return the number of elements in the collection.&lt;br /&gt;"Add(element)": Method to add an element at the end of the collection without a key.&lt;br /&gt;"Add(element, key)": Method to add an element at the end of the collection with a key.&lt;br /&gt;"Remove(ikey)": Method to remove the element of the specified index or key.&lt;br /&gt;Unfortunately, I was not able to write an ASP page with a new collection object.&lt;br /&gt;write200x90("ASP");&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1544993908041623695-2299905048261172871?l=aspcodingguide.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aspcodingguide.blogspot.com/feeds/2299905048261172871/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1544993908041623695&amp;postID=2299905048261172871' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1544993908041623695/posts/default/2299905048261172871'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1544993908041623695/posts/default/2299905048261172871'/><link rel='alternate' type='text/html' href='http://aspcodingguide.blogspot.com/2007/02/visual-basic-script-vbscript.html' title='Visual Basic Script (VBScript)'/><author><name>Anjali</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1544993908041623695.post-4602839516844393934</id><published>2007-02-13T20:40:00.000-08:00</published><updated>2007-02-13T20:42:17.955-08:00</updated><title type='text'>Displaying an RSS Feed using ASP</title><content type='html'>&lt;p&gt;This tutorial will walk you through adding dynamic content from an RSS 2.0 data feed. RSS is a XML format for syndicating news content, web site updates, and blogs. Learn how to add this content to your web site with ASP.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;RSS 2.0 Format&lt;/strong&gt;&lt;br /&gt;The RSS 2.0 is a very simple XML format. In the RSS feed, the &lt;item&gt; tag will repeat for news item. The following is a very simple example of an RSS feed. See the &lt;a href="http://www.codebeach.com/tutorials/displaying-rss-feeds-using-asp.asp#Resources"&gt;Resources&lt;/a&gt; below for complete RSS 2.0 specification.&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;span style="font-family:Courier New, Courier, mono;font-size:85%;"&gt;&lt;rss version="2.0"&gt;&lt;br /&gt;     &lt;channel&gt;&lt;br /&gt;          &lt;&gt;&lt;em&gt;channel title&lt;/em&gt;&lt;/ title&gt;&lt;br /&gt;          &lt;link&gt;&lt;em&gt;link to channel&lt;/em&gt;&lt;/link&gt;&lt;br /&gt;          &lt;description&gt;&lt;em&gt;description&lt;/em&gt;&lt;/description&gt;&lt;br /&gt;          &lt;language&gt;en-us&lt;/language&gt;&lt;br /&gt;&lt;br /&gt;          &lt;item&gt;&lt;br /&gt;               &lt;title&gt;&lt;em&gt;item title&lt;/em&gt;&lt;/title&gt;&lt;br /&gt;               &lt;link&gt;&lt;em&gt;link url&lt;/em&gt;&lt;/link&gt;&lt;br /&gt;               &lt;guid&gt;&lt;em&gt;unique id&lt;/em&gt;&lt;/guid&gt;&lt;br /&gt;               &lt;description&gt;&lt;em&gt;item description&lt;/em&gt;&lt;/description&gt;&lt;br /&gt;          &lt;/item&gt;&lt;br /&gt;     &lt;/channel&gt;&lt;br /&gt;&lt;/rss&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="font-family:Arial, Helvetica, sans-serif;font-size:85%;"&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;span style="font-family:Arial, Helvetica, sans-serif;font-size:85%;"&gt;&lt;p&gt;&lt;strong&gt;Reading the RSS Feed&lt;/strong&gt;&lt;br /&gt;To read the RSS feed, the &lt;span style="font-family:Courier New, Courier, mono;font-size:85%;"&gt;MSXML2.DOMDocument&lt;/span&gt;&lt;span style="font-family:Arial, Helvetica, sans-serif;font-size:85%;"&gt; object is used to read and parse the XML. This object allows for the XML DOM (Document Object Model) to be easily accessed.&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;span style="font-family:Arial, Helvetica, sans-serif;font-size:85%;"&gt;&lt;p&gt;The following example read an RSS feed into the XML DOM object:&lt;/p&gt;&lt;/span&gt;&lt;blockquote&gt;&lt;pre&gt;&lt;span style="font-family:Fixedsys;font-size:100%;"&gt;&lt;span style="font-family:Courier New, Courier, mono;font-size:85%;color:#0000ff;"&gt;Set &lt;/span&gt;&lt;span style="font-family:Courier New, Courier, mono;font-size:85%;"&gt;xmlDOM &lt;span style="color:#000080;"&gt;= &lt;/span&gt;Server&lt;span style="color:#000080;"&gt;.&lt;/span&gt;CreateObject&lt;span style="color:#000080;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Courier New, Courier, mono;font-size:85%;color:#800000;"&gt;"MSXML2.DOMDocument"&lt;/span&gt;&lt;span style="font-family:Courier New, Courier, mono;font-size:85%;color:#000080;"&gt;)&lt;/span&gt;&lt;span style="font-family:Courier New, Courier, mono;font-size:85%;"&gt;xmlDOM&lt;span style="color:#000080;"&gt;.&lt;/span&gt;async &lt;span style="color:#000080;"&gt;= &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Courier New, Courier, mono;font-size:85%;color:#0000ff;"&gt;False&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Courier New, Courier, mono;font-size:85%;"&gt;xmlDOM&lt;span style="color:#000080;"&gt;.&lt;/span&gt;setProperty &lt;span style="color:#800000;"&gt;"ServerHTTPRequest"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Courier New, Courier, mono;font-size:85%;color:#000080;"&gt;, &lt;/span&gt;&lt;span style="font-family:Courier New, Courier, mono;font-size:85%;color:#0000ff;"&gt;True&lt;/span&gt;&lt;span style="font-family:Courier New, Courier, mono;font-size:85%;"&gt;xmlDOM&lt;span style="color:#000080;"&gt;.&lt;/span&gt;Load&lt;span style="color:#000080;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Courier New, Courier, mono;font-size:85%;color:#800000;"&gt;"http://www.codebeach.com/rss-it-jobs.asp"&lt;/span&gt;&lt;span style="font-family:Courier New, Courier, mono;font-size:85%;color:#000080;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;span style="font-family:Arial, Helvetica, sans-serif;font-size:85%;"&gt;&lt;p&gt;&lt;strong&gt;Parse the news items&lt;/strong&gt;&lt;br /&gt;The information in the RSS feed that we are interested in is within the &lt;item&gt; tags. To start, all of the items are placed in a list by calling the getElementsByTagName() method. Once we have the list of items, we will iterate over the list and get the data for each item in the feed.&lt;/p&gt;&lt;/span&gt;&lt;blockquote&gt;&lt;pre&gt;&lt;span style="font-family:Courier New, Courier, mono;font-size:85%;"&gt;&lt;span style="color:#008000;"&gt;'Get all of the &lt;item&gt; tags in the feed&lt;/span&gt;&lt;span style="color:#0000ff;"&gt;Set &lt;/span&gt;itemList &lt;span style="color:#000080;"&gt;= &lt;/span&gt;xmlDOM&lt;span style="color:#000080;"&gt;.&lt;/span&gt;getElementsByTagName&lt;span style="color:#000080;"&gt;(&lt;/span&gt;&lt;span style="color:#800000;"&gt;"item"&lt;/span&gt;&lt;span style="color:#000080;"&gt;)&lt;br /&gt;&lt;/span&gt;strHTML &lt;span style="color:#000080;"&gt;= &lt;/span&gt;strHTML &lt;span style="color:#000080;"&gt;&amp; &lt;/span&gt;&lt;span style="color:#800000;"&gt;"&lt;ul&gt;"&lt;br /&gt;&lt;/span&gt;&lt;span style="color:#008000;"&gt;'Iterate over each item&lt;/span&gt;&lt;span style="color:#0000ff;"&gt;For Each &lt;/span&gt;item &lt;span style="color:#0000ff;"&gt;In &lt;/span&gt;itemList&lt;br /&gt;&lt;br /&gt;  &lt;span style="color:#008000;"&gt;'Parse the item children&lt;br /&gt;  &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;For each &lt;/span&gt;child &lt;span style="color:#0000ff;"&gt;in &lt;/span&gt;item&lt;span style="color:#000080;"&gt;.&lt;/span&gt;childNodes&lt;br /&gt;    &lt;span style="color:#0000ff;"&gt;Select case &lt;/span&gt;lcase&lt;span style="color:#000080;"&gt;(&lt;/span&gt;child&lt;span style="color:#000080;"&gt;.&lt;/span&gt;nodeName&lt;span style="color:#000080;"&gt;)&lt;br /&gt;        &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;case &lt;/span&gt;&lt;span style="color:#800000;"&gt;"title"&lt;br /&gt;          &lt;/span&gt;title &lt;span style="color:#000080;"&gt;= &lt;/span&gt;child&lt;span style="color:#000080;"&gt;.&lt;/span&gt;text&lt;br /&gt;        &lt;span style="color:#0000ff;"&gt;case &lt;/span&gt;&lt;span style="color:#800000;"&gt;"link"&lt;br /&gt;          &lt;/span&gt;link &lt;span style="color:#000080;"&gt;= &lt;/span&gt;child&lt;span style="color:#000080;"&gt;.&lt;/span&gt;text&lt;br /&gt;        &lt;span style="color:#0000ff;"&gt;case &lt;/span&gt;&lt;span style="color:#800000;"&gt;"description"&lt;br /&gt;          &lt;/span&gt;description &lt;span style="color:#000080;"&gt;= &lt;/span&gt;child&lt;span style="color:#000080;"&gt;.&lt;/span&gt;text&lt;br /&gt;    &lt;span style="color:#0000ff;"&gt;End Select&lt;br /&gt;  Next&lt;br /&gt;&lt;br /&gt;  &lt;/span&gt;&lt;span style="color:#008000;"&gt;'Build the HTML for each bullet item&lt;br /&gt;  &lt;/span&gt;strHTML &lt;span style="color:#000080;"&gt;= &lt;/span&gt;strHTML &lt;span style="color:#000080;"&gt;&amp;amp; &lt;/span&gt;&lt;span style="color:#800000;"&gt;"&lt;li&gt;"&lt;br /&gt;  &lt;/span&gt;strHTML &lt;span style="color:#000080;"&gt;= &lt;/span&gt;strHTML &lt;span style="color:#000080;"&gt;&amp; &lt;/span&gt;&lt;span style="color:#800000;"&gt;"&lt;a href="'"&gt;&lt;span style="color:#000080;"&gt;&amp;amp; &lt;/span&gt;Server&lt;span style="color:#000080;"&gt;.&lt;/span&gt;HTMLEncode&lt;span style="color:#000080;"&gt;(&lt;/span&gt;link&lt;span style="color:#000080;"&gt;) &amp; &lt;/span&gt;&lt;span style="color:#800000;"&gt;"'&gt;"&lt;br /&gt;  &lt;/span&gt;strHTML &lt;span style="color:#000080;"&gt;= &lt;/span&gt;strHTML &lt;span style="color:#000080;"&gt;&amp;amp; &lt;/span&gt;Server&lt;span style="color:#000080;"&gt;.&lt;/span&gt;HTMLEncode&lt;span style="color:#000080;"&gt;(&lt;/span&gt;title&lt;span style="color:#000080;"&gt;)&lt;br /&gt;  &lt;/span&gt;strHTML &lt;span style="color:#000080;"&gt;= &lt;/span&gt;strHTML &lt;span style="color:#000080;"&gt;&amp; &lt;/span&gt;&lt;span style="color:#800000;"&gt;"&lt;/a&gt;"&lt;br /&gt;  &lt;/span&gt;strHTML &lt;span style="color:#000080;"&gt;= &lt;/span&gt;strHTML &lt;span style="color:#000080;"&gt;&amp;amp; &lt;/span&gt;&lt;span style="color:#800000;"&gt;"&lt;br /&gt;"&lt;br /&gt;  &lt;/span&gt;strHTML &lt;span style="color:#000080;"&gt;= &lt;/span&gt;strHTML &lt;span style="color:#000080;"&gt;&amp; &lt;/span&gt;description&lt;br /&gt;  strHTML &lt;span style="color:#000080;"&gt;= &lt;/span&gt;strHTML &lt;span style="color:#000080;"&gt;&amp;amp; &lt;/span&gt;&lt;span style="color:#800000;"&gt;"&lt;br /&gt; "&lt;br /&gt;  &lt;/span&gt;strHTML &lt;span style="color:#000080;"&gt;= &lt;/span&gt;strHTML &lt;span style="color:#000080;"&gt;&amp; &lt;/span&gt;&lt;span style="color:#800000;"&gt;"&lt;/li&gt;"&lt;/span&gt;&lt;span style="color:#0000ff;"&gt;Next&lt;br /&gt;&lt;/span&gt;strHTML &lt;span style="color:#000080;"&gt;= &lt;/span&gt;strHTML &lt;span style="color:#000080;"&gt;&amp;amp; &lt;/span&gt;&lt;span style="color:#800000;"&gt;"&lt;/ul&gt;"&lt;br /&gt;&lt;/span&gt;&lt;span style="color:#0000ff;"&gt;Set &lt;/span&gt;xmlDOM &lt;span style="color:#000080;"&gt;= &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;Nothing&lt;br /&gt;Set &lt;/span&gt;itemList &lt;span style="color:#000080;"&gt;= &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;Nothing&lt;br /&gt;&lt;/span&gt;Response&lt;span style="color:#000080;"&gt;.&lt;/span&gt;Write&lt;span style="color:#000080;"&gt;(&lt;/span&gt;&lt;span style="font-family:Courier New, Courier, mono;font-size:85%;"&gt;strHTML&lt;/span&gt;&lt;span style="color:#000080;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;span style="font-family:Arial, Helvetica, sans-serif;font-size:85%;"&gt;&lt;strong&gt;Final Version&lt;/strong&gt;&lt;br /&gt;Below is the complete version of the example to read the RSS 2.0 feed. The final version will also cache the HTML content built on the RSS feed. This is so it won't get the RSS feed everytime the web page is loaded. By caching the resulting HTML, it will improve the page performance and it won't overload the server that you are requesting the feed from. To view more information on caching, you may want to read the tutorial &lt;a href="http://www.codebeach.com/tutorials/caching-data-in-asp.asp?mfr=true"&gt;Caching Data in ASP&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;pre&gt;&lt;span style="font-family:Courier New, Courier, mono;font-size:85%;"&gt;&lt;span style="color:#8000ff;"&gt;&lt;%&lt;/span&gt;@ Language&lt;span style="color:#000080;"&gt;=&lt;/span&gt;&lt;span style="color:#800000;"&gt;"VBScript" &lt;/span&gt;&lt;span style="color:#8000ff;"&gt;%&gt;&lt;/span&gt;&lt;span style="color:#000080;"&gt;&lt;&lt;/span&gt;&lt;span style="color:#0000ff;"&gt;html&lt;/span&gt;&lt;span style="color:#000080;"&gt;&gt;&lt;br /&gt;&lt;&lt;/span&gt;&lt;span style="color:#0000ff;"&gt;head&lt;/span&gt;&lt;span style="color:#000080;"&gt;&gt;&lt;br /&gt;&lt;&lt;/span&gt;&lt;span style="color:#0000ff;"&gt;title&lt;/span&gt;&lt;span style="color:#000080;"&gt;&gt;&lt;/span&gt;RSS Reader&lt;span style="color:#000080;"&gt;&lt;&lt;/span&gt;&lt;span style="color:#0000ff;"&gt;/title&lt;/span&gt;&lt;span style="color:#000080;"&gt;&gt;&lt;br /&gt;&lt;&lt;/span&gt;&lt;span style="color:#0000ff;"&gt;/head&lt;/span&gt;&lt;span style="color:#000080;"&gt;&gt;&lt;br /&gt;&lt;&lt;/span&gt;&lt;span style="color:#0000ff;"&gt;body&lt;/span&gt;&lt;span style="color:#000080;"&gt;&gt;&lt;/span&gt;&lt;span style="color:#8000ff;"&gt;&lt;%&lt;/span&gt;&lt;span style="color:#0000ff;"&gt;If &lt;/span&gt;DateDiff&lt;span style="color:#000080;"&gt;(&lt;/span&gt;&lt;span style="color:#800000;"&gt;"h"&lt;/span&gt;&lt;span style="color:#000080;"&gt;, &lt;/span&gt;Application&lt;span style="color:#000080;"&gt;(&lt;/span&gt;&lt;span style="color:#800000;"&gt;"rss-html-time"&lt;/span&gt;&lt;span style="color:#000080;"&gt;), &lt;/span&gt;Now&lt;span style="color:#000080;"&gt;()) &gt;= &lt;/span&gt;&lt;span style="color:#800080;"&gt;2 &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;then&lt;br /&gt;&lt;br /&gt;  Set &lt;/span&gt;xmlDOM &lt;span style="color:#000080;"&gt;= &lt;/span&gt;Server&lt;span style="color:#000080;"&gt;.&lt;/span&gt;CreateObject&lt;span style="color:#000080;"&gt;(&lt;/span&gt;&lt;span style="color:#800000;"&gt;"MSXML2.DOMDocument"&lt;/span&gt;&lt;span style="color:#000080;"&gt;)&lt;br /&gt;  &lt;/span&gt;xmlDOM&lt;span style="color:#000080;"&gt;.&lt;/span&gt;async &lt;span style="color:#000080;"&gt;= &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;False&lt;br /&gt;&lt;br /&gt;  &lt;/span&gt;xmlDOM&lt;span style="color:#000080;"&gt;.&lt;/span&gt;setProperty &lt;span style="color:#800000;"&gt;"ServerHTTPRequest"&lt;/span&gt;&lt;span style="color:#000080;"&gt;, &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;True&lt;br /&gt;  &lt;/span&gt;xmlDOM&lt;span style="color:#000080;"&gt;.&lt;/span&gt;Load&lt;span style="color:#000080;"&gt;(&lt;/span&gt;&lt;span style="color:#800000;"&gt;"http://www.codebeach.com/rss-it-jobs.asp"&lt;/span&gt;&lt;span style="color:#000080;"&gt;)&lt;br /&gt;&lt;br /&gt;  &lt;/span&gt;&lt;span style="color:#008000;"&gt;'Get all of the &lt;item&gt; tags in the feed&lt;br /&gt;  &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;Set &lt;/span&gt;itemList &lt;span style="color:#000080;"&gt;= &lt;/span&gt;xmlDOM&lt;span style="color:#000080;"&gt;.&lt;/span&gt;getElementsByTagName&lt;span style="color:#000080;"&gt;(&lt;/span&gt;&lt;span style="color:#800000;"&gt;"item"&lt;/span&gt;&lt;span style="color:#000080;"&gt;)&lt;br /&gt;&lt;br /&gt;  &lt;/span&gt;strHTML &lt;span style="color:#000080;"&gt;= &lt;/span&gt;strHTML &lt;span style="color:#000080;"&gt;&amp; &lt;/span&gt;&lt;span style="color:#800000;"&gt;"&lt;ul&gt;"&lt;br /&gt;&lt;br /&gt;  &lt;/span&gt;&lt;span style="color:#008000;"&gt;'Iterate over each item&lt;br /&gt;  &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;For Each &lt;/span&gt;item &lt;span style="color:#0000ff;"&gt;In &lt;/span&gt;itemList&lt;br /&gt;&lt;br /&gt;    &lt;span style="color:#008000;"&gt;'Parse the item children&lt;br /&gt;    &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;For each &lt;/span&gt;child &lt;span style="color:#0000ff;"&gt;in &lt;/span&gt;item&lt;span style="color:#000080;"&gt;.&lt;/span&gt;childNodes&lt;br /&gt;      &lt;span style="color:#0000ff;"&gt;Select case &lt;/span&gt;lcase&lt;span style="color:#000080;"&gt;(&lt;/span&gt;child&lt;span style="color:#000080;"&gt;.&lt;/span&gt;nodeName&lt;span style="color:#000080;"&gt;)&lt;br /&gt;        &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;case &lt;/span&gt;&lt;span style="color:#800000;"&gt;"title"&lt;br /&gt;          &lt;/span&gt;title &lt;span style="color:#000080;"&gt;= &lt;/span&gt;child&lt;span style="color:#000080;"&gt;.&lt;/span&gt;text&lt;br /&gt;        &lt;span style="color:#0000ff;"&gt;case &lt;/span&gt;&lt;span style="color:#800000;"&gt;"link"&lt;br /&gt;          &lt;/span&gt;link &lt;span style="color:#000080;"&gt;= &lt;/span&gt;child&lt;span style="color:#000080;"&gt;.&lt;/span&gt;text&lt;br /&gt;        &lt;span style="color:#0000ff;"&gt;case &lt;/span&gt;&lt;span style="color:#800000;"&gt;"description"&lt;br /&gt;          &lt;/span&gt;description &lt;span style="color:#000080;"&gt;= &lt;/span&gt;child&lt;span style="color:#000080;"&gt;.&lt;/span&gt;text&lt;br /&gt;      &lt;span style="color:#0000ff;"&gt;End Select&lt;br /&gt;    Next&lt;br /&gt;&lt;br /&gt;    &lt;/span&gt;&lt;span style="color:#008000;"&gt;'Build the HTML for each bullet item&lt;br /&gt;    &lt;/span&gt;strHTML &lt;span style="color:#000080;"&gt;= &lt;/span&gt;strHTML &lt;span style="color:#000080;"&gt;&amp;amp; &lt;/span&gt;&lt;span style="color:#800000;"&gt;"&lt;li&gt;"&lt;br /&gt;    &lt;/span&gt;strHTML &lt;span style="color:#000080;"&gt;= &lt;/span&gt;strHTML &lt;span style="color:#000080;"&gt;&amp; &lt;/span&gt;&lt;span style="color:#800000;"&gt;"&lt;a href="'"&gt;&lt;span style="color:#000080;"&gt;&amp;amp; &lt;/span&gt;Server&lt;span style="color:#000080;"&gt;.&lt;/span&gt;HTMLEncode&lt;span style="color:#000080;"&gt;(&lt;/span&gt;link&lt;span style="color:#000080;"&gt;) &amp; &lt;/span&gt;&lt;span style="color:#800000;"&gt;"'&gt;"&lt;br /&gt;    &lt;/span&gt;strHTML &lt;span style="color:#000080;"&gt;= &lt;/span&gt;strHTML &lt;span style="color:#000080;"&gt;&amp;amp; &lt;/span&gt;Server&lt;span style="color:#000080;"&gt;.&lt;/span&gt;HTMLEncode&lt;span style="color:#000080;"&gt;(&lt;/span&gt;title&lt;span style="color:#000080;"&gt;)&lt;/span&gt;strHTML &lt;span style="color:#000080;"&gt;= &lt;/span&gt;strHTML &lt;span style="color:#000080;"&gt;&amp; &lt;/span&gt;&lt;span style="color:#800000;"&gt;"&lt;/a&gt;"&lt;br /&gt;    &lt;/span&gt;strHTML &lt;span style="color:#000080;"&gt;= &lt;/span&gt;strHTML &lt;span style="color:#000080;"&gt;&amp;amp; &lt;/span&gt;&lt;span style="color:#800000;"&gt;"&lt;br /&gt;"&lt;br /&gt;    &lt;/span&gt;strHTML &lt;span style="color:#000080;"&gt;= &lt;/span&gt;strHTML &lt;span style="color:#000080;"&gt;&amp; &lt;/span&gt;description&lt;br /&gt;    strHTML &lt;span style="color:#000080;"&gt;= &lt;/span&gt;strHTML &lt;span style="color:#000080;"&gt;&amp;amp; &lt;/span&gt;&lt;span style="color:#800000;"&gt;"&lt;br /&gt; "&lt;br /&gt;    &lt;/span&gt;strHTML &lt;span style="color:#000080;"&gt;= &lt;/span&gt;strHTML &lt;span style="color:#000080;"&gt;&amp; &lt;/span&gt;&lt;span style="color:#800000;"&gt;"&lt;/li&gt;"&lt;br /&gt;  &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;Next&lt;br /&gt;  &lt;/span&gt;strHTML &lt;span style="color:#000080;"&gt;= &lt;/span&gt;strHTML &lt;span style="color:#000080;"&gt;&amp;amp; &lt;/span&gt;&lt;span style="color:#800000;"&gt;"&lt;/ul&gt;"&lt;br /&gt;&lt;br /&gt;  &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;Set &lt;/span&gt;xmlDOM &lt;span style="color:#000080;"&gt;= &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;Nothing&lt;br /&gt;  Set &lt;/span&gt;itemList &lt;span style="color:#000080;"&gt;= &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;Nothing&lt;br /&gt;&lt;br /&gt;  &lt;/span&gt;Application&lt;span style="color:#000080;"&gt;.&lt;/span&gt;Lock&lt;br /&gt;    Application&lt;span style="color:#000080;"&gt;(&lt;/span&gt;&lt;span style="color:#800000;"&gt;"rss-html"&lt;/span&gt;&lt;span style="color:#000080;"&gt;) = &lt;/span&gt;strHTML&lt;br /&gt;    Application&lt;span style="color:#000080;"&gt;(&lt;/span&gt;&lt;span style="color:#800000;"&gt;"rss-html-time"&lt;/span&gt;&lt;span style="color:#000080;"&gt;) = &lt;/span&gt;Now&lt;span style="color:#000080;"&gt;()&lt;br /&gt;  &lt;/span&gt;Application&lt;span style="color:#000080;"&gt;.&lt;/span&gt;UnLock&lt;span style="color:#0000ff;"&gt;End If&lt;br /&gt;&lt;/span&gt;Response&lt;span style="color:#000080;"&gt;.&lt;/span&gt;Write&lt;span style="color:#000080;"&gt;(&lt;/span&gt;Application&lt;span style="color:#000080;"&gt;(&lt;/span&gt;&lt;span style="color:#800000;"&gt;"rss-html"&lt;/span&gt;&lt;span style="color:#000080;"&gt;))&lt;/span&gt;&lt;span style="color:#8000ff;"&gt;%&gt;&lt;/span&gt;&lt;span style="color:#000080;"&gt;&lt;&lt;/span&gt;&lt;span style="color:#0000ff;"&gt;/body&lt;/span&gt;&lt;span style="color:#000080;"&gt;&gt;&lt;br /&gt;&lt;&lt;/span&gt;&lt;span style="color:#0000ff;"&gt;/html&lt;/span&gt;&lt;span style="color:#000080;"&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1544993908041623695-4602839516844393934?l=aspcodingguide.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aspcodingguide.blogspot.com/feeds/4602839516844393934/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1544993908041623695&amp;postID=4602839516844393934' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1544993908041623695/posts/default/4602839516844393934'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1544993908041623695/posts/default/4602839516844393934'/><link rel='alternate' type='text/html' href='http://aspcodingguide.blogspot.com/2007/02/displaying-rss-feed-using-asp.html' title='Displaying an RSS Feed using ASP'/><author><name>Anjali</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1544993908041623695.post-837834489227360214</id><published>2007-02-13T18:37:00.000-08:00</published><updated>2007-02-13T18:49:10.316-08:00</updated><title type='text'>cheching if user is online</title><content type='html'>&lt;%If Response.IsClientConnected=true thenResponse.Write(”The user is still connected!”)elseResponse.Write(”The user is not connected!”)end if%&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Explanation by Line&lt;br /&gt;1. Starts the ASP code block.&lt;br /&gt;2. Here we start an if statement that says if the user is connected then the statement is true and it goes to line three, otherwise it goes to line 5.&lt;br /&gt;3. It prints that the user is connected.&lt;br /&gt;4. The else statement says; if the initial if statement was false then execute line 5, otherwise skip over it.&lt;br /&gt;5. It prints that the user isnt connected if the if statement was false.&lt;br /&gt;6. This tag closes the if statement.&lt;br /&gt;7. This tag ends the ASP code block.&lt;br /&gt;&lt;br /&gt;Hoped this helped&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1544993908041623695-837834489227360214?l=aspcodingguide.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aspcodingguide.blogspot.com/feeds/837834489227360214/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1544993908041623695&amp;postID=837834489227360214' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1544993908041623695/posts/default/837834489227360214'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1544993908041623695/posts/default/837834489227360214'/><link rel='alternate' type='text/html' href='http://aspcodingguide.blogspot.com/2007/02/cheching-if-user-is-online.html' title='cheching if user is online'/><author><name>Anjali</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1544993908041623695.post-4716843782364907641</id><published>2007-02-13T07:26:00.000-08:00</published><updated>2007-02-13T07:25:31.742-08:00</updated><title type='text'>Converting all applicable characters to HTML entities</title><content type='html'>&lt;p align="justify"&gt;In this code sample we will converting all applicable characters to &lt;strong style="COLOR: black; BACKGROUND-COLOR: rgb(255,255,255)"&gt;HTML&lt;/strong&gt;&lt;span style="BACKGROUND-COLOR: rgb(255,255,255)"&gt; &lt;/span&gt;&lt;strong style="COLOR: black; BACKGROUND-COLOR: rgb(255,255,255)"&gt;entities&lt;/strong&gt; using htmlentities(). Using 'htmlentities' all characters which have &lt;strong style="COLOR: black; BACKGROUND-COLOR: rgb(255,255,102)"&gt;HTML&lt;/strong&gt; character entity equivalents are translated into these &lt;span style="COLOR: black; BACKGROUND-COLOR: rgb(255,255,255)"&gt;entities&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="COLOR: rgb(0,0,128); FONT-FAMILY: Comic Sans MS"&gt;Syntax&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="FONT-FAMILY: Courier New"&gt;string htmlentities ( string string [, int quote_style [, string charset]] )&lt;br /&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold; COLOR: rgb(0,0,128); FONT-FAMILY: Comic Sans MS"&gt;Example :&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="COLOR: rgb(51,51,153);font-size:100%;" &gt;&lt;span style="COLOR: rgb(255,0,0);font-size:85%;" &gt;&lt;span style="FONT-FAMILY: Comic Sans MS"&gt;&lt;?php&lt;/span&gt;&lt;/span&gt;&lt;br style="FONT-FAMILY: Comic Sans MS"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="html"&gt;&lt;span style="COLOR: rgb(51,51,153);font-size:100%;" &gt;&lt;br /&gt;&lt;span class="keyword" style="FONT-FAMILY: Comic Sans MS"&gt;&lt;/span&gt;&lt;span class="default" style="FONT-FAMILY: Comic Sans MS"&gt;$strMessag = "You're my best friend.";&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&lt;span class="html"&gt;&lt;span style="COLOR: rgb(51,51,153);font-size:100%;" &gt;&lt;span class="keyword" style="FONT-FAMILY: Comic Sans MS"&gt;&lt;br /&gt;echo &lt;/span&gt;&lt;span class="default" style="FONT-FAMILY: Comic Sans MS; BACKGROUND-COLOR: rgb(255,255,0)"&gt;htmlentities&lt;/span&gt;&lt;span class="keyword" style="FONT-FAMILY: Comic Sans MS"&gt;(&lt;/span&gt;&lt;span class="default" style="FONT-FAMILY: Comic Sans MS"&gt;$strMessage&lt;/span&gt;&lt;span class="keyword" style="FONT-FAMILY: Comic Sans MS"&gt;, &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;tt class="constant"&gt;&lt;strong&gt;ENT_COMPAT&lt;/strong&gt;&lt;/tt&gt;&lt;code&gt;&lt;span class="html"&gt;&lt;span style="COLOR: rgb(51,51,153);font-size:100%;" &gt;&lt;span class="keyword" style="FONT-FAMILY: Comic Sans MS"&gt;&lt;/span&gt;&lt;span class="default" style="FONT-FAMILY: Comic Sans MS"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="keyword"&gt;&lt;span style="COLOR: rgb(51,51,153);font-size:100%;" &gt;&lt;span style="FONT-FAMILY: Comic Sans MS"&gt;);&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;span class="html"&gt;&lt;span style="COLOR: rgb(51,51,153);font-size:100%;" &gt;&lt;span class="keyword" style="FONT-FAMILY: Comic Sans MS"&gt;echo &lt;/span&gt;&lt;span class="default" style="FONT-FAMILY: Comic Sans MS; BACKGROUND-COLOR: rgb(255,255,0)"&gt;htmlentities&lt;/span&gt;&lt;span class="keyword" style="FONT-FAMILY: Comic Sans MS"&gt;(&lt;/span&gt;&lt;span class="default" style="FONT-FAMILY: Comic Sans MS"&gt;$strMessage&lt;/span&gt;&lt;span class="keyword" style="FONT-FAMILY: Comic Sans MS"&gt;, &lt;/span&gt;&lt;span class="default" style="FONT-FAMILY: Comic Sans MS"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;tt class="constant"&gt;&lt;strong&gt;ENT_QUOTES&lt;/strong&gt;&lt;/tt&gt;&lt;code&gt;&lt;span class="html"&gt;&lt;span style="COLOR: rgb(51,51,153);font-size:100%;" &gt;&lt;span class="default" style="FONT-FAMILY: Comic Sans MS"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="keyword"&gt;&lt;span style="COLOR: rgb(51,51,153);font-size:100%;" &gt;&lt;span style="FONT-FAMILY: Comic Sans MS"&gt;);&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;span class="html"&gt;&lt;span style="COLOR: rgb(51,51,153);font-size:100%;" &gt;&lt;span class="keyword" style="FONT-FAMILY: Comic Sans MS"&gt;echo &lt;/span&gt;&lt;span class="default" style="FONT-FAMILY: Comic Sans MS; BACKGROUND-COLOR: rgb(255,255,0)"&gt;htmlentities&lt;/span&gt;&lt;span class="keyword" style="FONT-FAMILY: Comic Sans MS"&gt;(&lt;/span&gt;&lt;span class="default" style="FONT-FAMILY: Comic Sans MS"&gt;$strMessage&lt;/span&gt;&lt;span class="keyword" style="FONT-FAMILY: Comic Sans MS"&gt;, &lt;/span&gt;&lt;span class="default" style="FONT-FAMILY: Comic Sans MS"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;tt class="constant"&gt;&lt;strong&gt;ENT_NOQUOTES&lt;/strong&gt;&lt;/tt&gt;&lt;code&gt;&lt;span class="html"&gt;&lt;span style="COLOR: rgb(51,51,153);font-size:100%;" &gt;&lt;span class="default" style="FONT-FAMILY: Comic Sans MS"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="keyword"&gt;&lt;span style="COLOR: rgb(51,51,153);font-size:100%;" &gt;&lt;span style="FONT-FAMILY: Comic Sans MS"&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;br style="FONT-FAMILY: Comic Sans MS"&gt;&lt;code&gt;&lt;span class="html"&gt;&lt;span class="keyword"&gt;&lt;span style="COLOR: rgb(51,51,153);font-size:100%;" &gt;&lt;span style="FONT-FAMILY: Comic Sans MS"&gt;&lt;/span&gt;&lt;br style="COLOR: rgb(255,0,0); FONT-FAMILY: Comic Sans MS"&gt;&lt;span style="COLOR: rgb(255,0,0); FONT-FAMILY: Comic Sans MS"&gt;?&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold;font-size:100%;" &gt;Available quote_style constants :&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size:85%;"&gt;ENT_COMPAT : Will convert double-quotes and leave single-quotes alone.&lt;br /&gt;ENT_QUOTES : Will convert both double and single quotes.&lt;br /&gt;ENT_NOQUOTES : Will leave both double and single quotes unconverted.&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold;font-size:100%;" &gt;Supported charsets :&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;ISO-8859-1    ISO8859-1     Western European, Latin-1&lt;br /&gt;ISO-8859-15    ISO8859-15    Western European, Latin-9. Adds the Euro sign, French and Finnish letters missing in Latin-1(ISO-8859-1).&lt;br /&gt;UTF-8         ASCII compatible multi-byte 8-bit Unicode.&lt;br /&gt;cp866    ibm866, 866    DOS-specific Cyrillic charset. This charset is supported in 4.3.2.&lt;br /&gt;cp1251    Windows-1251, win-1251, 1251    Windows-specific Cyrillic charset. This charset is supported in 4.3.2.&lt;br /&gt;cp1252    Windows-1252, 1252    Windows specific charset for Western European.&lt;br /&gt;KOI8-R    koi8-ru, koi8r    Russian. This charset is supported in 4.3.2.&lt;br /&gt;BIG5    950    Traditional Chinese, mainly used in Taiwan.&lt;br /&gt;GB2312    936    Simplified Chinese, national standard character set.&lt;br /&gt;BIG5-HKSCS         Big5 with Hong Kong extensions, Traditional Chinese.&lt;br /&gt;Shift_JIS    SJIS, 932    Japanese&lt;br /&gt;EUC-JP    EUCJP    Japanese&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1544993908041623695-4716843782364907641?l=aspcodingguide.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1544993908041623695/posts/default/4716843782364907641'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1544993908041623695/posts/default/4716843782364907641'/><link rel='alternate' type='text/html' href='http://aspcodingguide.blogspot.com/2007/02/converting-all-applicable-characters-to.html' title='Converting all applicable characters to HTML entities'/><author><name>Anjali</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-1544993908041623695.post-1080646859306400521</id><published>2007-02-13T07:23:00.000-08:00</published><updated>2007-02-13T07:22:08.912-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='word files online'/><category scheme='http://www.blogger.com/atom/ns#' term='asp tutorials'/><title type='text'>Creating Word Files Online</title><content type='html'>&lt;div align="justify"&gt;&lt;span style="font-family:arial;"&gt;ASP has the ability to dynamically output any kind of office application format. Before to start coding, The first thing we need to do is set correct file type. Becase the browser needs to know what to do with the file. Second step is to edit file name. You can use HTML and CSS to create styles in your word document.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Here is a comple source code :&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="COLOR: rgb(0,0,128); FONT-FAMILY: Comic Sans MS"&gt;&lt;%&lt;/span&gt;&lt;br style="COLOR: rgb(0,0,128); FONT-FAMILY: Comic Sans MS"&gt;&lt;br style="COLOR: rgb(0,0,128); FONT-FAMILY: Comic Sans MS"&gt;&lt;span style="COLOR: rgb(0,0,128); FONT-FAMILY: Comic Sans MS"&gt;    Response.ContentType = "application/msword"&lt;/span&gt;&lt;br style="COLOR: rgb(0,0,128); FONT-FAMILY: Comic Sans MS"&gt;&lt;br style="COLOR: rgb(0,0,128); FONT-FAMILY: Comic Sans MS"&gt;&lt;span style="COLOR: rgb(0,0,128); FONT-FAMILY: Comic Sans MS"&gt;    Response.AddHeader "Content-Disposition", "attachment;filename=NAME.doc"    &lt;/span&gt;&lt;br style="COLOR: rgb(0,0,128); FONT-FAMILY: Comic Sans MS"&gt;&lt;br style="COLOR: rgb(0,0,128); FONT-FAMILY: Comic Sans MS"&gt;&lt;span style="COLOR: rgb(0,0,128); FONT-FAMILY: Comic Sans MS"&gt;    response.Write("Dotnetindex.com : &lt;a href=""&gt;Visit Site&lt;/a&gt;&lt;br /&gt;" &amp; vbnewline)&lt;/span&gt;&lt;br style="COLOR: rgb(0,0,128); FONT-FAMILY: Comic Sans MS"&gt;&lt;br style="COLOR: rgb(0,0,128); FONT-FAMILY: Comic Sans MS"&gt;&lt;span style="COLOR: rgb(0,0,128); FONT-FAMILY: Comic Sans MS"&gt;    response.Write("&lt;h1&gt;We can use HTML codes for word documents&lt;/h1&gt;")&lt;/span&gt;&lt;br style="COLOR: rgb(0,0,128); FONT-FAMILY: Comic Sans MS"&gt;&lt;br style="COLOR: rgb(0,0,128); FONT-FAMILY: Comic Sans MS"&gt;&lt;span style="COLOR: rgb(0,0,128); FONT-FAMILY: Comic Sans MS"&gt;    response.Write ("&lt;div style=""&gt;CSS can be used tooo&lt;/span&gt;")&lt;/span&gt;&lt;br style="COLOR: rgb(0,0,128); FONT-FAMILY: Comic Sans MS"&gt;&lt;span style="COLOR: rgb(0,0,128); FONT-FAMILY: Comic Sans MS"&gt;    &lt;/span&gt;&lt;br style="COLOR: rgb(0,0,128); FONT-FAMILY: Comic Sans MS"&gt;&lt;span style="COLOR: rgb(0,0,128); FONT-FAMILY: Comic Sans MS"&gt;%&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;%      Response.ContentType = "application/msword"      Response.AddHeader "Content-Disposition", "attachment;filename=NAME.doc"          response.Write("Dotnetindex.com : &lt;a href=""&gt;Visit Site&lt;/a&gt;&lt;br /&gt;" &amp; vbnewline)&lt;br /&gt;&lt;br /&gt;    response.Write("&lt;h1&gt;We can use HTML codes for word documents&lt;/h1&gt;")&lt;br /&gt;&lt;br /&gt;    response.Write ("&lt;div style=""&gt;CSS can be used tooo&lt;/span&gt;")&lt;br /&gt;   &lt;br /&gt;%&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1544993908041623695-1080646859306400521?l=aspcodingguide.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aspcodingguide.blogspot.com/feeds/1080646859306400521/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1544993908041623695&amp;postID=1080646859306400521' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1544993908041623695/posts/default/1080646859306400521'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1544993908041623695/posts/default/1080646859306400521'/><link rel='alternate' type='text/html' href='http://aspcodingguide.blogspot.com/2007/02/creating-word-files-online.html' title='Creating Word Files Online'/><author><name>Anjali</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
