when learning the basic part of a webpart, this problem occurs:
after I drag a webpartmanager, one webpartzone is dragged one after another, drag a calendar control into it. When F5 runs
, you cannot see the webpartzone minimization button. When I change webpartmanager. dispalymode to designdisplaymode
, the following error occurs:
I found relevant information on msdn and Baidu and found that the webpartzone control can be used as long as SQL Express is installed without any configuration. But why am I wrong?
To find out the error, I tried this method: when creating a website, I chose "File System" instead of "HTTP,
Repeat the preceding operations to display the webpartzone normally and use the drag and drop function for the designdisplaymode. Now the problem changes.
To: The file system can be used, but the local IIS "HTTP" cannot. In other words, the problem lies in the user permission to access this project.
I think, because IIS verifies user permissions through "Windows", when using the "file system", the user accessing the website is
The current Windows login user can naturally use the webpartmanager function.
Then, how can we make access to users under the "HTTP" website have such permissions.
I only think of two methods:
1. Add the "creatuserwizard" and "login" controls on the page so that users can have the permissions after registering and logging in.
2. enable the global configuration of "ASP. NET" in the IIS attribute and change the login mode from "Windows" to "forms ".
PS: I will try two ways to solve my most basic problem as soon as possible. If you may have a better solution to this cainiao problem,
I am even more grateful.