Introduction to ASP. NET Website management tools

Source: Internet
Author: User
Reprinted from: http://www.cnblogs.com/QinBaoBei/archive/2010/03/01/1675663.html
 

Is it annoying to operate web. config?
It is really troublesome to manually edit web. config,
However, ASP. NET Website management tools have been available since ASP. NET 2.0,
This tool is actually a web. config GUI,
Some settings in this ASP. NET Website management tool
Basically, it will be reflected in Web. config,
So here we will introduce it as follows,
First, you need to set web. config for a project,
Therefore, you must call up the ASP. NET Website management tool for a project,
In fact, you only need to open the solution where your website is located,
Then open the ASP. NET Website management tool in the solution.



 

 
Click the fluorescent section above to bring up the ASP. NET Website management tool.
 
 
 
 
 
Based on this, we can know that ASP. NET Website management tools are divided into three parts,
Security, ApplicationProgram, Provider,
 
The following describes the three parts respectively,
 
Security first
 
 

There are users, roles, and access rules in security,

Let's first look at the user block,

User blocks provide user registration and management,

To enable the authentication, you must first change the authentication type to the forms type,

In the default settings of Web. config of the project, the verification type is windows.

The user functions cannot be provided. Let's start using the forms type first,

Click Select authentication type to enter

 

 

The Internet is the forms authentication mode.

Windows Authentication mode is represented through the local network.

Pay attention to the changes in Web. config and web. config before the forms type is enabled,

 

Before enabling:

 

After enabling:

 

After the forms authentication mode is enabled, users can be created,

 

 

 

Remember all emails and passwords when creating users,

Do not enter the password randomly. If you use an email,

The destination address of the email to be sent. If you enter an error, you cannot receive the email,

The User Creation function in the user block is shown above,

However, where are the users you created stored?

Well, don't worry. Check out my previous blog. I registered a database,

During registration, 11 data tables will be automatically created into my database,

The functions of those databases will be available soon,

The user information you created will be stored in the 11 tables

[Aspnet_users] and [aspnet_membership] Data Tables

 

 

 

You can also note that the passwords are encrypted and stored in plain text instead of plain text,

The above is the introduction of user functions,

Then define the role function,

By default, the role function is disabled in Web. config,

So you need to enable it first,

When the role function is enabled, the following statement will be added to Web. config:

 

 

 

After the role function is enabled, you can create a role,

Create an admin role first,

And add the user I just added to this role,

 

What is the role function? when there are many users on your website,

You can divide these users into many classes by role. Each class belongs to some roles,

In this way, you can influence all users under this role through operations on the role,

Instead of performing operations on users one by one,

That is to say, roles are used to manage users in a unified manner.

Then, the access rules,

 

 

 

The access rules are in the directory, that is, you can only create access rules for one directory,

A role or user can either access this directory or cannot access this directory,

Instead of a user being unable to access a file, note that operations can only be performed in directory units,

The operation method is very simple and you will know it after a try,

Next, let's talk about another piece-application,

Including application settings, SMTP settings, application status, debugging and tracing,

First, let's take a look at application settings,

 

 

 

Let's just say nothing about application settings,

I think you have used the ettings section,

Some also put the database connection string in the deletebench,

This application is set to operate the ettings section,

All Settings made in this application configuration are fed back to the appsettings section in Web. config,

For example, I create the following application settings:

 

 

Let's take a look at the appsettings section of Web. config.

 

 

 

Well, now I understand it. I won't say much when I understand it,

Next, let's look at SMTP settings,

In fact, the SMTP setting is used when the user needs to retrieve the password,

The email server used to send emails to the user's email address,

Its modifications also correspond to some configurations in the system. net section of Web. config.

 

 

Let's look at web. config again,

 

 

 

So you can understand,

The next step is to check the application status,

As the name suggests, I will not introduce it much, but I will introduce a method,

If you do not want the project to display the default error prompt page after your application is offline,

You can add an app_offline.htm in the project,

After going offline, the project will automatically jump to the app_offline.htm page,

In the tracking and debugging module,

This section mainly introduces the default error page for definition.

 

 

As the name suggests, this is the page to jump to when an error occurs in your project,

 

 

Then, let's look at the last provided program,

What about the provider,

 

 

It has nothing to focus on. Let's take a closer look at it,

The above is an introduction to ASP. NET Website management tools,

You must note the operations performed by ASP. NET Website management tools.

It will be reflected in your registered database and web. config,

You don't have to think too complicated,

It is just a GUI that operates databases and web. config.

 

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.