asp网站毕业设计英文文献
计算机毕业设计ASP外文翻译

计算机毕业设计ASP外文翻译信息学院毕业设计科技文献翻译《The Design and Implementation of ASP WebSite News Management Systems 》《asp的网站新闻管理系统的设计与实现》姓名王磊专业软件工程学号202113880250 班级 2 班指导教师王立波12021年 9月AbstractThe use of ASP and SQL technology news site management system, to achieve the dynamic management of the news Web site, making the management of information more timely, efficient, improve the work efficiency. At the same time, the development of systems theory, systems and design features are introduced.[Key word] ASP,SQL,news management,databaseWith the popularization of Internet, more and more companies set up their own WWW sites, enterprises can display products through the website, publishing the latest developments, with users sharing and communication to establish contact with partners, as well as e-commerce. Information Management System which is an enterprise Web site an important part of it bears a double role, on the one hand, the dynamic can be used to release the new product or new development projects, on the other hand, the timely notice to their customers business performance, Progress in technology and research and development, in particular, recommend or preferential projects, products and services to attract customers, expand customer base.Management of traditional news sites in two ways, one static HTML page, update the information needed to re-create the page and then upload the page and modify the corresponding links, the efficiency of this approach is too low because we have little use. The second is based on ASP and scripting languages, dynamic Web pages and databases, through the application of procedures to deal with news, this is way more popular. However, due to the limitations of ASP allows the system itself, there are some insurmountable flaws, and technology has taken on the system performance has been greatly improved, the main performance in the following aspects:1. ASP page to open as a result of each must be compiled to explain the process, so when the page2opens in the rate of repeated there is no upgrade, and only need a page do not need to recompile compiled until the page has been modified or Web Application process restarted. This makes the speed in a number of visits has greatly improved.2. As the ASP does not provide any output data for the content of the components, so writing a database using ASP page can use the Record Set Object ADO to read records of transaction, while the ASP provided through the DataGrid, such as database and database components can be directly Contact.3. ASP support real-time application updates. Administrators do not haveto turn off the network server or even do not have to stop running the application can update the application on file. Application documents will never be locked, so even when the program runs in the paper can be overwritten. When the document is updated, the system will convert to the new moderate version.4. ASP take the \approach to the preparation of the code makes the code easier to prepare, structure more clearly, reducing the system development and maintenance of the complexity and the cost of.1 System Development Principle1.1 The System Architecture Model of ASP-based TechnologyASP is a three-tier system structure: UI Layer, Business Logic Tier anddata layer.UI layer is responsible for interaction with the user, receiving userinput and server-side data from present to clients.Business Logic Tier is responsible for receiving requests from browser requests to the data layers and at the same time the results of the requestsent to the browser. It consists of Web Forms, XML Web services and service composition components. Web Forms which is the core of the application, it is presented to customers based on data and information as well as to respond to and deal with customers and display interactive Web form generated based on information and data.Data layers to manipulate data through the layer for businesslogic to provide data services, such as storing the results of data manipulation and return to the results of data retrieval.1.2 The principle of access to the database 3Connected with the database, provide the following three kinds of ways: through ODBC connected; connected through OLEDB; directly connected with the SQL Server. Application of three kinds of ways as a result of differencesin levels, making the efficiency from low to high, high to low independence. Connected to the database for data processing, there are two kinds of ways,that is, through a Dataset to the isolation of heterogeneous data sources, and the other is a stream to read from the data source (Data Reader mode).Traditional application is to create a connection to the database, in the process is running the whole way to maintain connections to the design. taken disconnected mode data structure. When a browser requests a page to the Web server, the server to deal with this request, the requested pageand send to your browser, and then connection was disconnected until the next browser request issued. Another innovation is the introduction of a data set (Dataset). A data set is the relationship between memory map to provide high-speed data buffer. Data set of data sources know that they can be adopted by the programor transferred from the data warehouse data were generated, to fill.Regardless of where the data acquisition, data sets are the same procedurethrough the use of templates to be operated, and it's potential to use the same data buffer.2 Systems Functional Designs2.1 Systems Function StructuresThe news management system in Windows 2000 Server operating system platforms, Web server IIS, the database server for Microsoft SQL Server2000, development tools used in Microsoft Visual Studio. NET and DreamWeaver. Its work processes as follows: the user login through the authority to determinethe general user can only browse, read and query information, registered users can be completed in addition to the ordinary user, but also can enter information for news management module input, modify, and delete operations.In addition to registered users outside the system administrator can only be recorded on its own news operation for excision.2.2 Systems Function Characteristics(1) Simple, user-friendly: complete control of page layout, making information easier entry work;4many options including news categories, such as the source of departments only need to click the mouse can be completed; In addition, the follow-up message also appears allow users to clear their own operations.(2) Can be seen immediately: the handling of the press (including the entry, modify, delete) will be the corresponding column on the home page is displayed to \release, immediate results\function.(3) Function: include common site in all aspects of information management: information input, browse, delete, modify, search and other aspects, the full realization of the Web site of the real-time information management requirements.(4) To facilitate transplantation: for different enterprises, with some slight modifications need to be able to develop for the company's Web site features news management system.3 Systems Detailed DesignsCore functions of the system through a number of functional modules achieved. Specific design process is as follows:⑴ System login: The module responsible for the user are divided into general users and registered users to achieve the management of user rights.(2) News View: The module is responsible for all the news page web site lists information, including the title, type, source and date field departments, and each title has been made news a hyperlink, click the page they will be able to Jump news reader.(3) News reader: in other pages or click the title link to read into the news pages, at this time, detailed information of each information will be removed, including the content, title, keywords, and relatively fixed in accordance with the format placed in different pages region, the use of all the news about the same page layout, only the contents of the field corresponding to different In addition, the location of other pages can be dynamically placed in other components, such as web site logo, such as the page banner ads link to pictures, this can be easily to achieve the effect of illustrations in reading.(4) News Inquiry: The module provides a press inquiry, type to be selected to find the content and classification of information can quickly find the information in line with the conditions and results output.(5) News Management: The module listed in the registry is responsible for the registration page the user has issued a news and information and did not delete, the user can press to delete the article, modify. In5感谢您的阅读,祝您生活愉快。
开发一个ASP网站所应用的工具毕业论文外文文献翻译及原文

毕业设计(论文)外文文献翻译文献、资料中文题目:开发一个ASP网站所应用的工具文献、资料英文题目:ASP development of a site by the use of tools 文献、资料来源:文献、资料发表(出版)日期:院(部):专业:班级:姓名:学号:指导教师:翻译日期: 2017.02.14ASP development of a site by the use of tools1. DreamweaverMacromedia Dreamweaver is a professional HTML editor for visually designing and managing web sites and pages. Whether you enjoy the control of hand-coding HTML or prefer to work in a visual editing environment, Dream weaver makes it easy to get started and provides you with helpful tools to enhance your Web design experience.Dreamweaver includes many coding tools and features: an HTML, CSS, and JavaScript reference, a JavaScript debugger, and code editors (the Code view and Code inspector) that allow you to edit JavaScript, XML technology imports HTML documents without reformatting Macromedia’s Roundtrip HTML technology imports HTML documents without reformatting the code and you can set Dream weaver to clean up and reformat HTML when you want it to .Dreamweaver’s visual editing features also let you quickly add design and functionality to your pages without writing a line of code. You can view all your site elements or assets and drag them from an easy-to-use panel directly into a document. Streamline your development workflow by creating and editing images in Macromedia Fireworks, then importing them directly into Dream weaver, or by adding Flash objects you create directly in Dreamweaver.Dreamweaver is fully customizable. Use Dreamweaver to create your own objects and commands, modify keyboard shortcuts, and even write JavaScript code to extend Dreamweaver’s capabilities with new behaviors, property inspectors and site reports.The Dreamweaver work areaLet’s start wi th a brief overview of the Dreamweaver work area.If you haven’t already launch Dreamweaver, double-click the Dream weaver icon to launch it.The Dreamweaver work area accommodates different styles of working and levels of expertise.When you launch Dreamweaver, the following work area items open:The Document window displays the current document as you create and edit it.The Objects panel contains icons you click to insert objects in you document.Dreamweaver provides many floating panels, such as the HTML Styles panel and the code inspector which enable you to work with other Dreamweaver elements.The Launcher bar contains buttons for opening and closing your most frequently used inspectors and panels.The Property inspector displays properties for the selected object or text, and lets you modify those properties.(Which properties appear in the inspector depend on the object actively selected in the document.)To open Dreamweaver’s windows, inspectors and panels, use the Window menu. A check mark next to an item in the Window menu indicates that the named item is currently open(though it may be hidden behind other windows). To display an item that isn’t currently open, choose the item name from the menu or use its keyboard shortcut.Working in DreamweaverDreamweaver can display a document in three ways: in Design view, in Code view, and in a split view that shows both the design and code.(To change the view in which you’re working ,select a view in the Dream weaver toolbar.)By default, Dreamweaver displays the document window in design view.In addition, you can work with Dreamweaver’s design view in two different ways in layout view and standard view.( You select these views in the view category of the objects panel.) In layout view you can design a page layout. Insert graphics, text, and other media; in standard view, in addition to inserting graphics text and media, you can also insert layers, create frame documents, create tables, and apply other changes to your page-options that aren’t available in layou t view.2.DatabaseYou know that a database is a collection of logically related data elements that maybe structured in various ways to meet the multiple processing and retrieval needs of organizations and individuals. There’s nothing new about databases-early ones were chiseled in stone, penned on scrolls, and written on index cards. But now databases are commonly recorded on magnetically media, and computer programs are required toperform the necessary storage and retrieval operations.You’ll see in the following pages that complex data relationships and linkages maybe found in all but the simplest databases. The system software package that handles the difficult tasks associated with creating, accessing, and maintaining database records is called a database management system(DBMS).The programs in a DBMS package establish an interface between the database itself and the users of the database.(These users may be applications programmers, managers and others with information needs, and various OS programs.)A DBMS can organize, process, and present selected data elements from the database. This capability enables decision makers to search, probe, and query database contents in order to extract answers to nonrecurring and unplanned questions that aren’t avail able in regular reports.These questions might initially be vague and/or poorly defined, but people can “browse” through the database until they needed information. In short, the DBMS will “manage” the stored data items and assemble the needed items from t he common database in response to the queries of those who aren’t programmers. Ina file-oriented system, users needing special information may communicate their needs to programmer, who, when time permits, will write one or more prepare the information.The availability of a DBMS, however, offers users a much faster alternative communications path.3. SQL AND SQL SERVERIBM invented a computer language back in the 1970s designed specifically for database queries called SEQUEL; those letters stand for Structured English QUERY for queries, but can also build databases and manage the database engine’s security. Because of this heritage you can pronounce it “sequel” or spell it out “S-Q-L.” There are various versions of SQL used in today’s database engines. Micro soft SQL Server uses a version called Transact-SQL, or T-SQL, which stands for Transaction SQL.⑴What Is SQL Server?SQL Server is a client/server relational database management system (RDBMS)that use Transact-SQL to send requests between a client an SQL Server.⑵Client/Server ArchitectureThe terms client, server, and client/server can be used to refer to very general concepts or to specific items of hardware or software. At the most general level, a client is any component of a system that requests services or resources from other components of a system. A server is any component of a system that provides services or resources to other components of a system.For example, when you print a document from your workstation on a network, the workstation is the client and the machine that does the print spooling is the server.Any client/server data-base system consists of the following components:The server—A collection of data items and supporting objects organized and presented to facilitate services, such as searching ,sorting , recombining ,retrieving, updating ,and analyzing data.. The database consists of the physical storage of data and the data base services. All data access occurs through the server; the physical data is never accessed directly by the client.The client—A software program that might be used interactively by a person or that could be an automated process. This includes all software that interacts with the server, either requesting data from or sending data to the database.The communication between the client and the server---- The communication between the client and the server depends largely on how the client and server are implemented. Both physical and logical layers of communication can be identified.When you communicate with someone using the telephone, the telephone system is the physical layer and a spoken natural language is the logical layer of communication. For a data-based system, the physical layer can be a network if the server and the client are on different computers. It can be intercrosses communication if the server and the client are on the same computer. The logical communication structure of the physical layer may be low-level operating system calls, a proprietary data access language, or the open structured query language (SQL)4. IISInternet Information Server is the acronym (IIS) is a World Wide Web server. Gopher server and FTP server all inclusive inside. IIS means that you can publish web pages, and there are ASP (Active Server Pages), JAVA, VBscript generated pages, with someextensions. IIS support some interesting things, like the editorial environment interface (FRONTPAGE), a full-text search function (INDEX SERVER), a multimedia capabilities (NET SHOW)Secondly, IIS is with Windows NT Server 4.0 to provide the documents and application server, Windows NT Server is built on the basic Internet server components. Windows NT Server and its fully integrated, allowing the use of Windows NT Server built-in security, and the NTFS file system build a powerful and flexible Internet / Intranet site.IIS (Internet Information Server, Internet Information Services) is a Web (Web) services components, including Web server, FTP server, NNTP server and the SMTP server, were used for web browsing, file transfer, mail and news services and so on It makes the network (including the Internet and LAN) on the release of information has become a very easy matter.IIS is the abbreviation for Internet Information Server, Microsoft is pushing the main server, the latest version is included Windows2000 inside the IIS 5, IIS and WindowNT Server fully integrated together, so users can use Windows NT Server and NTFS (NT File System , NT file system) built-in security features, building a strong, flexible and secure Internet and Intranet sites.IIS support HTTP (Hypertext Transfer Protocol, Hypertext Transfer Protocol), FTP (File Transfer Protocol, file transfer protocol) and SMTP protocol, through the use of CGI and ISAPI, IIS can be a high degree of expansion.IIS support has nothing to do with the language of the script preparation and components, through the IIS, developers can develop a new generation of dynamic, full of charm of the Web site. IIS does not require developers to learn new scripting language or compiler applications, IIS full support for VBScript, JScript software development and Java, it also supports the CGI and WinCGI, and the expansion and ISAPI filter.IIS is designed to establish a set of integrated server services to support HTTP, FTP and SMTP, it can provide quick and integration of existing products, while expansion of the Internet server.。
ASP英文文献翻译3

