asp基础语言英文资料翻译-jsp程序(编辑修改稿)内容摘要:

ngC 39。 Two variables in one line By now you may be wondering about my naming convention for variables. The two variables created in the above snippet both begin with int. I39。 m using this prefix to indicate that these variables will contain integers (whole numbers). You can feel free to name your variables whatever you like and store whatever kind of data you like in them, but I prefer to use this convention as a helpful reminder of the type of information in each variable. This practice of prefixing variable names with a clue as to their type is known as Hungarian notation, and I39。 ll introduce additional prefixes for 5 other data types as they arise over the course of this series. The Web has grown beyond the point where an online brochure will satisfy a typical pany39。 s needs for its Web presence. If you aim to market yourself as a Webmaster these days, you need to have some skill building online applications – Web sites that users can interact with, whether to get something done (. send ), get information targeted to their specific needs (. a realtime stock quote), or to interact with other users (. an online munity). In this series of articles, I’ll guide you through the process of learning one of the most popular frameworks for creating dynamic Web sites such as these – Active Server Pages (ASP). If you can secure a strong knowledge of ASP, as well as some practical experience building Web sites with it, you should never have trouble getting work as a Web developer. A quick search of your favourite online job directory with the keyword 39。 ASP39。 should be more than enough to convince you of that. In this first article, I39。 ll help you get your feet wet by introducing the VBScript programming language, and how to use it to write dynamic Web pages with ASP. Before I get to that, I shall stop to explain how serverside scripting, and ASP in particular, differs from other Web scripting technologies that you may be familiar with, such as clientside JavaScript. This will get you armed with the proper vocabulary and ensure that we39。 re on the same page before launching headlong into the brave, new world of ASP. ServerSide Scripting To understand where ASP fits into the big picture of Web development, you need to understand the concept of a serverside scripting language. If you39。 ve programmed We b pages in Perl, PHP, JSP, or Cold Fusion before, you can safely skip this section – all of those are serverside scripting languages, and ASP works in much the same way. If you39。 re ing to ASP armed only with knowledge of HTML (and perhaps with some CSS and/or JavaScript experience) then you39。 ll find that serverside scripting is quite a bit different. Let me begin by giving you a quick review of how standard, nonASP Web pages work. As shown in Figure 1, the Web browser on the client puter (the puter 6 belonging to the user) makes a request for a page, say (1). Assuming the requested file exists on the Web host puter where the Web Server software can find it, that software replies to the request by sending the file back to the browser (2). Any additional files (images, for example) required to display the page are requested and received in the same way. The protocol used for this exchange, and indeed for all munication between Web browsers and Web servers is called Hypertext Transfer Protocol (HTTP). If you39。 ve ever used any JavaScript in your pages, you know that the requested Web page () can contain, in addition to。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。