当前位置: 移动技术网 > IT编程>开发语言>.net > 一个免费的邮件列表源程序(二)

一个免费的邮件列表源程序(二)

2019年01月14日  | 移动技术网IT编程  | 我要评论
showsource.
<%@ language=javascript %>

<!--#include file = "include/setglobals.asp"-->

<%
// get the page to display from the url
var spage = "" + request.querystring ( "page" );

// make sure its a page we allow them to view!
switch ( spage )
{
case "wider":
case "com":
case "handle404":
case "categories":
case "categorypage":
case "columns":
case "resultspage":
case "date":
case "contact":
case "subscribe":
case "mailtolist":
   break;

default:
   response.redirect ( "naughtynaughty!" );
}

// output relevant meta tags
init( "asp source example" );

// output common top of page
header( <a href="work.asp">work</a> --> <a href=" + spage + .asp">" + spage + .asp"</a> --> source, 3 );

// output page content
content ( );

// output common bottom of page
footer ( );
%>

<% /* standard page elements */ %>
<!--#include file = "utils/init.asp"-->
<!--#include file = "utils/header.asp"-->
<!--#include file = "utils/footer.asp"-->
<!--#include file = "utils/showfile.asp"-->

<%
// ============================================
// the content of this page
// ============================================
function content ( )
{
   out ( <td width="20%">&nbsp;</td> );
   out ( <td width="60%"> );

      // create handle to filesystemobject
      var ofso = server.createobject ( scripting.filesystemobject );

      // each source file that we show source for could have a related
      // documentation file for us to display before and after the
      // source. for now, i use a generic header and footer file. the
      // true tells showfile to pass through any html to the browser.

      showfile ( ofso, generic.pre, true, false );

      switch ( spage )
      {
      case "categories":
      case "categorypage":
      case "columns":
         out ( <p><img src="/edu/uploadpic/2007-12/200712913283251.gif"">&nbsp;<a href="categories.zip">download</a> all the source for the category demonstration!<p> );
         break;
      }

      showsource ( ofso, spage + .asp, true );

      // show any extra utility file(s) too
      switch ( spage )
      {
      case "wider":

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网