Abstract-ASPS today provide a means for businesses to outsource their applications thus saving on setup and maintenance costs. This paper presents an example of an ASP providing a service to a specialized networked device: a Networked Alarm Clock. This example is used to illustrate the issues ASPs would need to deal with to provide services to specialized networked devices within a home network.
ASP perspectives on Networked Appliances
Abhrajit Ghosh, David Marples and Stanley Moyer
Telcordia Technologies, Inc. 445 South Street Morristown, NJ - 07960 USA Providing a specialized service to a specialized device (for example, a home appliance) is an attractive proposition since there is typically no sharing of multiple ASP applications at these devices. In addition, these devices have significantly lower configurability than a PC, making them less prone to user-related errors and outages. They provide a dedicated service, which can be supported by value added services provided by the ASP. Such an appliance would typically be a cheaper investment than a full-blown PC since the processing infrastructure would be minimal: the ASP would handle most of the computing and data access needs of the device. An ASP service provider of the future would thus be rendering a valueadded service to a specialized device. Since specialized devices would typically have limited computing power, processing would need to be offloaded from the device to the ASP’S platforms as much as possible. There would be a trade off between network bandwidth accessible to the device and computing power available on the device. In some cases the home network may have additional computing support (e.g. a PC, a residential gateway) in which case some of the processing could be distributed here as well. The ASP would need to be aware of the rendering capabilities of each device in terms of display area sizes, display area type, audio capabilities, input capabilities (number of buttons available, for example) and so on. There would be a need for the ASP to customize parts of their application service on a per device basis. In some cases, the ASP would need to provide translation capabilities from one format to another. (e.g. Unified Messaging services where the same message can be picked up in either text or audio format depending on the type of accessing device.) Additionally, some ASPs may render their applications to not one but to a set of devices. In this case the ASP needs to coordinate the actions of these devices to provide a meaningful service to the user. Most networked appliances would be intended for tasks specific to a certain user or to a certain set of users. It will thus be necessary for the ASP to maintain a profile of the user that would store service options requested by the user, alternative devices available for the same service to the user and the capabilities of these devices. Moreover, such profiles should lend themselves to easy configuration by the user. While many configuration tasks would be best performed via a web browser client running on a PC, some of the more frequent configuration tasks should be accomplishable via the appliance itself since it is probably
计算机专业B-S模式 ASP 外文翻译 外文文献 英文文献 中英对照

