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 tochange 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 theiFrame will point to grapevine.asp. If ID=tut, then the iFrame willpoint to tutorials.asp, and so on:
<%Dim pageIDDim iFramepageID = request("ID")If pageID = "vine" TheniFrame = "grapevine.asp"ElseIF pageID = "tut" TheniFrame = "tutorials.asp"ElseIf pageID = "contact" TheniFrame = "contact.asp"ElseiFrame = "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 /> |
Related Articles
- Try 'Linking' With RealityI have been using the services of a wonderful facility, which has taken almost all of the work out of my Linking Program (if you have a website that relies on Search Engine traffic, I really do hope you have one!). The facility is named Linkmarket.com. Dont worry, I am not affiliated in an...
- Top Five Reasons Why Reciprocal Link Requests are Turned Down by WebmastersReciprocal linking is one of the accepted methods adopted by webmasters to build traffic, increase link popularity and improve page rank.
- How To Manage Your Reciprocal Links DirectoryReciprocal linking is an inevitable part of the life of any webmaster. Incoming links are valuable because the rankings in Google depend in large part on the amount and quality of these links, and because incoming links provide a steady stream of traffic.
- Domain Goldrush Part 2 - Securing The Best NamesIn the 6.30 AM Domain Gold-Rush article I set about trying to explain the buzz currently surrounding the expired domains business. This follow-up article will attempt to answer some of the most commonly asked questions that resulted from the first article...
- Professional SEO Companies: Do They Really Help Your Business?Boosting traffic in search engines does not only make your business website famous. It also advertises the business and helps you save on extra expenses.
- How Internet Domain Names and DNS Relate With Each OtherIt is a complex world, millions of domain names and thousands of internet users!
- When Does an Expired Domain Name Become Available?In order to know exactly when an expiring domain name will become available for re-registration by a new owner, you must understand the
- How To Verify And Monitor Your Search Engine Listing On Google.com?Being listed in search engines and ranked high on searches is the overall goal a webmaster is trying to achieve when dealing with search engines.
- Protect Your Domain NameDomain names can be registered in increments of 1, 2, 5 or 10 years. The domain remains yours AS LONG AS it is reregistered prior to its expiration date. If you let the registration lapse, someone else can quickly register it and make it their own.
- Page Cloaking and Some MoreWeb cloaking, a technique used to deliver different web pages to users and browsers, can seem very attractive. But is it really safe? Get an experts opinion.
