ASP classic sticky footer page link

When adding a footer page on PHP I simply add this code at the bottom of the PHP page and all is set !

<?php
require_once("footer.php"); // footer
?>

I need some similar code for classic ASP, so that I can add a footer at the bottom of my pages.  Any ideas ?
LVL 1
AleksAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Big MontySenior Web Developer / CEO of ExchangeTree.org Commented:
I like this from bootstrap as it works great on both desktop and mobile

http://getbootstrap.com/2.3.2/examples/sticky-footer.html

If you don't like that one I've used this one before as well and it works well

http://www.cssstickyfooter.com/
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
The classic asp equivalent of require or include from php is include file or include virtual http://www.w3schools.com/asp/asp_incfiles.asp

<%
' assume footer is top level
  <!--#include virtual="/footer.asp"-->
%> 

Open in new window


Unlike php, you don't specify an include path anywhere.  You are simply using the virtual path or full path/mappath http://www.w3schools.com/asp/met_mappath.asp.  It is safest to stick with the virtual path though as that should always be accessible and not needing special permissions.  If you find you can use a subfolder without adding a slash in front, that means you have parent paths turned on which is a security risk.  http://support.microsoft.com/en-us/kb/332117
  <!--#include file="includes/footer.asp"-->

Open in new window


Your question is asking about a sticky footer but your code is showing server side code and that is why I answered this way.  If you are only concerned with front end code, that will be a function of html, css and javascript/jquery.  If you have specific questions on the front end, then post your rendered html to look at.

I  hope this helps.
0
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
For reference, the bootstrap sample you have been shown above is old.  There is a new sample at http://getbootstrap.com/examples/sticky-footer/ and you don't even need bootstrap css or js.  Their sample simply uses css

/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}
body {
  /* Margin bottom by footer height */
  margin-bottom: 60px;
}
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  /* Set the fixed height of the footer here */
  height: 60px;
  background-color: #f5f5f5;
}

Open in new window


As proof  http://jsbin.com/retuto/1/edit?html,output
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>padas</title>
  <style>
    /* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}
body {
  /* Margin bottom by footer height */
  margin-bottom: 60px;
}
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  /* Set the fixed height of the footer here */
  height: 60px;
  background-color: red;
}

  </style>
</head>
<body>
  <div class="footer">footer</div>
</body>
</html>

Open in new window

0
AleksAuthor Commented:
Thanks to everyone. I will check on the results tomorrow. :)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.