计算机专业B-S模式 ASP 外文翻译外文文献英文文献中英对照外文翻译ENGLISHE:Develop Web application program using ASP the architecture that must first establish Web application. Now in application frequently with to have two: The architecture of C/S and the architecture of B/S.Client/server and customer end / server hold the architecture of C/S.The customer / server structure of two floor.Customer / server ( Client/Server ) model is a kind of good software architecture, it is the one of best application pattern of network. From technology, see that it is a logic concept, denote will a application many tasks of decomposing difference carry out , common completion is entire to apply the function of task. On each network main computer of web site, resource ( hardware, software and data ) divide into step, is not balanced, under customer / server structure, without the client computer of resource through sending request to the server that has resource , get resource request, so meet the resource distribution in network not balancedness. With this kind of structure, can synthesize various computers to cooperate with work, let it each can, realize the scale for the system of computer optimization ( Rightsizing ) with scale reduce to melt ( Downsizing ). Picture is as follows:It is most of to divide into computer network application into two, in which the resource and function that part supports many users to share , it is realized by server; Another part faces every user , is realized by client computer, also namely, client computer is usual to carry out proscenium function , realizes man-machine interaction through user interface , or is the application program of specific conducted user. And server usually carries out the function of backstagesupporter , manages the outside request concerning seting up, accepting and replying user that shared. For a computer, it can have double function , is being certain and momentary to carve to act as server , and again becomes client computer in another time.Customer / server type computer divide into two kinds, one side who offers service is called as server , asks one side of service to be called as customer. To be able to offer service, server one side must have certain hardware and corresponding server software; Also, customer one side must1also have certain hardware and corresponding customer software.There must be a agreement between server and customer, both sides communicate according to this agreement.Apply customer / server model in Internet service , the relation between customer and server is not immutable. Some Internet node offers service on the one hand , also gets service on the other hand from other node; It is even in one time dialogue course, mutual role also exchanges probably. As in carry out file transmission , if be called as one side who offers file server, is called as one side who gets file customer, when using get or mget order since another node takes file, can think that what self use and it is client computer , is using put or mput order to another node dispatch file can again think the machine that used self is server.Multilayer customer / server structureAlong with the development of enterprise application, recently, have again arisen a kind of new multilayer architecture, it applies customer end to divide into two minutes: Customer application and server apply. Customer application is the part of original customer application , is another and partial to have been transfered to server to apply. New customer application takes the responsibility for user interface and simple regular business logic and new server application resident core , changeable business logic. Therefore its structure has become new( Client application + Server application )/Server structure. Following picture shows:This kind of structure has solved traditional Client/Server can expand problem, have reduced customer end business logic , and have reduced the requirement of customer end for hardware. At the same time because of a lot of business logic concentrations have gone to unitary application server on, the maintenance work of application system had been also concentrated together, have eliminated the problem in the traditional structure of Client/Server that software distributes. This kind of structure is called as the architecture of B/S.Browser/Server and browser / server hold the architecture of B/S. On2essence, Browser/Server is also a kind of structure of Client/Server, it is a kind of from the traditional two levels of structural development of Client/Server come to the three-layer structural special case of Client/Server that applied on Web.In the system of Browser/Server, user can pass through browser to alot of servers that spread on network to send request. The structure of Browser/Server is maximum to have simplified the work of client computer, on client computer, need to install and deploy few customer end softwareonly , server will bear more work, for database visit and apply program carry out will in server finish.Under the three-layer architecture of Browser/Server, express layer ( Presentatioon ) , function layer ( Business Logic ) , data layer( Data Service ) have been cut the unit of 3 relative independences: It is the first layer of to express layer: Web browser.In expressing layer contain system show logic, locate in customer end. It's task is to suggest by Web browser to the certain a Web server on network that service is asked , after verifying for user identity, Web server delivers needed homepage with HTTP agreement to customer end, client computer accept the homepage file that passed , and show it in Web browser on.Second layer function layer: Have the Web server of the application function of program extension.In function layer contain the systematic handling of general affairs logic, locate in Web server end. It's task is the request concerning accepting user , need to be first conducted and corresponding to expand application program and database to carry out connection , passes through the waies such as SQL to database server to put forward data handling to apply for, then etc. database server the result of handling data submit to Web server, deliver again by Web server to return customer end.The number of plies of 3th according to layer: Database server.In data layer contain systematic data handling logic, locate in database server end. It's task is to accept the request that Web server controls for database, realization is inquired and modified fordatabase , update etc. function, submit operation result to Web server.Careful analysis is been easy to see , the architecture ofBrowser/Server of three-layer is the handling of general affairs of the two levels of structure of Client/Server logic modular from the task of client computer in split , from the first floor of individualcomposition bear the pressure of its task and such client computer have alleviated greatly, distribute load balancedly and have given Web server, so from the structural change of Client/server of original two floor the structure of Browser/Server of three-layer. This kind of three-layer architecture following picture shows.This kind of structure not only client computer from heavy burdenand3the requirement of performance that rises continuously for it in liberation come out , also defend technology people from heavy maintenance upgrading work in free oneself. Since client computerhandles general affairs , logic partial minutes have given function server, make client computer right off " slender " a lot of, do not take the responsibility for handling complex calculation and data again visit etc. crucial general affairs, is responsible to show part, so, maintenance people do not rush about again for the maintenance work ofprogram between every client computer, and put major energy in the program on function server update work. Between this kind of three-layer structural layer and layer, the mutually independent change of any first floor does not affect the function of other layer. It has changed the defect of the two levels of architecture of Client/Server of tradition from foundation, it is the transform with deep once in application systematic architecture.The contrast of two architecturesThe architecture of Browser/Server and the architecture ofClient/Server compare with all advantages that not only have the architecture of Client/Server and also have the architecture ofClinet/Server the unique advantage that place does not have: Open standard: The standard adopted by Client/Server only in department unification for but, it's application is often for special purpose.It is lower to develop and defend cost: It need to be implemented on all client computers that the application of Client/Server must develop the customer end software for special purpose, no matter installation and disposition escalate still, have wasted manpower and material resources maximumly. The application of Browser/Server need in customer end have general browser , defend and escalate to work in server end go on , need not carry out any change as customer holds , have reduced the cost of development and maintenance so greatly.It is simple to use , interface friendly: The interface of the userof Client/Server is decided by customer end software, interface and the method of its use are not identical each, per popularize a system of Client/Server ask user study from the beginning, is hard to use. The interface of the user of Browser/Server is unified on browser, browseris easy to use , interface friendly, must not study use again other software, the use of a Lao Yong Yi that has solved user problem.Customer end detumescence: The customer end of Client/Server has the function that shows and handles data , as the requirement of customerend is a client computer " it is fat " very high. The customer of Browser/Server holds the access that not takes the responsibility for database again and the etc. task of complex data calculation, need it only show , the powerful role that has played server fully is so largeto have reduced the requirement for customer end, customer end become very " thin ".4System is flexible: The 3 minutes of the system of Client/Server, in modular, have the part that need to change to want relation to the change of other modular, make system very difficult upgrading. The 3 minutes of the system of Browser/Server modular relative independence,in which a part of modular change, other modular does not get influence, it is very easy that system improve to become, and can form the system with much better performance with the product of different manufacturer.Ensure systematic safety: In the system of Client/Server, directlyjoin with database server because of client computer, user can veryeasily change the data on server, can not guarantee systematic safety. The system of Browser/Server has increased a level of Web server between client computer and database server , makes two not to be directlylinked again, client computer can not be directly controled for database, prevent user efficiently invade illegally.The architecture of Browser/Server of three-layer has the advantage that a lot of traditional architectures of Client/Server does not have , and is close to have combined the technology of Internet/Intranet, isthat the tendency of technical development tends to , it application system tape into one brand-new develop times. From this us option the configuration of B/S the architecture that develops as system.what are C/S with B/SFor " C/S " with the technology of " B/S " develop change know ,first,must make it clear that 3 problems.( 1 ) What is the structure of C/S.C/S ( Client/Server ) structure, the server structure and client computer that all know well. It is software systematic architecture, through it can hold hardware environment fully using two advantage, realize task reasonable distribution to Client end and Server end , have reduced systematic communication expense. Now, the most systems of application software are the two levels of structure of the form ofClient/Server , are developing to the Web application of distributiontype since current software application is systematic, Web and the application of Client/Server can carry out same business handling , apply different modular to share logic assembly; Therefore it is systematic that built-in and external user can visit new and existing application , through the logic in existing application system, can expand new application system. This is also present application system develop direction. Traditional C , S architecture though adopting is open pattern, but this is the openness that system develops a level , in specific application no matter Client end or5Server end the software that need to still specify support. Because of the software software that need to develop different edition according to the different system of operating system that can not offer the structure of C/S and the open environment of user genuine expectation , besides, the renovation of product is very rapid, is nearly impossible to already meet the 100 computer above users of local area network at the same time use. Price has low efficiency high. If my courtyard uses , Shanghai exceed the orchid company's management software " statistics of law case" is typical C , Sarchitecture management software.( 2 ) What is the structure of B/S.B/S ( Browser/Server ) structure browser and server structure. It is along with the technology of Internet spring up , it is for thestructure of improvement or a kind of change of the structure of C/S.Under this kind of structure, user working interface is to realize through WWW browser, lose the logic of general affairs very much infront( Browser) realization, but the major logic of general affairs in server end( Server) realization, form the three-layer claimed 3-tier structure. So, have simplified customer end computer load greatly , have alleviated system to defend workload and the cost with upgrading , have reduced the overall cost of user ( TCO ). With present technology see , local area network the network application that establishes thestructure of B/S , and under the pattern of Internet/Intranet, database application is easy to hold relatively , cost also is lower. It is that oneness goes to the development of position , can realize different people, never same place, with difference receive the way of entering ( for example LAN, WAN, Internet/Intranet etc.) visit and operate common database; It can protect data platform efficiently with management visit limits of authority, server database is also safe. Now in my courtyard, net ( Intranet ) , outer net ( Internet ) with Beijing eastern clear big company " law case and the management software of official business " is the structural management software of B/S , policemen each workingstation in local area network pass through WWW browser can realize working business. Especially in JAVA step platform language appearance after, the configuration management software of B/S is more facilitated , is shortcut, efficient.( 3 ) The management software technology of main stream.6The technology of main stream of management software technology isas management thought , have also gone through 3 develop period. First, interface technology goes to Windows graph interface ( or graph user interface GUI ) from last century DOS character interface, till Browser browser interface 3 differences develop period. Secondly, today own the browser interface of computer, is not only visual and is easy to use , what is more major is that any its style of application software based on browser platform is as, make the requirement of choosing a person for the job for operating training not high and software operability is strong , is easy to distinguish; Moreover platform architecture the file that also goes to today from past single user development , server ( F , S ) system and client computer , server ( C , S )system and browser , server ( B , S ) system.The comparison of C/S and B/SC/S and B/S is the now world two technologies of main stream ofdeveloping pattern technical configuration. C/S is that American Borland company researches and develop most early, B/S is that American Microsoft researches and develop. Now this two technologies with quilt world countries grasp , it is many that domestic company produce article with C/S and the technical development of B/S. This two technologies have the certain market share of self , is with customer crowd , each domestic enterprise says that own management software configuration technical function is powerful, advanced, convenient , the customer group that can lift , have a crowd scholar ink guest to shake flag selfcry out , advertisement flies all over the sky , may be called benevolent to see kernel, sage sees wisdomC/S configures inferior position and the advantage of software( 1 ) Application server operation data load is lightcomparatively.The database application of the most simple architecture of C/S is become by two partial groups, customer applies program and database server program. Both can be called as proscenium program and the program of backstage supporter respectively. The machine of operation database server program is also called as application server. Once server program had been started , waits the request concerning responding customer program hair at any time; Customer application program operation can be7called as customer computer on the own computer of user, in correspondence with database server, when needs carry out any operation for the data in database, customer program seeks server program voluntarily , and sends request to it, server program is regular as basis intends to make to reply, send to return result, application server operation data load is lighter.( 2 ) Data store management function relatively transparent.In database application data store management function, is carried out respectively independently by server program and customerapplication program , is regular as proscenium application can violate , and usually those different( no matter is have known still unknown )operations data, in server program, do not concentrate realization, for instance visit limits of authority, serial number can be repeated , must have customer talent establishment the rule order. It is these to own , for the last user that works on proscenium program is " transparent ", they need not be interest in ( can not usually also interfere ) the course of behind, can complete own all work. In the application of customer server configuration proscenium program not is very " thin ", troublesome matter is delivered to server and network. In the system of C/S take off , database can not become public really , professionally more competent storehouse, it gets independent special management.( 3 ) The inferior position of the configuration of C/S is high maintenance cost make investment just big.First, with the configuration of C/S, will select proper database platform to realize the genuine "unification" of database data, make the data synchronism that spreads in two lands complete deliver by database system go to manage, but the logically two operators of land will directly visit a same database to realize efficiently , have so some problems, if needs establishment the data synchronism of " real time ", the database server that must establish real time communication connection between two places and maintains two lands is online to run , network management staff will again want to defend and manage for customer end as server defends management , maintenance and complex tech support and the investment of this high needs have very high cost, maintenance task is measured.Secondly, the software of the structure of C/S of tradition need to develop the8software of different edition according to the different system of operating system , is very rapid because of the renovation of product, price is working needs high with inefficient already do not meet. In JAVA step platform language appearance after, the configuration of B/Sis more vigorous impact C/S , and forms threat and challenge for it. .The advantage of B/S configuration software( 1 ) The Maintenance of inferior position and upgrading way are simple. Now upgrading and the improvement of software system more and more frequently, the product of the configuration of B/S embodies more convenient property obviously. For one a little a little bit big unit , if systematic administrator needs , between hundreds of 1000 even last computers round trip run , efficiency and workload is to can imagine,but the configuration of B/S software needs management server have been all right , all customer ends are browser only, need not do any maintenance at all. No matter the scale of user has , is what , has how many branch will not increase any workload of maintenance upgrading , is all to operate needs to aim at server to go on; If need differently only, net server connection specially , realize long-range maintenance and upgrading and share. So client computer more and more " thin ", and server more and more " fat " is the direction of main stream of future informative development. In the future, software upgrading andmaintenance will be more and more easy , and use can more and more simple, this is for user manpower , material resources, time and cost save is obvious , it is astonishing. Therefore defend and escalate revolutionary way is the client computer " it is thin ", " is fat " server. ( 2 ) Cost reduction, it is more to select.All know windows in the computer of top of a table on nearly one Tong world, browser has become standard disposition, but on server operating system, windows is in absolute dominance position not. Current tendency is the application management software that uses the configuration of B/S all , need to install only in Linux server on , and safety is high. The so server option of operating system is many, no matter choosing those operating system, can let the most of ones use windows in order to the computer of top of a table of operating system does not get influence, this for make most popular free Linux operating system develop fast, Linux except operating9system is free besides, it is also free to link database, this kind of option is very pupular.Say, many persons on daily, "Sina website" nets , so long as having installed browser for can , and what need not know the server of " Sina website " to use is that hat operating system, and in fact the most of websites do not use windows operating wsystem really, but the computer of user is most of as installing to be windows operating system.( 3 ) Application server operation data load value comparatively. Since B/S configures management, software installation in server end ( Server ) on, it is been all right that network administrator need to manage server only, the user interface major logic of general affairs in server ( Server ) end pass through WWW browser completely realization, lose the logic of general affairs very much in front( Browser) realization, all customer ends has only browser, network administrator need to do hardware maintenance only. But application server operation data load is heavier, once occuring " server collapse " to wait for problem, consequence is unimaginable. Therefore a lot of units have database to stock server , are ready for any eventuality.原文翻译:利用ASP开发Web应用程序首先必须确立Web应用的体系结构。
asp网站毕业设计英文文献

