Net C # MVC

Source: Internet
Author: User
Tags blank page http 2
What is net? First, it is an environment that not only supports development console applications Program Web applications, Windows applications, mobile development, web Service Development distributed development server and client development crystal report development. In the future, the computer Groups distributed in different places can be jointly developed. The core is Clr and a large class library. CLR (runtime in general language) provides services for program running, such as memory management, thread management, agent management, security management, spam management, and error correction functions to speed up program running. of course, net also supports uncontrolled Code That is, it is not managed by the CLR, so that it cannot enjoy some services such as security spam provided by the CLR. third: net has a huge ambition: it is also the core concept of net design: that is, the development of distributed systems, from single-host Client/Server models and Web websites to distributed development, through the cross-platform, unrelated SOAP protocol and Web Service, interfaces with different functions are upgraded from a part of the software to the network, thus implementing distributed development, using "service" Third: Net actually only has one language: msil (Microsoft intermediate language), but it supports more than 20 languages, and msil is open-source, that is to say, as long as the corresponding conversion program is developed, it can support any language framework learning: Spam management: managed heap controlled heap Assembly: self-described entity metadata loading and uninstallation to facilitate Version Control of Dell region security: guid latency signature application domain has advantages over historical processes: historical processes isolate each application. If data needs to be exchanged between processes, you can use the proxy application domain: 1. A process can have multiple Application domain. If an application domain error occurs, you do not need to disable the entire application. Instead, you only need to disable the application domain that has the error, then reload 2 errors in one application domain will not affect other application domains 3 one application domain cannot access another application domain, you can access an application called the Western region (local access) by copying the objects needed in the application domain. You can also remotely access the 4 assembly and application domain through the proxy method: when running the program, load the Assembly first. You can load the shared assembly that is frequently used by some objects to a neutral application domain, in this way, all programs can be accessed and loaded to the neutral application domain, instead of all loaded. This saves memory space. 5: application domain and thread 1. Microsoft plans to use 27 billion US dollars for propagation. the starting point of netnet is distributed. 2webservice is equivalent to an API function or an interface of a class method, however, it is not distributed in different parts of the software, but distributed across different networks. 3. After realizing the concept of software as service as a service, you can distribute the software. On the network, order "service 4 soap and web services with different functions as needed. net core web service definition: is a kind of self-description, self-contained, modular application, can call three major Web service protocols for other Web applications: Soap uses XML, in this way, the differences between platforms are shielded so that they are irrelevant to the platform and the operating system. Soap: Simple Object Access Protocol: soap provides the WSDL Web Service Description Language disco in the distributed system: advantages of Web Service Discovery Protocol: 1. platform-independent interaction between service requestor and service provider is designed to be completely platform-independent, through the WSDL language and the HTTP protocol supported by the current platform to ensure platform independence 2 Just In Time Integration instant Integration Technology disco ensures that the service is self-configured and robust, it directly binds the request service with the service provider to achieve distributed processing. Each user does his/her own work, and no host is encapsulated. the user only needs the service interface. You can use the service WebService system: deploy the Web service to the Web, and use the WSDL description to publish: publish the Web service to the Web, the Service proxy (server broker) to help service providers and service requestor discover and return each other: the proxy processes user requests and returns results, and then binds the requester to the Service (BIND ), so that the requester can call the service-oriented architecture SOA: three roles: service provider: publish service broker: Register and classify the service providers that should be published, it also provides a search service to facilitate service requester search. service requester: three operations: publish: Service Provider registers its own functions with service broker and its access interface find: Service Requester searches for service bind with specific functions through service broker: enables service requester to truly use web service functions. The web service platform is: xml http soap wsdl uddi will be added in the future: xmal xlang xkms xfs soap: Simple Object Access Protocol: defines the way XML data is transmitted, and how to execute remote Call (RPC) based on the underlying communication protocol HTTP) the method has three contents: 1xml-envelope: 1 defines how to describe general information, data in XML format, information 2 Remote Call conventions: RPC 3 HTTP simply says soap = XML + RPC + HTTP 2 UDDI: Universal Description discovery and Integration: provides a framework core component used to describe and discover commercial services: UDD I commercial registration, the information provided by it contains three aspects: White Pages: Provides addresses, contact methods and known Enterprise yellow pages; provides: industry category green leaf based on standard classification: includes the technical information of the web service provided by the enterprise. 3. WSDL WebService Definition Language: used to define WebService and describe the function of a WebService. Where is it, how to call and other content UDDI describes most aspects of a Web service, while UDDI can be seen as a subset of it. How can users in a understand what Web Services in B mean, this requires a common standard to define that both IBM and Microsoft support WSDL as the standard language for Web Services. 4 xlan: the traditional concept of transaction processing in databases is atomicity, that is, whether or not to do so, either do it all, maintain this concept in a distributed system, that is, use two promised methods to process transactions; xlan is the future direction: xlan concept: each action has a complementary action, for example, you can retrieve 100 yuan It will save 100 RMB. This technology is still under research, for example, for this simple Web Service: Its soap: [webmethod (description = "returns two counts and")] public int add (INT num1, int num2) {return num1 + num2;} during a request: host is the host address to be requested, and length is a variable, the total number of bytes of the Request soap will be expressed based on the Length Change of the int value entered by the user. Post/vs2005/Web % 20 service/WebService. asmx HTTP/1.1 HOST: localhostcontent-type: Application/soap + XML; charset = utf-8Content-Length: length <? XML version = "1.0" encoding = "UTF-8"?> <Soap12: envelope xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xmlns: XSD = "http://www.w3.org/2001/XMLSchema" xmlns: soap12 = "http://www.w3.org/2003/05/soap-envelope"> <soap12: body> <add xmlns = "http://tempuri.org/"> <num1> int </num1> <num2> int </num2> </Add> </soap12: body> </soap12: envelope> HTTP/1.1 200 okcontent-type: Application/soap + XML; charset = utf-8Content-Length: length when responding: return the result to the caller, the response is also XML file <? XML version = "1.0" encoding = "UTF-8"?> <Soap12: envelope xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xmlns: XSD = "http://www.w3.org/2001/XMLSchema" xmlns: soap12 = "http://www.w3.org/2003/05/soap-envelope"> <soap12: body> <addresponse xmlns = "http://tempuri.org/"> <addresult> int </addresult> </addresponse> </soap12: Body> </soap12: envelope> WSDL is a language that describes all web services. It allows different platforms and companies to recognize the functions of Web Services, call method and so on. For example, the following is a description of the type of the required parameter for adding two numbers. Points: WSDL is a definition file in XML-Shema format-<s: element name = "add">-<s: complextype>-<s: sequence> <s: element minoccurs = "1" maxoccurs = "1" name = "num1" type = "s: int"/> <s: element minoccurs = "1" maxoccurs = "1" name = "num2" type = "s: int"/> </S: sequence> </s: complextype> </S: Element>-<s: element name = "addresponse">-<s: complextype>-<s: sequence> <s: element minoccurs = "1" maxoccurs = "1" name = "addresult" type = "s: int"/> </S: seq Uence> </S: complextype> </S: Element> SOA: service-oriented, combined with Ajax, the Web Service + Ajax technology can achieve a leap of web technology, which aggregates the hard work of others on websites and integrates them into their own websites with innovative ideas, for example, if you have a website that stores the search results of Baidu Google on your own website for users to choose from, you can directly browse this website. There are many other websites, as long as you are innovative, you can design a profitable web.2.0 website to join you with an ambitious website goal, but you have not had so many experiences to do it, we can extract the functions we need from other mature websites to form a website. This means that web Ajax is not a new technology, but Web is a new idea, as long as innovation can make money, Web 2.0 Ajax RSS technology web service must learn to customize services, so the underlying saop-related technologies must learn to realize their dreams seriously. Learn the above technologies. For example, the website sports news comes from Sina. Different games come from different game master operators and then all the information is organized. A website can integrate all the things to customize pages, you can provide users with a desktop: What folders are displayed on the desktop image interface? You can introduce computer-related technologies into the Internet. For example, opening a webpage is a variety of icons, my computer has my files, which are fully organized by users. Each person has a desktop network with a start menu, every aspect of the computer can be associated with the current computer and the remote computer. Other computers can be operated remotely and have customized services, there are also adding functions to provide services for users. The Strategy in the game uses all the small icons of World of Warcraft, And the Start Menu program places all the features customized by the user. the Start menu is commonly used by users and can have a virtual desktop background, music connects to major websites, and each person has a manager, which forms a client and forms a network computer interface, everyone has a home that allows users to open a website without opening any other websites. Users need to manage what they need. 1. RSS2 is required for indexing. When users enter contacts, the names of all users starting with a can be automatically displayed, this is an Ajax application. 3. You can drag a graph or other things on the webpage. This is also required for website promotion. 4. The Hype is good. For example, if a woman described it before, she would step on the cat, event Ajax design pattern that can be thought ": <embrace change> This book involves the design model-related content, "Mythical man-month" 1. refactoring 2 encapsulation (because different browsers use different Ajax principles, therefore, some technologies must be encapsulated. Ajax encapsulates different underlying browsers, so developers do not need to write such if statements. microsoft helped us design the code.) The design pattern is the most popular word in software development and the most tempting flash point in the interview! The reason for software corruption: -- maintainability is King 1 too stiff ?? On the contrary: to make the software scalable (new performance can easily join the system) 2 too fragile ?? Flexibility (changes will not affect others) 3. Low reusability ?? 4 is the viscosity too high ?? Insertion ability (new functions are easy to add to the system (airbags are added to the steering wheel) Explanation: Too stiff, too fragile, low reuse rate, high viscosity of the system will inevitably lead to a reduction in maintainability. In turn, scalable, pluggable, and flexible designs are the foundation for improving maintainability, but they do not necessarily guarantee maintainability. The system developed by some people is highly flexible. All database fields can be dynamically added or deleted, and tables can also be dynamically built. High flexibility, insertion, and scalability. However, the Code is too complex, and the data cannot be read, let alone modified. At this time, the maintainability is very low. Even when maintaining the code, you may accidentally touch some key components to cause system problems. Sometimes I advocate writing code for developers (Note: it is not a comment ). Some codes are not for the customer, but for the developer. Including necessary error locating tools, internal debugging breakpoints, and performance counters. These codes can help improve the maintainability of the system. In short, maintainability is a comprehensive concept. No one can predict what changes will happen to the customer's needs. Both "Preparations" and "Preparations" are a good starting point to improve maintainability. Test-driven development and contractual development are also helpful for improving maintainability .? Several principles for improving system reusability: Traditional reuse: 1. Code pasting reuse 2. algorithm Reuse 3. data Structure reusability * maintainability and reusability are not exactly the same. The following principles can be used to increase the maintainability of a program: 1. "open-closed" principle (OCP) the principle of open-closed principle is that a software entity should be open to extensions and closed to modifications. Ii. LSP liskov substitution principle: Subtypes must be able to replace their base types. Iii ,? Dependency inversion principle (DIP) iv ,? Interface isolation principle (ISP) 5 ,? Synthesis/aggregation Reuse Principle (CARP) vi ,? The "open-closed" principle (OCP) requires us to make the software as extensible as possible when designing the software, the principle of closed open-closed principle is that a software entity should be open to extensions and closed to modifications. Advantages :??? By extending existing software systems, new behaviors can be provided to meet new software requirements, so that the software in change can have certain adaptability and flexibility .??? Existing software modules, especially the most important abstract layer modules, cannot be modified, which makes the software system in change stable and continuous. Vivid example: the Monkey King was a new challenge for the Monkey King. The Monkey King said, "'The Emperor will take turns and arrive at my house next year. 'The only teach him to move out and let the tiangu on me! "Too white, Venus suggested to the Jade Emperor that the challenge would be:" Let's move on to the secret and announce the upper limit ..., One does not work hard, and the other does. "In other words, it is" closed "if you do not work hard and do not damage the rules, and" open "if you accept the sin youdao ". The path to recruitment is the "openness-closure" principle of the Yudi tianting. The key to the regulation of security is that it is not allowed to change the existing order of heaven, but it is allowed to include the demon monkeys in the current order, thus expanding this order. In an object-oriented language, the abstraction layer of the system is not allowed to be changed, but the Implementation Layer of the system is allowed to be changed. Ii. LSP liskov substitution principle: Subtypes must be able to replace their base types. In turn, the replacement cannot be set up, "Mo Zi • Xiaoyao" said: "Oh, beauty, love, not beauty ...... "Ghost is my sister, and my brother loves my sister because the two are siblings, not because my sister is a beauty. Therefore, loving a sister is not the same as loving a beauty. It is described in object-oriented language. Beauty is a base class, and sister is a child class of beauty. As a "Love ()" method, brother accepts sister as a parameter. Therefore, this "love ()" method generally cannot accept the beauty instance. Iii ,? The dependency inversion principle (DIP) depends on the inversion (dependence inversion principle) principle. The principle is to rely on abstraction, not specific. In short, the dependency inversion principle requires the client to rely on abstract coupling. Principle Description: Abstraction should not depend on details; details should depend on abstraction; interface programming rather than implementation programming. Negative example: disadvantage: If the coupling is too tight, changing light will affect toggleswitch. Solution 1: Abstract light and inherit the class from light. Advantage: toggleswitch depends on the abstract class light and has higher stability. bulblight and tubelight inherit from light and can be extended according to the "open-closed" principle. As long as the light does not change, the changes between bulblight and tubelight will not affect toggleswitch. Disadvantage: it is very difficult to use toggleswitch to control a TV. TV cannot be inherited from light. Solution 2 :? Advantage: it is more general and stable. Conclusion: The dependency relationships created by traditional procedural programming are dependent on details, which is poor because the policies are affected by changes in details. The dependency inversion principle makes the details and policies depend on abstraction. The stability of abstraction determines the stability of the system. 4 ,? Interface segregation principle: it is better to use multiple special interfaces than to use a single total interface. In other words, from the perspective of a customer class: the dependence of a class on another class should be based on the minimum interface. An interface that is too bloated is a pollution to the interface. Customers should not be forced to rely on methods they do not need. 5 ,? Composite/aggregate Reuse Principle or carp is often referred to as Composite Reuse Principle or CRP ), it is to use some existing objects in a new object to make it a part of the new object. New objects reuse existing functions by delegating these objects. In short, we should try to use synthesis/aggregation instead of inheritance. Vi ,? The law of Demeter (or the short form of dump) is also called the least knowledge principle (least knowledge principle or LKP). That is to say, an object should have as little understanding as possible about other objects. Other Expressions :?? Only communicate with your friends directly ?? Don't talk to "Strangers ?? Each software organization has only the minimum knowledge of other units and is limited to software units closely related to the same unit. Demeter's law and design pattern Facade Pattern and Mediator Pattern make the people ignorant of Lao Tzu, Chapter 3 said: "It is based on the governance of the sage, and its heart, its belly, and ambition are weak, it often makes people ignorant and heartless. The "Ignorance" of the "ruling" object is in the "Ignorance" state, which can reduce the cost of "ruling. The so-called "Minimum knowledge" principle is actually the rule of Lao Tzu's "ignorance of the people. Exchange with Lao Tzu cloud: "small country and few people ...... Neighboring countries look at each other and hear each other from each other. "Isolate the ruled objects so that they do not have direct communication, which can achieve the effect of splitting and then divide and conquer them separately. The dimit rule coincides with Lao Tzu's "little country and few people" rule. MVC is the abbreviation of three letters: modol Mode Controller view the traditional MVC view is a Web page, displaying various content the controller is CGI, PHP or ASP. net and Server Dynamic Interaction traditional MVC data streams are integrated into the view, according to the interaction to display the response data Ajax using MVC design web page: Benefits: can achieve division of labor operations, it is the mainstream artist in the future to engage in artists, programming, and so on. View function in Ajax: provides a visual interface, monitors the operations on the interface and interacts with the Controller to display the required data. For example, for a webpage: design the display style of the webpage, what the webpage will display, and what controls it has, as for the business logic, there is no need to understand, no need to design, only design the appearance of the web page, so no other knowledge, you only need to design the web page, do not include the logic section in the style View Design Using CSS: <input type = "button" value = "hello" onclick = "showresult (" data. XML "," name ")"/> although the above is correct, it does not comply with MVC, because it will bring confusion to the artist, the correct method: A good artist is a genius. I think that artist Picasso sometimes plays a decisive role in the appearance of a webpage. Therefore, it is necessary to make the artist Professional (or not very good, the artist must also know what onclike means, which will reduce the artist's specialization, but this method is acceptable to the artist) <input type = "button" value = "hello" onclick = "showresult ()"/> then design the function ABC (event) in the business logic layer) {showresult ("data. XML "," name ");} the artist can use only one function name. You do not need to know anything else. You only need to know that this is a click event, A good artist should focus on using existing parts to create a beautiful webpage interface, instead of paying too much attention to it. The more professional the artist works, the more helpful it is to design. The more attractive the interface, the best way to create a webpage: you only need to tell the artist that a div is needed here or there should be a button: <Div id = "test"> or <input type = "button" id = "test" value = "hello"/> the artist only needs to attend the meeting, even the surface knowledge of the event does not need to know the following Ajax knowledge to write the event: First, you need to get the node: function ABC ("test. XML "," name ") {} and then in window. add callback function var butu = Document in onload. getelementbyid ('test'); butu. onclike = ABC; // note that when using this method to call back a function, you do not need to (), but use the function name to further divide the work, reducing the knowledge requirements of the artist, in this way, we can focus on how to enable the personnel at the business logic layer of the webpage artist to design the business logic of the page. Here we need a button, an event, and what functions will be available after clicking it, during the design, we should use a function name instead, and then tell the programmer the function of this button event. The underlying function writing is completely the work of the programmer, so we can have a better division of labor: the business logic personnel are responsible for designing the overall business logic (indicating the Display Effect of the web page, how to display the area, display button, or Textbox, only need to tell the artist how to display, as for the specific design and CSS design, there is no need to take the design, but also to plan the business logic and plan the functions of the entire web page.) After the design, the artist needs to be handed over to the artist, write some functions to the programmer so that the programmer will get a function name and a function description to implement the function. In this way, the business logic layer personnel do not need to design the color display of the web page, you do not need to write specific programs. At the same time, programmers can focus only on how to write programs, and others do not need to pay attention to, thus realizing the division of views, the artist does not need to pay attention to the business aspects, the more in line with the MVC Controller: that is, the processing method that the control in the webpage needs to respond to: Traditional Controller: mydocument. onclick = showanimatedmoney is the built-in handler list of the Controller: DOM object in event Ajax: onmouseover: the first time the mouse passes through the space area onmouseout: the first time the mouse leaves the space area onmouseover: move the mouse in the control area onclick: shubiao click onleypress: The key event onfocus: Get focus onblur when the control gets the focus of the input: the current method is used: here we usually use the observation mode listener. Modal entity: encapsulates data into a javascript class in Ajax, and all database operations are performed in this class, this class contains all the methods for data operations. Ajax usage of modal: 1. Use the ORM tool to retrieve the data model from the database (on the server side) 2. Use XML to encapsulate the model 3. Create JavaScript Model 4 at the layer establishes a mechanism for returning a database model from Javascript. In Ajax development, we use CSS to operate on as few tables as possible. The HTML language only places parts on the page, all typographical la S. position placement uses CSS to control the location of controls based on JavaScript that needs to be properly used. Ajax server development: Although Ajax is an integration of Client technology, but in fact, what makes Ajax really useful is the interaction with the server, that is, some of our common Ajax technologies, server-side structure, two-layer architecture, three-layer architecture, seven-layer architecture, three-layer architecture: display interface, database, the business logic display interface is responsible for connecting to the database to extract the required data. The business logic and database operations are written together. layer-N architecture: a dog bites a hedgehog and cannot start with 1. The entity layer encapsulates the database. For example, a table can be encapsulated. 2. The data interface layer accepts the Data Object (that is, the previously encapsulated entity) it contains various database operations. If the SQL statement is good, ADO. net is good, you can focus on the homework data interface layer Note: Here it accepts the parameter is the entity is encapsulated object 3 business logic layer (plays a starting and ending role) specifically responsible for the business logic of the entire page, handling all click events, what kind of effects the control click requires and which database is required are the work of the business logic layer suitable for people who are very familiar with user needs, which one should be clicked first and which one should be clicked later? after reading this, the user will be very appetizing and comfortable to use. These are the work at the business logic layer. 4 Presentation Layer: We recommend that you use multiple template pages and user controls, to display the page, you can improve the reusability of the page. The common Server framework frequently used in Ajax design: 1 Original: the earliest does not apply to any framework, such as PHP, it is suitable for organizations that do not require too much maintenance. There is no clear division of labor. A person needs to know all kinds of knowledge and design it by himself, without an artist, advantages of business logic: simple design, relatively good efficiency, disadvantages: high maintenance costs, inflexible changes, two-tier architecture mode JSP, j2EE is working in this architecture 3 component server mode -- the best component is ASP. net4 Service-Oriented Architecture joint work is based on Web Services to implement online custom services, that is, the SOA model. Now the demand-based service is available, and the paid service function is not very effective, however, this is the future development trend. The project manager will give you a task. You can say to the boss, I want to hold a meeting, brainstorm, and discuss this task with the employees, when collecting comments from employees and listening to their opinions, I think of myself as an observer. Reporters don't get angry. Then, based on the employee's speech, I will extract what I need to develop this project, what is missing, and then report the score to the boss, for example, how much money is required and what kind of talent is needed. Then, the boss decides whether to develop the project and distributes the work given by the boss to the employees, let every employee participate and share their own pressure. Assigning a good job is the primary skill of the Project Manager. There are three important points to note: time and quality. resource time resource quality exchange data 1 only client scripts for Data Interaction: the client has a large number of trivial data computing tasks. The computing structure does not need to be transferred in large quantities. The last result is sent to the server to reduce interaction with the server. tasks can be completed by the client, try to use the client to complete a page. There are many JS technologies in it, and all the business logic is encapsulated in the interaction structure design with the content as the core of client 2, put all the business logic on the server. The user only needs to submit one request, and then the server's business logic calls this request. These operations are processed on the server. The user only needs to submit the request, if nothing else is processed, a webpage is returned to the user, this page is generated based on user requests. This is the traditional data exchange method. Select the Server framework to write server code. 3. Data Interaction with scripts as the core. For example: compile a Dom to create a framework and then dynamically construct this framework class. Use JS technology to add various attributes to this framework, and finally improve this framework. The data needed can come from other pages, all are dynamically generated by JS combined with DOM technology, which is equivalent to ASP. NET Web parts. This is a technology similar to Ajax before Ajax was generated. Ajax technology uses XMLHTTP as the data transmission protocol. 3. Data Interaction with data as the core is the current Ajax technology data exchange model. before the development of XML transfer, instead of HTML, it is based on the user's request and then an HTML is sent. Ajax encapsulates the request into XML and passes it to the server, XML is returned after processing by the server, and asynchronous calling is used to send the data to be processed to another page. Another blank page is dedicated to interacting with the server, in this way, only after the first page is processed, the first page will receive data from the second page. xml and XSLT can be used to display the XML file and compile the server code: 1. The simplest method is to use form forms, which contains various controls, and finally submit <Form ID = "myform" method = "Post" Action = "" onsubmit = "validateform (); return false; "> <input type =" text "name =" username "id =" username "> <input type =" password "name =" password "id =" password "> <Input type = "Submit" name = "Submit" id = "Submit"> </form> you can use js to detect the submitted content: idea: it is to use DOM technology to obtain the items required for Form, select important data, add nodes as needed, and finally interact with the server using function validateform ()() {var form = document. getelementbyid ('myform'); var user = form. elements [0]. value; var Pwd = form. elements [1]. value; If (user & user. length> 0 & PWD. length> 0) {form. action = 'myformhandlerurl. php'; form. submit () ;}else {alert ("enter account password ");}} on an HTML page, you can have multiple forms, one HTML, and different forms that can be submitted to different servers, you can also submit it to the same server. Here, you need to use JS technology to obtain different forms. 2. use JavaScript technology to create a submission object and then submit. // Add an input control for the form function addparam (from, key, value) {var input = document. createelement ("input"); input. name = key; input. value = value; form. appendchild (input);} // create a form object and create multiple input controls. // The value of the control is stored in the array data function submitdata (URL, data) {var form = document. createelement ("form"); form. action = URL; form. method = "Post"; for (var I in data) {addparam (form, I, data [I]);} form. style. display = "NONE"; // set the display mode of the element to not display document. body. appendchild (form); form. submit () ;}// the following parameters are passed. submitdata ("myformhandlerurl. PHP ", {Username:" Dave ", password:" letmein "}); the above method shows that the page is very simple, what code is created by myself using JS 3 the Code submitted using XMLHTTP object is similar to the Ajax code we use. For details, refer to the Ajax books on the various websites of Su Peng, e-mail is mainly engaged in website development enterprise application supper3000@gmail.com www.supengcast.net improve user experience: A: high quality software product application 1 response: that is, the user click after the response such as a progress bar, at least it will not give people the feeling that they want to die. They need to give the customer a progress bar, even if they wait, it is better than it looks dead. 2. Performance 3 consistency: the main reason is that when developing software, there may be different division of labor, that is, there is only one operation to click a button, and there is generally no such mistake. 4 Availability 2: Ensure user attention: 1. When a user clicks a content and waits for the content to appear, use the JS script to give the user an experience, so that the user can be retained without leaving the user for a long wait time, in this way, users can keep paying attention to this page. Two pairs of users submit data for centralized processing, for example, interacting with the server. When a user clicks the submit button, the user does not submit the data, at least save it to the XML file. After the second user clicks submit, it is saved to the XML file. When the XML file reaches a certain length, it is submitted, in this way, the reduction of interaction with the server is mainly used in situations where users do not need much functionality to wait, but a group of people do a job, because the work is a whole, therefore, we can save the submission of each person to XML. When the whole process is complete, we can submit three more Ajax performance. JS is executed using the mom tree in Ajax, every DOM tree needs to build a DOM tree in the memory and then process it. When the DOM tree is revoked, is it true that the DOM tree in the memory is completely deleted, if the memory is not properly processed and the memory is not released properly, the memory redundancy will degrade the system performance measurement. running time of javascipt: function mytimeconsumingfunction () {var Beginning = new date (); vaR ending = new date (); // code to be executed in the center var duration = ending-beginning; alert (duration );} atlas summary 1 implements the Ajax component development mode, which helps us encapsulate and there is no difference between browsers. It automatically creates component applications using all browsers, for the first time, Microsoft used all Code 2 to allow users to perform any development and expansion. Just like developing custom controls, Microsoft can also expand Ajax controls. 3. There are many other fromework functions, but when it comes to rapid development, integration with Asp.net is undoubtedly the best, and functions will be improved in the future.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.