techpreparation-homepage

Home  Interview Questions  Aptitude Questions  Tutorials  Placement Papers  Search  Resume Guide  Soft Skills  Video  Forum  Blog


Technical Interview Questions

Visual Basic Interview Question
.NET Web Interview Questions
.NET Interview Questions
C# Interview Questions
                              .........More

Source Codes
Asp .NET Source Codes
Asp VB Script Source Codes
                              .........More

Soft Skills
Communication Skills
Leadership Skills
                              .........More

Subscribe to our Newsletters
Name:
Email:

 

 

  

Asp/VB Script Source Codes

ASP Adrotator

<P align=left><B>Step 1 :</B></P>
<P align=left>Save the following as adrotator.txt , create 3 gifs 480 by 60 called 02 , 03 and 04 , here are some examples I used before</P>
<P align=left><FONT size=-1>***<BR>REDIRECT adRedirect.asp<BR>WIDTH 480<BR>HEIGHT 60<BR>BORDER 0<BR>*<BR>http://asp.myscripting.com/02.gif<BR>http://asp.myscripting.com<BR>Visit asp.myscripting.com<BR>20<BR>http://asp.myscripting.com/03.gif<BR>http://vbscript.myscripting.com<BR>visit VBScript site now<BR>40<BR>http://asp.myscripting.com/04.gif<BR>http://javascript.myscripting.com<BR>Javascript resource site<BR>40<BR>***</FONT></P>
<P align=left><B>Step 2 :</B></P>
<P align=left>Create your redirect file , in this case adRedirect.asp and enter the following</P>
<P align=left><FONT size=-1>&lt;%<BR>Response.Redirect(Request.QueryString("url"))<BR>%&gt;</FONT></P>
<P align=left><B>Step 3 :</B></P>
<P align=left>Put this code on the pages you wish the banner to be displayed</P>
<P align=left><FONT size=-1>&lt;%<BR>Dim objAdRotator<BR>'create an instance of adrotator<BR>Set objAdRotator = Server.CreateObject("MSWC.AdRotator")<BR>'get the ad from the file<BR>Response.Write objAdRotator.GetAdvertisement("adrotator.txt")<BR>'destroy the object<BR>Set objAdRotator = Nothing<BR>%&gt;</FONT></P>


<<<----- Return to Asp/VB Script Source Code Questions Page.


Have a Question ? post your questions here. It will be answered as soon as possible.

Check Microsoft .Net Interview Questions for more Microsoft .Net Interview Questions with Answers.

Check .Net Database Interview Questions for more .Net Database Interview Questions with answers

Check Job Interview Questions for more Interview Questions with Answers