Making an Web Site AccessibleScott MitchellMay 2004Summary: Take advantage of inheritance in the .NET Framework to extend classes to make them generate code that is fully accessible to people with disabilities. (13 printed pages) IntroductionWhile the majority of online users are able to browse Web sites using Web browsers with the typical browser settings, users with disabilities commonly use alternative means to access online information. For example, a blind user might use a text-only browser that converts the text into Braille, or reads the text aloud using a screen reader. A person with reduced vision might still use a browser like Microsoft® Internet Explorer, but with a screen magnifier, or with the browser configured to use extra large font sizes. Motor disabilities might preclude a user from using the mouse or keyboard as an input device.Since people with disabilities typically surf the Web using special devices or non-standard browser configurations, a Web site's overall design and HTML markup greatly impacts the disabled person's user experience. For example, specifying font sizes using absolute measurements—like 10pt—displays the font in that absolute size, and not relative to the text size the user has configured in his browser. Sites that have a Flash or Shockwave interface, and do not provide an alternate, text representation, effectively cut off users with Braille devices or text-to-speech synthesizers. A Web site is said to be accessible if it is designed to transition gracefully to alternate devices.At this point, you might be thinking, "Why should I bother ensuring my Web site is accessible?" There are two good reasons I can think of:1.It's Good Business – According to the U.S. Census 2000, 49.7 million Americans have a disability; a June 2000 poll by Harris Interactive shows that 43% of disabled Americans are regular online users, and that users with disabilities spend almost twice as much time online than users without disabilities. Put the results of these two surveys together and you'll find that there are more than 21 million Americans with disabilities who are regularly online. By not taking the time to make your Web site accessible, you are cutting off 21 million potential visitors.2. It's a Mandate for Government Agencies – In 1998 the United State government passed Section 508 of the Rehabilitation Act, requiring Federal agencies to make their electronic information accessible to individuals with disabilities. This law provides accessibility guidelines for software applications and Web applications, as well as telecommunication products and video products. Not only are Federal agencies required to implement accessibility guidelines, but also private companies that are contracted to work for the Federal government. (A number of countries outside the U.S. also have similar accessibility requirements for government agencies.) Therefore, creating accessible Web applications is required if you work for the government or for a company that provides services to the government.In this article we will discuss what steps you can take to ensure that your Microsoft® Web site is accessible. We'll take a brief look at the official accessibility guidelines available today, and then focus in on the accessibility guidelines used by the United States government. The article wraps up with a look at how to use inheritance to turn non-accessible Web controls into ones that meet accessibility guidelines.The WAI, WCAG, and Section 508There are a number of steps that can be taken to make a Web site more accessible. But what, exactly, are these steps, and how many of them does one site need to employ in order to be considered accessible? The answers to these questions differ based on who you ask, and what level of accessibility they need to provide. An intranet site for a Fortune 500 company would likely require a higher degree of accessibility than an intranet site for a company with only 25 employees.The WC3's Say on AccessibilityTo help formalize this discussion, in 1999 the WC3 officially founded the Web Accessibility Initiative (WAI), a group tasked with improving Web site usability for people with disabilities. The WAI's first act was to publish the Web Content Accessibility Guidelines, or WCAG. The WCAG provides a list of 14 guidelines for accessible Web site design. The guidelines themselves do not spell out actions to take to make a Web site more accessible. Rather, they are high-level statements that provide comment on how to ensure accessibility. For example, guideline 1 is "Provide equivalent alternatives to auditory and visual content." Accompanying each guideline is a set of checkpoints. The checkpoints spell out actions that can be taken to ensure that the accessibility guideline is met. Each checkpoint is given one of the following priority values:• Priority 1 – a Web developer must satisfy this checkpoint, otherwise one or more groups of users will not be able to access the content.• Priority 2 – a Web developer should satisfy this checkpoint, otherwise one or more groups of users will find it difficult to access the content.• Priority 3 –a Web developer may address this checkpoint, otherwise one or more groups of users might have difficulty when accessing the content.In addition to listing the 14 guidelines and their associated, prioritized checkpoints, the WCAG alsoprovides a three-level classification scale for Web site accessibility. Sites that implement all Priority 1 checkpoints are rated at conformance level A. Those that implement all Priority 1 and Priority 2 checkpoints are rated Double-A, while those that implement all of the checkpoints are rated Triple-A. The WCAG gives a good set of actions to perform to ensure varying levels of accessibility.Although a thorough discussion of the WCAG is beyond the scope of this article, listed below are the 14 high-level guidelines of the WCAG. The checkpoints for each guideline, and their associated priority, can be found at the official Web Content Accessibility Guidelines 1.0 specification.15. Provide equivalent alternatives to auditory and visual content16. Don't rely on color alone17. Use markup and style sheets and do so properly18. Clarify natural language use19. Create tables that transform gracefully20. Ensure that pages featuring new technologies transform gracefully21. Ensure user control of time-sensitive content changes22. Ensure direct accessibility of embedded user interfaces23. Design for device-independence24. Use interim solutions25. Use W3C technologies and guidelines26. Provide context and orientation information27. Provide clear navigation mechanisms28. Ensure that documents are clear and simpleMicrosoft's Accessible Web Controls for 1.x.Many of the WCAG checkpoints and Section 508 rules dictate specific HTML markup that should be used to make a Web site more accessible. For example, checkpoint 5.1 in the WCAG (a Priority 1 checkpoint) and rule (g) in Section 508 requires that <table> elements properly identify row and column headers. That is, the <td> element must be used to identify data cells, whereas <th> must be used to identify headers.When building Web sites, developers rarely have to worry about generating HTML markup. Rather, Web controls are used that emit the proper markup. Unfortunately, many of the Web controls emit markup that violates the accessibility rules outlined by the WCAG and Section 508. Since all Web controls are, fundamentally, classes in the Microsoft® .NET Framework, their functionality can be extended in a number of ways to conform to accessibility guidelines.A prime example of enhancing an existing Web control to meet accessibility guidelines can be seen with the DataGrid Web control. The DataGrid Web control that ships with the .NET Framework does not conform to rule (g) in Section 508 / checkpoint 5.1 in the WCAG. That is, the headers are rendered using <td> elements instead of <th>. (To see what I mean, check out this live demo, and do a View/Source in your browser. You'll see that the header row uses <td>s rather than <th>s.) However, in June 2003 Microsoft releasedan Hotfix Rollup Package that, among other things, includes an improved version of the DataGrid, one that conforms to rule (g) in Section 508.Note The Hotfix Rollup Package provides other accessibility-related enhancements. For example, it adds an optional AssociatedControlID property to the Label Web control to specify the ID of the Web control the Label is associated with. If this property is provided, the Label is rendered as a <label> HTML element with the for attribute referencing the specified Web control. For more information consult this knowledge base article.Creating An Adaptive, Accessible DataGrid Web ControlThe Web controls provided in the June 2003 Hotfix bring the Web controls up to Section 508 standards. Even with the Hotfix, however, there are still a number of WCAG Priority 1 checkpoints not being met. Fortunately you can easily extend the functionality of existing Web controls to conform to the accessibility guidelines required by your company. This is possible thanks to the power of inheritance. Specifically, we can take a Web control that does not conform to the accessibility standards, and create an extended Web control that does conform to the standards. By using inheritance, we only have to change or add the functionality to make the control conforming to the standards, and do not have to rewrite the base functionality.WCAG Checkpoint 6.3 reads: "Ensure that pages are usable when scripts, applets, or other programmatic objects are turned off or not supported. If this is not possible, provide equivalent information on an alternative accessible page. For example, ensure that links that trigger scripts work when scripts are turned off or not supported (for example, do not use "javascript:" as the link target)." However, the LinkButton Web control is rendered as a hyperlink with a javascript: link target (<a href="javascript:__doPostBack('...','...')">...</a>). The problem is that browsers that don't support JavaScript won't be able to postback the Web page by clicking on the LinkButton. This renders sortable DataGrids unsortable in browsers that don't support JavaScript since the column headers are rendered as LinkButtons.The remainder of this article looks at building a set of adaptive custom DataGrid columns that will display a Button Web control in the header of a sortable DataGrid if it is visited by a browser that doesn't support JavaScript. The Button Web control works for browsers that do not support JavaScript since it renders a <input type="submit"> tag rather than a hyperlink with a javascript: link target.Note Section 508 does not require that links not use the javascript: link target. Section 508's sole comment on client-side script can be found in rule (l), which reads: "pages utilize scripting languages to display content, or to create interface elements, the information provided by the script shall be identified with functional text that can be read by assistive technology." What this rule requires is that if content is generated by script, or if a page's behavior is modified via script, that a <noscript> HTML element be used with an explanation of the script behavior. Regardless, I have heard from several developers working on government projects that required them to support browsers without JavaScript functionality.Making DataGridColumn AdaptiveThe DataGrid Web control is comprised of a number of columns, which are classes that derive from the System.Web.UI.WebControls.DataGridColumn class. ships with five built-in DataGrid column types:1. BoundColumn2. ButtonColumn3. EditCommandColumn4. HyperLinkColumn5. TemplateColumnThe base class, DataGridColumn, provides the properties and methods inherent to all DataGrid column types. These include properties like HeaderText, SortExpression, Visible, and others. The DataGridColumn class has two methods that play an important role in creating a DataGrid: •Initialize() –initializes the DataGridColumn. Called once per column during the DataGrid's databinding process.•InitializeCell(cell, index, itemType) – called for each cell that is created during for each column during the DataGrid's databinding process. Cell is a TableCell object representing the actual HTML <table> cell for the cell being initializes; index is the row index of the cell being initialized; itemType is value from the ListItemType enumeration, specifying what type of cell is being added (Item, AlternatingItem, Header, Footer, EditItem, and so on.The DataGridColumn class is responsible for rendering the header and footer for the column. The derived classes –BoundColumn, ButtonColumn, EditCommandColumn, etc. –are responsible for rendering the DataGrid items.Note For more information on creating custom DataGrid columns, check out Marcie Robillard's article Creating Custom Columns for the DataGrid.To have our DataGrid adaptively render the header based on whether or not the user's browser supports JavaScript, we need to create a custom DataGrid class that is derived from DataGridColumn. This custom DataGrid column class, named AccessibleDataGridColumn, will need to override the DataGridColumn class's InitializeCell() method, checking to see if the DataGrid is configured for sorting and being visited by a browser that doesn't support JavaScript. If these two conditions are true, then AccessibleDataGridColumn will render a Button in the header as opposed to a LinkButton. The code for this class is shown below:Public Class AccessibleDataGridColumnInherits DataGridColumnPublic Overrides Sub InitializeCell( _ByVal cell As TableCell, _ByVal columnIndex As Integer, _ByVal itemType As ListItemType)Dim sorting As Boolean = _Not Me.Owner Is Nothing _AndAlso Me.Owner.AllowSorting _AndAlso Me.SortExpression.Length > 0Dim supportsJS As Boolean = _Not HttpContext.Current Is Nothing _AndAlso HttpContext.Current.Request.Browser.JavaScriptIf sorting And Not supportsJS _And itemType = ListItemType.Header And Not Me.DesignMode _Then If Me.HeaderImageUrl.Length > 0 ThenDim b As New ImageButtonb.AlternateText = Me.HeaderTextb.ImageUrl = Me.HeaderImageUrlmandName = "Sort"mandArgument = Me.SortExpressionb.CausesValidation = False cell.Controls.Add(b)ElseDim b As New Buttonb.Text = Me.HeaderTextmandName = "Sort"mandArgument = Me.SortExpressionb.CausesValidation = Falsecell.Controls.Add(b)End IfElse MyBase.InitializeCell(cell, columnIndex, itemType)End IfEnd SubEnd ClassThe overridden InitializeCell() method checks to see if sorting is enabled, if the current browser does not support client-side JavaScript, if the current item being initialized is a header, and if the rendering is not being performed in Microsoft® Visual Studio® .NET's designer. If this check passes, then another check is performed to determine if the column has a HeaderImageUrl value specified. If it does, it renders an ImageButton, setting its AlternateText to the column's HeaderText. If there is no HeaderImageUrl specified, a Button is created and added to the cell.Note Notice that the check to see whether or not a browser supports JavaScript simply looks up Request.Browser.JavaScript property. This property is set based on the User-Agent string sent by thebrowser to the Web server. The adaptive DataGrid will render Buttons in the header for a sortable DataGrid when someone visits with a browser that is known not to support JavaScript, such as Netscape 1.0, or Lynx. If someone visits with Microsoft® Internet Explorer 6.0 it will render the default LinkButtons, even if the visitor has manually turned off JavaScript support.Using the Accessible DataGrid Column Classes in an Web PageThis article's download includes two Microsoft® Visual Studio® .NET 2003 projects (both Visual Basic .NET projects): the first is a class library that contains the custom DataGrid column classes; the second is an Web application that you can use to test out the adaptive, accessible DataGrid column classes.To use these custom DataGrid column classes in an Web project you need to first add the compiled assembly of the custom DataGrid column classes to the Web project's /bin folder. (If you are using Visual Studio .NET, the simplest way to do this is to add the assembly to the References folder in the Solution Explorer.) Next, you need to add a @References directive at the top of the Web pages that will utilize these DataGrid columns like so:<%@ Register TagPrefix="accessibility" Namespace="AccessibilityControls" Assembly="AccessibilityControls" %>Finally, to use the columns, add a DataGrid to the Web page and set the AutoGenerateColumns property to False. In the HTML portion, add the following syntax:<asp:DataGrid runat="server" AutoGenerateColumns="False" ...> <Columns> <accessibility:AccessibleBoundColumn DataField="FieldName" ...> </accessibility:AccessibleBoundColumn> ... </Columns></asp:DataGrid>That's all there is to it! Figure 3 shows a screenshot of the HTML portion of an Web page that uses the AccessibleBoundColumn and AccessibleButtonColumn DataGrid column classes. Figure 4 shows a screenshot of the design view of that same page.Figure 3. Using the AccessibleBoundColumnFigure 4. AccessibleBoundColumn in the designerNotice that in the Visual Studio .NET Designer the DataGrid with the custom, accessible columns appears just like normal. Too, if you view the page through a browser that supports JavaScript (as Figure 5 shows), the DataGrid will be rendered as it normally is, with LinkButtons in the column headers and ButtonColumn. However, if you visit the page with a browser that doesn't support JavaScript, such as Netscape 1.0, the ButtonColumn and column headers will be rendered as Buttons (see Figure 6).Figure 5. AccessibleBoundColumn in up-level browserFigure 6. AccessibleBoundColumn in older browserAccessibility in WhidbeyThe server controls that ship in the next version of , codenamed Whidbey, will automatically generate Section 508-compliant markup by default. Furthermore, these server controls will emit WCAG-compliant markup as well. To top it off, Microsoft® Visual Studio® .NET 2005 will ship with an add-in to automatically check HTML markup for Section 508 and WCAG-compliance. For more information on these exciting additions, check out XHTML and Accessibility in Whidbey, a blog post from Scott Guthrie, co-founder of the team at Microsoft.For more information about Web site accessibility, be sure to check out Microsoft's Accessibility home page. There's also a Section 508 page as well, with resources on how various Microsoft products meet Section 508 standards.Related Books• Data Web Controls Kick Start• Unleashed•Web Accessibility for People with Disabilities•Accessibility for Everybody: Understanding the Section 508 Accessibility Requirements使一个 网站容易接近和理解①作者:Scott Mitchell②出版时间:May 2004摘要: 利用类的可继承性使得它们的代码可以被那些没有能力的人用和理解。
关于asp的外国文献

关于 概述的外国文献 OverviewWhen ASP was first released, Web programming was more difficult because you needed IIS to serve your ASP pages. Later, 2.0 and Visual Studio® 2005 made everything easier by introducing the Web site mo del of development. Instead of creating a new project inside Visual Studio, the Web site model lets you point to a directory and start writing pages and code. Furthermore, you can quickly test your site with the built-in Developmen t Server, which hosts in a local process and obviates the need to install IIS to begin developing.we will introduce 2.0 technology from different aspects.1.The .NET Framework Class Library is part of Microsoft's overall .NET framework, which contains a vast set of programming classes designed to satisfy any conceivable programming need.because Visual Basic, JScript, and C++. A great deal of the functionality of these programming languages overlaps.for example, for each language, you would have to include methods for accessing the file system, working with databases, and manipulating strings.what’s more, these languages contain similar programming constructs, can represent loops and cond itionals. Even though the syntax of a conditional written in Visual Basic differs from the syntax of a c onditional written in C++, the programming function is the same. Maintaining all this functionality for multiple languages requires a lot of work. Wouldn't it be easier to create all this functionality once and use it for every language?however, The .NET Framework Class Library does exactly that. It consists of a vast set of classes designed to satisfy any conceivabl e programming need.For instance, the .NET framework contains classes for handling database access, working with the file system, manipulating text, and generating graphics. In addition, it contains more specialized classes for performing tasks such as working with regular expressions and han ling network protocols. furthermore, The .NET framework contains classes that represent all the basic variable data types such as strings, integers, bytes, characters, and arrays.The .NET framework is huge. It contains thousands of classes (over 3,400). Fortunately, the classes are not simply jum bled together. The classes of the .NET framework are organized into a hierarchy of namespaces.A namespace is a logical grouping of classes. For example, all the classes that relate to working with the file system are gathered together into the System.IO namespace. The namespaces are organized into a hierarch y (a logical tree). At the root of the tree is the System namespace. This namespace contains all the classes for the base data types, such as strings and arrays. It also contains classes for working with random numbers and dates and times.You can uniquely identify any class in the .NET framework by using the full namespace of the class. For example, to uniquely refer to the class that represents a file syste m file (the File class), you would use the following:System.IO.FileSystem.IO refers to the namespace, and File refers to the particular class.The classes contained in a select number of namespaces are available in your pages b y default. (You must explicitly import other namespaces.) These default namespaces contain classes that you use most often in your applications: System— Contains all the base data types and other useful classes such as those related to generating random numbers and working with dates and times.System.Collections— Contains classes for worki ng with standard collection types such as hash tables, and array lists.System.Collections.Specialized— Contains classes that represent specialized collections such as linked lists and string collections.System.Configuration— Contains classes for working with configuration files (Web.config files).System.Text— Contains classes for encoding, decoding, and manipulating the contents of strings.System.Text.RegularExpressions— Contains classes for performing regular expression match and replace operations.System.Web— C ontains the basic classes for working with the World Wide Web, including classes for representing browser requests and server responses.System.Web.Caching— Contains classes used for caching the content of pages and classes for performing custom caching operations.System.Web.Security— Contains classes for implementing authentication and authorization such as Forms and Passport authentication.System.Web.SessionState— Contains classes for implementing session state.System.Web.UI— Contains the basic classes used in building the user interface of pages.System.Web.UI.H TMLControls— Contains the classes for the HTML controls.System.Web.UI.WebControls— Contains the classes for the Web controls.You can choose C# or or C++ or Visual Basic to program page. regardless of the language that you use to develop your pages, you need to understand that pages are compiled before they are executed. This means that pages can execute very quickly. The first time you request an page, the page is compiled into a .N ET class, and the resulting class file is saved beneath a special directory on your server named Temporary Files. For each and every page, a corresponding class file appears in the Temporary Files directory. Whenever you request the same page in the future, the correspo nding class file is executed. When an A page is compiled, it is not compiled directly into machine code. Instead, it is compiled into an intermediate-level language called Micros ft Intermediate Language (MSIL).All .NET-compatible languages are compiled into this intermediate language. An page isn 't compiled into ative machine code until it is actually requested by a browser. At that point, the class file contained in the Temporary Files directory is compiled with the .NET framework Just in Time (JIT) compiler and executed. The magical aspect of this whole process is that it happens automatically in the background. All you have to do is create a text file with the source code for your page.2.Building Forms with Web Server ControlsUseingseveral of the basic Web controls to represent standard HTML form elements such as radio buttons, text boxes, and list boxes. You can use these controls in your pa ges to create the user interface for your Web application..3.Performing Form Validation with Validation ControlsTraditionally, Web developers have faced a tough choice when adding form validation logic to their pages. You can add form validation routines to yourserver-side code, or you can add the validation routines to your client-side code. The advantage of writing validation logic in client-side code is that you can provide instant feedback to your users. For example, if a user neglects to enter a value in a required form field, you can instantly display an error me ssage without requiring a roundtrip back to the server.People really like client-side validation. It looks great and creates a better overall user experience. The pr port JavaScript, and different versions of browsers support different versions of JavaScript, so client-side validation is never guaranteed to work.For this reason, in the past, many developers decided to add all their form validation logic exclusively to server-side code. Because serve r-side code functions correctly with any browser, this course o f action was safer. At the same time, The Validation controls automatically generate both client-side and server-side code. If a browser is capable of supporting JavaScript, client-side validation scripts are automatically sent to the browser. If a browser is incapable of supporting JavaScript, the validation routines are automatically implemented in server-side code.Requiring Fields: The RequiredFieldValidator ControlYou use RequiredFieldValidator in a Web form to check whether a control has a value. Typically, you use this control with a TextBox control. However, nothing is wrong with using RequiredFieldValidator with other input controls such as RadioButtonList.Validating Expressions: The RegularExpressionValidator ControlYou can use RegularExpressionValidator to match the value entered into a form field to a regu lar expression. You can use this control to check whether a user has entered, for example, a valid e-mail address, telep hone number, or username or password. Samples of how to use a regular expression to perform all these validation tasks are provided in the foll owing sections.Comparing Va ues: The CompareValidator ControlThe CompareValidator control performs comparisons between the data entered into a form field and another value. The other value can be a fixed value, such as a particular number, or a value entered into another control.Summarizing Errors: The ValidationSummary ControlImagine that you have a form with 50 form fields. If you use only the Validation controls discussed in the previous sections of this chapter to display errors, seeing an error message on the page might be difficult. For example, you might have to scroll down to the 48th form field to find the error message.Fortunately, Microsoft includes a ValidationSummary control with the Validation controls. You can use this control to summarize all the errors at the top ofa page, or wherever else you want.4.Web Deployment ProjectsThe beauty of the 2.0 is that you can develop your Web application without thinking about packaging and deployment.when need another class ,you can Add a .cs file to the App_Code directory and start writing. When want to store localizable strings in a resource fil , you can add a .resx file to the App_GlobalResources directory and type in the strings. Everything just works; you don't have to think about the compilation and deployment aspect at all.When you are ready to deploy, you have several options. The simplest choice is to copy your file to a live server and let everything be compiled on-demand (as it was in your test environment). The second option is to use the aspnet_compiler.exe utility and precompile the application into a binary release, whi h leaves you nothing but a collection of assemblies, static content, and configuration files to push to theserver. The thir d option is to again use aspnet_compiler.exe, but to create an updateable binary deployment where your .as*x fil es remain intact (and modifiable) and all of your code files are compiled into binary assemblies.5.Advanced Control ProgrammingWorking with View StateBy default, almost all controls retain the values of their properties between form posts. For example, if you assign text to a Label control and submit the form, when the page is rendered again, the contents of he Label control are preserved. The magic of view state is that it does not depend on any special server or browser proper ties. In particular, it does not depend on cookies, session variables, or application variables. View state is implem ented with a hidden form field called VIEWSTATE tha t is automatically created in every Web Forms Page. When used wisely, view state can have a dra mati c and positive effect on the performance of your W eb site. For example, if you display database data in a co ntrol that has view state enabled, you do not have t o return to the database each time the page is posted back to the server. You can automatically preserve the data within the page's view state between form posts.Displaying and Hiding ContentImagine that you want to break the tax form into multiple pages so that a person views only one part of the tax form at a time.you can set the Visible and Enabled prop erties with individua l controls and groups of controls to hide and display page content. Using the Visible and Enabled PropertiesEvery control, including both HTML and Web controls, has a Visible property that determines w hether the control is rendered. When a control's Visible property has the value False, the control is not displayed on th page; the control is not processed for either pre-rendering or rendering.Web controls (but not every HTML control) have an additional property named Enabled. When Enable d has the value False and you are using Inte rnet Explorer version 4.0 or higher, the control appears ghosted and no longer functions. When used with other browsers, such as Netscape Navigator, the control might not appear ghosted, but it does n ot function.6.C# LanguageIntroduction to the C# Language and the .NET Framework C# is an elegant and type-safe object-oriented langu age that enables developers to build a wide range ofsecure and robust applications that run on the .NET Framework. You can use C# to createtraditional Windows client applications, XML Web services, distributed components, client-server applications, database ap plications, and much, much more. Microsoft Visual C # 2005 provides an advanced code editor, convenient user interface designers, integrated debugger, and many other tools to facilitate rapid application development based on version 2.0 of the C# language and the .NET Framework.C# syntax is highly expressive, yet with less than 90 keywords, it is also simple and easy to learn. The curly-brace syntax of C# will be instantly recognizable to anyone familiar with C, C++ or Java. Developers who know any of these languages are typically able to begin working productively in C# within a very short time. C# syntax simplifies man y of the complexities of C++ while providing powerful features such as nullable value types, enumerations, delegates, anonymous methods and direct memory access, which are not found in Java. C# also supports generic methods and types, which provide increased type safety and performance, and i behaviors that are simple to use by client code.As an object-oriented language, C# supports the concepts of encapsulation, inheritance and polymorphism. All variables and methods, including the Main method, the application's entry point, are encapsulated within class definitions. A class may inherit directly from one parent class, but it may implemen t any number of interfaces. Methods that override virtual methods in a par ent class require the override keyword as a way to avoid accidental redefinition. In C#, a struct is like a lightweight class; itis a stack-allocated type that can implement interfaces but does not support inheritance.In addition to these basic object-oriented principles, C# facilitates the development of software components through several innovative language constructs, including:∙Encapsulated method signatures called delegates, which enable type-safe event notifications.∙Pro perties, which serve as accessors for private member variables.∙Attributes, which provide declarative metadata about types at run time.∙Inline XML documentation comments.If you need to interact with other Windows software such as COM objects or native Win32 DLLs, you can do this in C# through a process called "Interop." Interop enables C# programs to do just about anything that a native C++ application can do.C# even support cess is abso lutely critical.The C# build process is simple compared to C and C++ and more flexible than in Java. There are no separate header file s, and no requirement that methods andtypes be declared in a particular order. A C# source file may define any number of classes, structs, interfac es, and events.C# programs run on the .NET Framework, an integral component of Windows that includes a virtual execution system called the common language runtime (CLR) and a unified set of class libraries. The CLR is Microsoft's commercial implementation of the common language infrastructure (CLI), an international standard that is the basis for creating execution and development environments in which languages and libraries work together seamlessly.Source code written in C# is compiled into an intermediate language (IL) that conforms to the CLI specification. The IL code, along with resources such as bitmaps and strings, is stored on disk in an executable file called an assembly, typically with an extension of .exe or .dll An assembly contains a manifest that provides information on the assembly's types, version, culture, and security requirements.When the C# program is executed, the asse mbly is loaded into the CLR, which might take various actions based on the information in the manifest. Then, if the security requirements are met, the CLR performs just in time (JIT) compilation to convert the IL code into native machine instructions. The CLR also provides other services related to automat ic garbage collection, exceptio n handling, and resource management. Code that is executed by the CLR is sometimes referred to as "managed code," in contrast to "unmanaged code" which is compiled into native machine language that targets a specific system. The following diagram illustrates the compile-time and run time relationships of C# source code files, the base class libraries, assemblies, and the CLR.Language interoperability is a key feature of the .NET Framework. Because the IL code produced by the C# compiler conforms to the Common Type Specification (CTS), IL code generated from C# can interact with code that was generated fromthe .NET versions of Visual Basic, Visual C++, Visual J#, or any of more than 20 other CTS-compliant languages. A single assembly may contain multiple modules written in different .NET languages, and the types can reference each other just as if they were written in the same language.In addition to the run time services, the .NET Framework also includes an extensive library of over 4000 classes organized into namespaces that provide a wide variety of useful functionality for everything from file input and output to string manipulation to XML parsing, to Windows Forms controls. The typical C# application uses the .NET Framework class library extensively to handle common "plumbing" chores.。
ASP的发展毕业论文外文文献翻译及原文免费范文精选

毕业设计(论文)外文文献翻译文献、资料中文题目: ASP的发展文献、资料英文题目:文献、资料来源:文献、资料发表(出版)日期:院(部):专业:班级:姓名:学号:指导教师:翻译日期: 2017.02.14The second,the past ISV (independent software provider ) and VAR (the trader that resells value-added service ), at Internet age , changed the marketing way in the past , would rely mainly on sale of the software product to change direction to rely mainly on the fact that right to use is leased in the past, bale from physics carrier encapsulation way change direction and long-range operation way main fact now, through the cooperation with network operator , realize the transition to ASP;The third ,IT service departments and traditional advisory companies of traditional large- scale organization, at the foundation known deeply in Internet , depend on long-term experience, is it carry on systematic design and implementation of scheme for other customer to begin, through establish in with trader who operates network and alliance relation between the application software manufacturer, realize the ASP provider that appears in the capacity of system integration trader.The second. The developing history and classification of ASP Seen from the present, ASP is as emerging and proposing formally it is only a thing from the end of 1998 to the beginning of 1999 of a kind of mode. And until from the end of 1999 to the beginning of 2000 to a great extent, ASP field relevant outstanding behaviours at the capital market of Company just cause people's extensive concern. In fact speaking from the intension and essence of ASP mode, it is not the brand-new things, but the mode that had once had, has been given the new vitality at Internet age. During this festival, we will review the course that ASP produce development and develop, in order to help the essence of better deep understanding ASP. At the end, we will concentrate on introducing the situation which enterprises divide from different standards in ASP field at present.The third. The development foundation of ASP modeASP as one brand-new concept, proposition and it takes shape to be just time for more than half a year of it, but in U.S.A. and other fast-developing countries of IT industry, ASP is becoming a kind of new developing business mode of leading e-commerce in the future, main maturity based on following IT technology of precondition that ASP produces and develops: Popularization of Internet: Internet deepens people's life progressively , a large number of solutions based on Web are emerging constantly, all these make long-range application scheme based on host computer become possible; The bandwidth is increasing and dropping with the price constantly constantly: Communication performance and bandwidth expenses reduced continuously increased, make the application program at the host computer able to visit through Internet and tight client; Whether client / server can use bysharing under the environment. The remote access in ASP concept , users have already been accustomed to under the enviroment of client / the server, this make remote access and is it is it become acceptable first business mode to use to share; The browser becomes figure interface application program accepting extensively: The wide application and development of the technology of the browser have gathered enough technology and human resources for the calculation based on the calculation of Web and thin client, and good user' s foundation; Potentiality of e-commerce solution: Advanced e-commerce solution, has shared a lot of thorny business and technological question together with concept of ASP, such as systematic security and dependability. So, the enormous motive force of e-commerce is promoting the advancing of ASP. The forth. China ASP market's overviewIn 2000, the total sales amount of China ASP market was 33 million dollars, accounted for 0.3% of global total sales amount. IDC is expected, the annual average rate of increase of the large China district ASP market will be 64% from 2000 to 2004, by 2004, the capacity of the large China district ASP market will reach 243 million dollars. China ASP market began to sprout when the beginning of 2000, remains the market for an unripe initial stage now, it show as the market store medium and small-scale specializing in using and serving Company that comes up to a large number in, it is mainly those traditional independent software developers , system integration trader and .com Company. But company these possess heavy competitiveness too at ability and Company scale that itself provide service.Internet of our country develops after going through fanatically, begins to tend towards reason and norm this year. It is exactly while summarizing and adjusting website's industry's development path now, we need to think and know Internet's own characteristic and advantage again for this. Its characteristics, such as high-efficient, simple and direct, individualized, resource-sharing, crossing over space-time and relatively cheap cost, etc., it is the motive power that it must use high-speed development. At the present, those companies specializing in offering service of using still face the challenge. First of all, in among being IT trade, is it is it serve these kind of mode far accept by masses even to use to sell, because most traditional trades have not realized yet that ASP way can bring the interests to them; Secondly, how to sell the application program in a kind of way which is similar to the whole solution, it is all important problems that ASP manufacturers face how to make pricing system; Finally, how be through offer application program service and traditional software sell mode participate in the competition, it is a question that China ASP should be pondered deeply too. And at present, the operation principles of most websites are remote from above-mentioned advantage and characteristic in Internet, the trains of thought of operation of websites seem that still stays in management mode and management theory in old era. But at the same time, the current situation of the Chinese market is that the competition is being aggravated constantly among enterprises, e-commerce is developed rapidly and ten millions of small and medium enterprises all generally lack the fund and well-trained job IT personnel, these reasons will promote the development in China of this kind of mode of ASP too. The scale of website of this kind of mode is like large-scale enterprises or large-scale company too, we can say although the sparrow is small, the five internal organs are available. A key job of believing that in the near future , the content will be made and the customer service will become websites. Even make the respect in the content, needn't make personnel totally regular and centralized either. The most emerging technology has already made us able to finish the organization, exchange of the webpage, format and transplanting in the twinkling of an eye on Internet directly, the huge administration inwebsite's company and personnel management organization will have passed out of existence; With the progress of the society, human life will be closely linked with Internet , website company is it invest a large amount of manpower and huge fund is it cover the sky and the earth , promote get households of propaganda of type to go on to need; And Chinese enterprise choose factor that ASP consider especially at the manufacturer concentrate on data security guarantee , professional IT quality respect of personnel too. Meanwhile, because such new service form confidence insufficient to ASP, reliance of degree one quite general phenomenon too to ASP manufacturer prestige. Rank choice factor after the factor these include the price , implement speed and expansibility of application program ,etc. also. But we are looking forward to, ASP service business that will be developed soon, will offer sectional system integration of the module service for website's construction. It can make individual set up homepage with perfect function need to set foot in any technological development even. So website operation can get rid of huge technological development and maintain organization from then on, this is the developing direction of ASP and trend of the market in the future. If we call it as making the undertaking totally all living key of websites to the future, that will not exaggerate at all. IDC thinks that in two years in the future, ASP market of China will move to maturity progressively, certainly will eliminate a batch of commercial modes in the unclear or company that one's own ability is worse too, by 2003, China ASP market will demonstrate the trend of steady growth. And in coordination with the applied software market, vertical trade ASP market, SCM applied software market, CRM applied software market will be that China's development will be very fast in the following two years, field of having more commercial opportunities.。
ASPNET毕业论文中英文文献

ASP毕业论文中英文资料外文翻译附件1:外文资料翻译译文 概述 是一个统一的 Web 开发模型,它包括您使用尽可能少的代码生成企业级 Web 应用程序所必需的各种服务。
作为 .NET Framework 的一部分提供。
当您编写 应用程序的代码时,可以访问 .NET Framework 中的类。
您可以使用与公共语言运行库 (CLR) 兼容的任何语言来编写应用程序的代码,这些语言包括 Microsoft Visual Basic、C#、JScript .NET 和 J#。
使用这些语言,可以开发利用公共语言运行库、类型安全、继承等方面的优点的 应用程序。
包括:•页和控件框架• 编译器•安全基础结构•状态管理功能•应用程序配置•运行状况监视和性能功能•调试支持•XML Web services 框架•可扩展的宿主环境和应用程序生命周期管理•可扩展的设计器环境 页和控件框架是一种编程框架,它在 Web 服务器上运行,可以动态地生成和呈现 网页。
可以从任何浏览器或客户端设备请求 网页, 会向请求浏览器呈现标记(例如 HTML)。
通常,您可以对多个浏览器使用相同的页,因为 会为发出请求的浏览器呈现适当的标记。
但是,您可以针对诸如 Microsoft Internet Explorer 6 的特定浏览器设计 网页,并利用该浏览器的功能。
支持基于 Web 的设备(如移动电话、手持型计算机和个人数字助理 (PDA))的移动控件。
网页是完全面向对象的。
在 网页中,可以使用属性、方法和事件来处理 HTML 元素。
页框架为响应在服务器上运行的代码中的客户端事件提供统一的模型,从而使您不必考虑基于 Web 的应用程序中固有的客户端和服务器隔离的实现细节。
该框架还会在页处理生命周期中自动维护页及该页上控件的状态。
使用 页和控件框架还可以将常用的 UI 功能封装成易于使用且可重用的控件。
控件只需编写一次,即可用于许多页并集成到 网页中。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
Making an Web Site AccessibleScott MitchellMay 2004Summary: Take advantage of inheritance in the .NET Framework to extend classes to make them generate code that is fully accessible to people with disabilities. (13 printed pages) IntroductionWhile the majority of online users are able to browse Web sites using Web browsers with the typical browser settings, users with disabilities commonly use alternative means to access online information. For example, a blind user might use a text-only browser that converts the text into Braille, or reads the text aloud using a screen reader. A person with reduced vision might still use a browser like Microsoft® Internet Explorer, but with a screen magnifier, or with the browser configured to use extra large font sizes. Motor disabilities might preclude a user from using the mouse or keyboard as an input device.Since people with disabilities typically surf the Web using special devices or non-standard browser configurations, a Web site's overall design and HTML markup greatly impacts the disabled person's user experience. For example, specifying font sizes using absolute measurements—like 10pt—displays the font in that absolute size, and not relative to the text size the user has configured in his browser. Sites that have a Flash or Shockwave interface, and do not provide an alternate, text representation, effectively cut off users with Braille devices or text-to-speech synthesizers. A Web site is said to be accessible if it is designed to transition gracefully to alternate devices.At this point, you might be thinking, "Why should I bother ensuring my Web site is accessible?" There are two good reasons I can think of:1.It's Good Business – According to the U.S. Census 2000, 49.7 million Americans have a disability; a June 2000 poll by Harris Interactive shows that 43% of disabled Americans are regular online users, and that users with disabilities spend almost twice as much time online than users without disabilities. Put the results of these two surveys together and you'll find that there are more than 21 million Americans with disabilities who are regularly online. By not taking the time to make your Web site accessible, you are cutting off 21 million potential visitors.2. It's a Mandate for Government Agencies – In 1998 the United State government passed Section 508 of the Rehabilitation Act, requiring Federal agencies to make their electronic information accessible to individuals with disabilities. This law provides accessibility guidelines for software applications andWeb applications, as well as telecommunication products and video products. Not only are Federal agencies required to implement accessibility guidelines, but also private companies that are contracted to work for the Federal government. (A number of countries outside the U.S. also have similar accessibility requirements for government agencies.) Therefore, creating accessible Web applications is required if you work for the government or for a company that provides services to the government.In this article we will discuss what steps you can take to ensure that your Microsoft® Web site is accessible. We'll take a brief look at the official accessibility guidelines available today, and then focus in on the accessibility guidelines used by the United States government. The article wraps up with a look at how to use inheritance to turn non-accessible Web controls into ones that meet accessibility guidelines.The WAI, WCAG, and Section 508There are a number of steps that can be taken to make a Web site more accessible. But what, exactly, are these steps, and how many of them does one site need to employ in order to be considered accessible? The answers to these questions differ based on who you ask, and what level of accessibility they need to provide. An intranet site for a Fortune 500 company would likely require a higher degree of accessibility than an intranet site for a company with only 25 employees.The WC3's Say on AccessibilityTo help formalize this discussion, in 1999 the WC3 officially founded the Web Accessibility Initiative (WAI), a group tasked with improving Web site usability for people with disabilities. The WAI's first act was to publish the Web Content Accessibility Guidelines, or WCAG. The WCAG provides a list of 14 guidelines for accessible Web site design. The guidelines themselves do not spell out actions to take to make a Web site more accessible. Rather, they are high-level statements that provide comment on how to ensure accessibility. For example, guideline 1 is "Provide equivalent alternatives to auditory and visual content." Accompanying each guideline is a set of checkpoints. The checkpoints spell out actions that can be taken to ensure that the accessibility guideline is met. Each checkpoint is given one of the following priority values:• Priority 1 – a Web developer must satisfy this checkpoint, otherwise one or more groups of users will not be able to access the content.• Priority 2 – a Web developer should satisfy this checkpoint, otherwise one or more groups of users will find it difficult to access the content.• Priority 3 –a Web developer may address this checkpoint, otherwise one or more groups of users might have difficulty when accessing the content.In addition to listing the 14 guidelines and their associated, prioritized checkpoints, the WCAG also provides a three-level classification scale for Web site accessibility. Sites that implement all Priority 1 checkpoints are rated at conformance level A. Those that implement all Priority 1 and Priority 2 checkpoints are rated Double-A, while those that implement all of the checkpoints are rated Triple-A.The WCAG gives a good set of actions to perform to ensure varying levels of accessibility.Although a thorough discussion of the WCAG is beyond the scope of this article, listed below are the 14 high-level guidelines of the WCAG. The checkpoints for each guideline, and their associated priority, can be found at the official Web Content Accessibility Guidelines 1.0 specification.15. Provide equivalent alternatives to auditory and visual content16. Don't rely on color alone17. Use markup and style sheets and do so properly18. Clarify natural language use19. Create tables that transform gracefully20. Ensure that pages featuring new technologies transform gracefully21. Ensure user control of time-sensitive content changes22. Ensure direct accessibility of embedded user interfaces23. Design for device-independence24. Use interim solutions25. Use W3C technologies and guidelines26. Provide context and orientation information27. Provide clear navigation mechanisms28. Ensure that documents are clear and simpleMicrosoft's Accessible Web Controls for 1.x.Many of the WCAG checkpoints and Section 508 rules dictate specific HTML markup that should be used to make a Web site more accessible. For example, checkpoint 5.1 in the WCAG (a Priority 1 checkpoint) and rule (g) in Section 508 requires that <table> elements properly identify row and column headers. That is, the <td> element must be used to identify data cells, whereas <th> must be used to identify headers.When building Web sites, developers rarely have to worry about generating HTML markup. Rather, Web controls are used that emit the proper markup. Unfortunately, many of the Web controls emit markup that violates the accessibility rules outlined by the WCAG and Section 508. Since all Web controls are, fundamentally, classes in the Microsoft® .NET Framework, their functionality can be extended in a number of ways to conform to accessibility guidelines.A prime example of enhancing an existing Web control to meet accessibility guidelines can be seen with the DataGrid Web control. The DataGrid Web control that ships with the .NET Framework does not conform to rule (g) in Section 508 / checkpoint 5.1 in the WCAG. That is, the headers are rendered using <td> elements instead of <th>. (To see what I mean, check out this live demo, and do a View/Source in your browser. You'll see that the header row uses <td>s rather than <th>s.) However, in June 2003 Microsoft released an Hotfix Rollup Package that, among other things, includes an improved version of the DataGrid, one that conforms to rule (g) in Section 508.Note The Hotfix Rollup Package provides other accessibility-related enhancements. Forexample, it adds an optional AssociatedControlID property to the Label Web control to specify the ID of the Web control the Label is associated with. If this property is provided, the Label is rendered as a <label> HTML element with the for attribute referencing the specified Web control. For more information consult this knowledge base article.Creating An Adaptive, Accessible DataGrid Web ControlThe Web controls provided in the June 2003 Hotfix bring the Web controls up to Section 508 standards. Even with the Hotfix, however, there are still a number of WCAG Priority 1 checkpoints not being met. Fortunately you can easily extend the functionality of existing Web controls to conform to the accessibility guidelines required by your company. This is possible thanks to the power of inheritance. Specifically, we can take a Web control that does not conform to the accessibility standards, and create an extended Web control that does conform to the standards. By using inheritance, we only have to change or add the functionality to make the control conforming to the standards, and do not have to rewrite the base functionality.WCAG Checkpoint 6.3 reads: "Ensure that pages are usable when scripts, applets, or other programmatic objects are turned off or not supported. If this is not possible, provide equivalent information on an alternative accessible page. For example, ensure that links that trigger scripts work when scripts are turned off or not supported (for example, do not use "javascript:" as the link target)." However, the LinkButton Web control is rendered as a hyperlink with a javascript: link target (<a href="javascript:__doPostBack('...','...')">...</a>). The problem is that browsers that don't support JavaScript won't be able to postback the Web page by clicking on the LinkButton. This renders sortable DataGrids unsortable in browsers that don't support JavaScript since the column headers are rendered as LinkButtons.The remainder of this article looks at building a set of adaptive custom DataGrid columns that will display a Button Web control in the header of a sortable DataGrid if it is visited by a browser that doesn't support JavaScript. The Button Web control works for browsers that do not support JavaScript since it renders a <input type="submit"> tag rather than a hyperlink with a javascript: link target.Note Section 508 does not require that links not use the javascript: link target. Section 508's sole comment on client-side script can be found in rule (l), which reads: "pages utilize scripting languages to display content, or to create interface elements, the information provided by the script shall be identified with functional text that can be read by assistive technology." What this rule requires is that if content is generated by script, or if a page's behavior is modified via script, that a <noscript> HTML element be used with an explanation of the script behavior. Regardless, I have heard from several developers working on government projects that required them to support browsers without JavaScript functionality. Making DataGridColumn AdaptiveThe DataGrid Web control is comprised of a number of columns, which are classes that derive from the System.Web.UI.WebControls.DataGridColumn class. ships with five built-in DataGridcolumn types:1. BoundColumn2. ButtonColumn3. EditCommandColumn4. HyperLinkColumn5. TemplateColumnThe base class, DataGridColumn, provides the properties and methods inherent to all DataGrid column types. These include properties like HeaderText, SortExpression, Visible, and others. The DataGridColumn class has two methods that play an important role in creating a DataGrid: •Initialize() –initializes the DataGridColumn. Called once per column during the DataGrid's databinding process.•InitializeCell(cell, index, itemType) – called for each cell that is created during for each column during the DataGrid's databinding process. Cell is a TableCell object representing the actual HTML <table> cell for the cell being initializes; index is the row index of the cell being initialized; itemType is value from the ListItemType enumeration, specifying what type of cell is being added (Item, AlternatingItem, Header, Footer, EditItem, and so on.The DataGridColumn class is responsible for rendering the header and footer for the column. The derived classes –BoundColumn, ButtonColumn, EditCommandColumn, etc. –are responsible for rendering the DataGrid items.Note For more information on creating custom DataGrid columns, check out Marcie Robillard's article Creating Custom Columns for the DataGrid.To have our DataGrid adaptively render the header based on whether or not the user's browser supports JavaScript, we need to create a custom DataGrid class that is derived from DataGridColumn. This custom DataGrid column class, named AccessibleDataGridColumn, will need to override the DataGridColumn class's InitializeCell() method, checking to see if the DataGrid is configured for sorting and being visited by a browser that doesn't support JavaScript. If these two conditions are true, then AccessibleDataGridColumn will render a Button in the header as opposed to a LinkButton. The code for this class is shown below:Public Class AccessibleDataGridColumnInherits DataGridColumnPublic Overrides Sub InitializeCell( _ByVal cell As TableCell, _ByVal columnIndex As Integer, _ByVal itemType As ListItemType)Dim sorting As Boolean = _Not Me.Owner Is Nothing _AndAlso Me.Owner.AllowSorting _AndAlso Me.SortExpression.Length > 0Dim supportsJS As Boolean = _Not HttpContext.Current Is Nothing _AndAlso HttpContext.Current.Request.Browser.JavaScriptIf sorting And Not supportsJS _And itemType = ListItemType.Header And Not Me.DesignMode _Then If Me.HeaderImageUrl.Length > 0 ThenDim b As New ImageButtonb.AlternateText = Me.HeaderTextb.ImageUrl = Me.HeaderImageUrlmandName = "Sort"mandArgument = Me.SortExpressionb.CausesValidation = False cell.Controls.Add(b)ElseDim b As New Buttonb.Text = Me.HeaderTextmandName = "Sort"mandArgument = Me.SortExpressionb.CausesValidation = Falsecell.Controls.Add(b)End IfElse MyBase.InitializeCell(cell, columnIndex, itemType)End IfEnd SubEnd ClassThe overridden InitializeCell() method checks to see if sorting is enabled, if the current browser does not support client-side JavaScript, if the current item being initialized is a header, and if the rendering is not being performed in Microsoft® Visual Studio® .NET's designer. If this check passes, then another check is performed to determine if the column has a HeaderImageUrl value specified. If it does, it renders an ImageButton, setting its AlternateText to the column's HeaderText. If there is no HeaderImageUrl specified, a Button is created and added to the cell.Note Notice that the check to see whether or not a browser supports JavaScript simply looks up Request.Browser.JavaScript property. This property is set based on the User-Agent string sent by the browser to the Web server. The adaptive DataGrid will render Buttons in the header for a sortable DataGrid when someone visits with a browser that is known not to support JavaScript, such as Netscape 1.0, or Lynx. If someone visits with Microsoft® Internet Explorer 6.0 it will render the defaultLinkButtons, even if the visitor has manually turned off JavaScript support.Using the Accessible DataGrid Column Classes in an Web PageThis article's download includes two Microsoft® Visual Studio® .NET 2003 projects (both Visual Basic .NET projects): the first is a class library that contains the custom DataGrid column classes; the second is an Web application that you can use to test out the adaptive, accessible DataGrid column classes.To use these custom DataGrid column classes in an Web project you need to first add the compiled assembly of the custom DataGrid column classes to the Web project's /bin folder. (If you are using Visual Studio .NET, the simplest way to do this is to add the assembly to the References folder in the Solution Explorer.) Next, you need to add a @References directive at the top of the Web pages that will utilize these DataGrid columns like so:<%@ Register TagPrefix="accessibility" Namespace="AccessibilityControls" Assembly="AccessibilityControls" %>Finally, to use the columns, add a DataGrid to the Web page and set the AutoGenerateColumns property to False. In the HTML portion, add the following syntax:<asp:DataGrid runat="server" AutoGenerateColumns="False" ...> <Columns> <accessibility:AccessibleBoundColumn DataField="FieldName" ...> </accessibility:AccessibleBoundColumn> ... </Columns></asp:DataGrid>That's all there is to it! Figure 3 shows a screenshot of the HTML portion of an Web page that uses the AccessibleBoundColumn and AccessibleButtonColumn DataGrid column classes. Figure 4 shows a screenshot of the design view of that same page.Figure 3. Using the AccessibleBoundColumnFigure 4. AccessibleBoundColumn in the designerNotice that in the Visual Studio .NET Designer the DataGrid with the custom, accessible columns appears just like normal. Too, if you view the page through a browser that supports JavaScript (as Figure 5 shows), the DataGrid will be rendered as it normally is, with LinkButtons in the column headers and ButtonColumn. However, if you visit the page with a browser that doesn't support JavaScript, such as Netscape 1.0, the ButtonColumn and column headers will be rendered as Buttons (see Figure 6).Figure 5. AccessibleBoundColumn in up-level browserFigure 6. AccessibleBoundColumn in older browserAccessibility in WhidbeyThe server controls that ship in the next version of , codenamed Whidbey, will automatically generate Section 508-compliant markup by default. Furthermore, these server controls will emit WCAG-compliant markup as well. To top it off, Microsoft® Visual Studio® .NET2005 will ship with an add-in to automatically check HTML markup for Section 508 and WCAG-compliance. For more information on these exciting additions, check out XHTML and Accessibility in Whidbey, a blog post from Scott Guthrie, co-founder of the team at Microsoft.For more information about Web site accessibility, be sure to check out Microsoft's Accessibility home page. There's also a Section 508 page as well, with resources on how various Microsoft products meet Section 508 standards.Related Books• Data Web Controls Kick Start• Unleashed•Web Accessibility for People with Disabilities•Accessibility for Everybody: Understanding the Section 508 Accessibility Requirements使一个 网站容易接近和理解①作者:Scott Mitchell②出版时间:May 2004摘要: 利用类的可继承性使得它们的代码可以被那些没有能力的人用和理解。