Web Templates
Web Templates  
Photoshop Layouts  
Flash Templates  
Templates Resource - Web Templates
   
 
  Sign UpPassword
Templates Resource Services Support Specials Members View Cart
 
  Photoshop Tutorials
  HTML Tutorials
  ASP Tutorials
  CSS Tutorials
  Javascript Tutorials
  PHP Tutorials
  XML Tutorials
  Flash Tutorials
  Fireworks Tutorials
  3D Studio Max Tutorials
  Cinema 4d Tutorials
  Graphics
  Website Tools
  Web Templates
  About Templates Resource
  Affiliates Program
  TR Support
  Webmaster Resources
 Columbia Tech Support

WebDesignHelper.co.uk


 

Tutorials: ASP - Active Server Pages

Requests

Beginner

 

Dealing with Requests in ASP
This tutorial will teach you how to deal with requests in ASP. Requests are often seen in the form of http://www.mysite.com/page.asp?ID=x. THe ID=x is the request in the URL. This tutorial will show you how to change the location of an iFrame using requests in one file.

PART I - ASP
First, we will use name our identifier "ID". If ID=vine, then the iFrame will point to grapevine.asp. If ID=tut, then the iFrame will point to tutorials.asp, and so on:

<%
Dim pageID
Dim iFrame
pageID = request("ID")

If pageID = "vine" Then
iFrame = "grapevine.asp"
ElseIF pageID = "tut" Then
iFrame = "tutorials.asp"
ElseIf pageID = "contact" Then
iFrame = "contact.asp"
Else
iFrame = "home.asp"
End If
%>

PART II - HTML + IFRAME
Now all we need is an iframe to point to and a variable to insert:

<iframe src="<%=iFrame %>" width=200 height=200 />

And thats it! Frame change on request! (pun intended)

 

This tutorial is provided to you by Spoono

More Tutorials
 

Active Server Pages Tutorials

AIM Screennames Viewer
This tutorial will show you how to make a script to see who has seen your AOL Instant Messenger profile.

Intermediate

Alternating Row Colors
Learn the basics of creating wonderfully abstract objects.

Intermediate

Browser Redirect
Learn how to do a Browser Redirect using the power of ASP.

Beginner

Cookies
Learn how to use cookies in ASP.

Intermediate

Counter
Learn how to make a hit counter in ASP.

Beginner

Database Connection
Learn the different ways to connect to different databases.

Intermediate

Database Insert
Learn how to insert a row into a MS Access database.

Beginner

Displaying Database
Learn a quick and easy way to display information from a database.

Beginner

Form Mail via CDONTS
Learn how to send mail using ASP and CDONTS

Intermediate

Form Mail via CDOSYS
Learn how to send mail using ASP and CDOSYS.

Intermediate

Number of Users Online
Use this code to display the number of users browsing.

Intermediate

Requests
Learn how to make use of requests.

Beginner

Sessions
Learn an alternative and effective solution to cookies in ASP using sessions.

Intermediate

String Functions
Learn the basic string functions available in ASP using VBScript

Beginner

XML Parsing
Use this nifty script to parse XML into HTML

Intermediate

Get help using .ASP here!

Get Free ASP Scripts here!

More Tutorials

Featured Web Templates

Web Template Preview 92314201

User Level:

Intermediate

Category:

Flash


Web Template Preview 92314301

User Level:

Intermediate

Category:

Flash



Web Template Preview 92314401

User Level:

Intermediate

Category:

Flash


Web Template Preview 92314501

User Level:

Intermediate

Category:

Flash


Web Template Preview 92314601

User Level:

Intermediate

Category:

Flash


Web Template Preview 92314701

User Level:

Intermediate

Category:

Flash


Web Template Preview 92314801

User Level:

Intermediate

Category:

Flash


Web Template Preview 92314901

User Level:

Intermediate

Category:

Flash


Web Template Preview 92315001

User Level:

Intermediate

Category:

Flash



Web Template Preview 92315101

User Level:

Intermediate

Category:

Flash

 

 

 

Templates Resource FAQ Services Terms of Use Site Map Support View Cart

© Copyright 2003-2008 Templates Resource