Building a Web service for asp.net application settings

Source: Internet
Author: User
Tags web services

I. What is an application setting

Application settings typically refer to a series of parameters that are closely related to the application. In a form-based Windows application, application settings primarily include locations that affect the layout of the application. Parameters such as dimensions, colors that affect the appearance of the application, shapes, and other parameters; In addition, the language of the application. Cultural settings, as well as data sources and connection strings, and so on. These parameter settings are widely used in program development, Some are used to keep the application consistent. Continuity, such as saving the size of the form at the end of the application. Position and background color, restore these settings the next time the application is executed, and other parameters make the program code more concise and efficient, such as saving the database connection string for multiple calls.

Unlike form-based Windows applications, web-based asp.net applications have their own specificity, which is network-oriented. This determines that the ASP.net application settings include, in addition to the above parameters,

#身份验证和授权等安全机制

#网络传输协议类型和针对特定类型文档的http处理程序

#事务处理

#为所有页面设置超时

#定制出错页面来代替默认IIS出错页面

#会话和会话状态信息

#页面缓存行为

#自定义及扩展

Visible, the asp.net application sets a richer parameter type. In actual development, they are used not only to improve application security, but also to manage and customize requirements for specific users.

Two. Why to set an external asp.net application as a Web service

There is no need to mention the benefits of Web services, and the media hype and widespread use in many areas is enough to explain the problem. Still, the point here is that Web services are actually asp.net applications, but are being organized again. In particular, Web services provide implementations for sharing objects between different applications. With simple references, you can access the functionality implemented by another program in a program, not just in asp.net, but only through a browser. Clearly, Web services also have many of the features and features that a general asp.net application has. Both ASP.net and Web services have state management capabilities as a typical example.

However, what are the advantages of setting an external asp.net application to a Web service? On one hand, you can get answers to the reusability of software (applications), and imagine that if a client application (source) needs to use the setting parameters of another application (the target), configuring the target application settings as a Web service can be easily invoked in the source application. It's like configuring the same settings on this computer. On the other hand, Web services (asp.net application applications) special mechanisms for storing their application settings (that is, the Web.config file storage settings described below) make the application cross-platform. It is possible to upgrade and Xcopy deploy across the internet and applications.

Related Article

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.