Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 362 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
362
Dung lượng
1,97 MB
Nội dung
DesigningActiveServer Pages
[...]... http://www.useit.com/ • Server- side includes form just one facet of server- side directives To learn more about the other server- side directives (which, unfortunately, can’t be used through an ASP page), be sure to check out, “Using Server- Side Directives” at http://www.4guysfromrolla.com/webtech/08259 9-1 .shtml • For more information on using Server. Execute and Server. Transfer to alter flow control between ASP pages, ... block, using either the delimiters or the and delimiters ASP pages are not the only type of file that can execute server- side includes Later in this chapter, in the section “File types that can perform server- side includes,” we’ll look at using server- side includes in non-ASP pages To revisit our sales tax example, if we created a file to... extensions to be processed by asp.dll asp.dll is capable of performing only one type of server- side directive: server- side includes ssinc.dll, on the other hand, can perform all server- side directives but cannot process ASP code For more information on all of the server- side directives, be sure to refer to the article “Using Server- Side Directives” listed at the end of this chapter in the “Further Reading” section... modularize your source code and encapsulate complex tasks These include using server- side includes, taking advantage of VBScript classes, and making calls to the Server. Execute and Server. Transfer methods Server- Side Includes One of the most common approaches to creating modularized code is to use server- side includes (SSI) Server- side includes are used to import ASP code into an ASP page The benefit of... ssinc.dll is an ISAPI DLL that allows server- side directives to be executed A serverside include is one facet of server- side directives See the “Further Reading” section for an article that discusses server- side directives in more detail In IIS 5.0, files with the extensions shtml, shtm, and stm are, by default, mapped to ssinc dll, and therefore can perform server- side includes Of course, files with... from small, static sites into rich, data-driven, complex applications Several technologies, including dynamic scripting technologies, like Active ServerPages and Perl, have aided along the way, making the Web a more viable application medium This book focuses on using Active ServerPages to quickly and easily build powerful and dynamic web sites Although the server- side tools for building web sites have... server- side include would suffice, I would recommend sticking with the serverside include Using Server. Transfer Server. Transfer can also be used to improve ASP script design, although it cannot serve as a modularization technique like Server. Execute and server- side includes Server. Transfer is similar to Server. Execute If Page1.asp performs a: Server. Transfer("Page2.asp") the control flow is transferred to... 1-3 Page2.asp Uses a Server- Side Include to Import the Contents of Page1.asp . herein. Library of Congress Cataloging-in-Publication Data Mitchell, Scott Designing Active Server Pages/ Scott Mitchell p. cm. ISBN 0-5 9 6-0 004 4-8 (alk. paper) 1. Active Server Pages. 2. Web sites Design Designing Active Server Pages