Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

2003

620 views

Published on

Published in: Business, Technology
  • Be the first to comment

  • Be the first to like this

2003

  1. 1. Creating Dynamic Content on the Web with IIS and ASP By Fred Rodriguez Texas Cooperative Extension
  2. 2. Terminology <ul><li>IIS </li></ul><ul><ul><li>Internet Information Server </li></ul></ul><ul><li>ASP </li></ul><ul><ul><li>Active Server Pages </li></ul></ul>
  3. 3. Microsoft’s Definition Active Server Pages is an open, compile-free application environment in which you can combine HTML, scripts, and reusable ActiveX server components to create dynamic and powerful Web-based business solutions. Active Server Pages enables server-side scripting for IIS with native support for both VBScript and Jscript.
  4. 4. Static Content .vs. Dynamic Content <ul><li>Static Content </li></ul><ul><ul><li>Does NOT change from unless author updates the file </li></ul></ul><ul><li>Dynamic Content </li></ul><ul><ul><li>Is generated “on the fly” when the page is called into existence </li></ul></ul>
  5. 5. Advantages of Dynamic Content <ul><li>Can more easily be kept current </li></ul><ul><li>Can adapt to user preferences </li></ul><ul><li>Can be maintained more easily </li></ul><ul><li>Information can be presented in more than one form </li></ul>
  6. 6. Disadvantages of Dynamic Content <ul><li>More complex </li></ul><ul><li>Not easily searched </li></ul><ul><li>Slower </li></ul>
  7. 7. A different System for every purpose <ul><li>Application Development System </li></ul><ul><li>Content Management System </li></ul><ul><li>Information Management System </li></ul><ul><li>Web Development System </li></ul><ul><li>Document Management System </li></ul>
  8. 8. What do they have in common? <ul><li>Information </li></ul><ul><ul><li>Acquisition </li></ul></ul><ul><ul><li>Storage </li></ul></ul><ul><ul><li>Management </li></ul></ul><ul><ul><li>Presentation </li></ul></ul><ul><ul><li>Organization </li></ul></ul>
  9. 9. Important Functions/Subsystems <ul><li>Simple </li></ul><ul><li>Powerful </li></ul><ul><li>Web-based </li></ul><ul><ul><li>All Functions (Acquisition, Management, Storage, etc) </li></ul></ul><ul><li>Dynamic Generation of Content </li></ul>
  10. 10. Important Functions/Subsystems <ul><li>Database Back End </li></ul><ul><ul><li>Single copy of Information </li></ul></ul><ul><ul><li>Content/Format separate </li></ul></ul><ul><li>Production and Development Environments </li></ul><ul><ul><li>Separate Completely </li></ul></ul><ul><ul><li>Easy Migration </li></ul></ul><ul><ul><li>Both Environment fully functional </li></ul></ul>
  11. 11. Competing Systems <ul><li>Php </li></ul><ul><li>Perl </li></ul><ul><li>Cold Fusion </li></ul><ul><li>Dreamweaver </li></ul><ul><li>Front Page </li></ul>
  12. 12. Why IIS and ASP?
  13. 13. Fairly Popular Web Server (30%)
  14. 14. Fairly Cost Effective <ul><li>$81 </li></ul><ul><ul><li>Windows Server 2003 </li></ul></ul><ul><ul><li>Standard Edition </li></ul></ul><ul><ul><li>Texas State Contract </li></ul></ul><ul><ul><li>Educational Pricing </li></ul></ul><ul><ul><li>Enterprise Edition $323.90 </li></ul></ul>
  15. 15. Support <ul><li>Available (but expensive) </li></ul><ul><li>User Groups </li></ul><ul><li>News Groups </li></ul><ul><li>Web Site (MSDN) </li></ul><ul><li>Internet Resources </li></ul>
  16. 16. Active Server Pages <ul><li>Easy to write </li></ul><ul><li>Easy to read </li></ul><ul><li>Easy to debug </li></ul><ul><li>Easy to acquire </li></ul><ul><ul><li>Web resources </li></ul></ul><ul><ul><li>Experts are out there </li></ul></ul>
  17. 17. Scripting Languages <ul><li>Visual Basic Script </li></ul><ul><li>Java Script </li></ul><ul><li>C# </li></ul>
  18. 18. Servers for ASP? <ul><li>Windows Server 2003 </li></ul><ul><li>Windows 2000 (Server or Client) </li></ul><ul><li>Windows XP </li></ul><ul><li>Windows NT (Server or Workstation) </li></ul><ul><li>Windows 9x </li></ul><ul><li>Apache (with Apache::ASP extension) </li></ul><ul><li>Solaris (with Sun One ASP) </li></ul>
  19. 19. How do I use ASP? <ul><li>Create a HTML-like file and save it with a .asp suffix (file type) </li></ul><ul><li>Upload to a server </li></ul><ul><li>Browse the file </li></ul><ul><li>Did it Work? </li></ul><ul><ul><li>Yes, Great </li></ul></ul><ul><ul><li>No, note the error, fix, re-upload, try again </li></ul></ul>
  20. 20. What does ASP Look Like? <ul><li>Start file with language definition </li></ul><ul><ul><li><%@ LANGUAGE = VBScript %> </li></ul></ul><ul><li>Code HTML Normally </li></ul><ul><ul><li><HTML> </li></ul></ul><ul><ul><ul><li><HEAD> </li></ul></ul></ul><ul><ul><ul><ul><li><TITLE>This is my first ASP File</Title> </li></ul></ul></ul></ul><ul><ul><ul><li></HEAD> </li></ul></ul></ul>
  21. 21. What Does ASP Look Like? <ul><li>Want to execute some code </li></ul><ul><ul><li><% (to start code segment) </li></ul></ul><ul><ul><ul><li>Response.Write “Hello World” </li></ul></ul></ul><ul><ul><li>%> (to return to HTML segment) </li></ul></ul><ul><li>Want value of variable in HTML segment? </li></ul><ul><ul><li><%= myvariable %> </li></ul></ul>
  22. 22. A Simple ASP Example Example 1 <ul><li><%@ LANGUAGE = VBScript %> </li></ul><ul><li><% </li></ul><ul><li>For I = 1 to 100 </li></ul><ul><li>Response.Write “Hello World<BR>” </li></ul><ul><li>Next </li></ul><ul><li>%> </li></ul>
  23. 23. Another Simple Example Example 2 <ul><li><%@ LANGUAGE = VBScript %> </li></ul><ul><li><TABLE BORDER=10> <% </li></ul><ul><li>For I = 1 to 10 </li></ul><ul><li>%> <TR> <% </li></ul><ul><li>For J = 1 to 5 </li></ul><ul><li>%> <TD BGCOLOR=RED><FONT COLOR=YELLOW>Hello World</FONT></TD> <% </li></ul><ul><li>Next </li></ul><ul><li>%> </TR> <% </li></ul><ul><li>Next </li></ul><ul><li>%> </TABLE> <%%> </li></ul>
  24. 24. Another Simple Example Example 3 <ul><li><%@ LANGUAGE = VBScript %> </li></ul><ul><li><% </li></ul><ul><li>Response.Write &quot;<TABLE BORDER=10>&quot; </li></ul><ul><li>For I = 1 to 10 </li></ul><ul><li>Response.Write &quot;<TR>&quot; </li></ul><ul><li>For J = 1 to 5 </li></ul><ul><li>Response.Write &quot;<TD BGCOLOR=RED><FONT COLOR=YELLOW>Hello World</FONT></TD>&quot; </li></ul><ul><li>Next </li></ul><ul><li>Response.Write &quot;</TR>&quot; </li></ul><ul><li>Next </li></ul><ul><li>Response.Write &quot;</TABLE>&quot; </li></ul><ul><li>%> </li></ul>
  25. 25. More Examples
  26. 26. Conclusion <ul><li>IIS and Active Server Pages </li></ul><ul><ul><li>Easy to code </li></ul></ul><ul><ul><li>Inexpensive </li></ul></ul><ul><ul><li>Available </li></ul></ul><ul><ul><li>Powerful </li></ul></ul><ul><ul><li>Dynamic </li></ul></ul>

×