When we use the Treeview control of ASP. NET, we find that the Treeview control of ASP. NET cannot display a tree type, but is displayed as an ordered text. How can we solve this problem?
(1) install iewebcontrols. (: http://asp.net/IEWebControls/Download.aspx? Tabid = 1)
(2) Run build.bat.htm. First, use the script to open build.bat. here we can see that csc.exe has no path before it. Therefore, when we run it, a build directory and its corresponding files will be generated, but Microsoft cannot be found under the build directory. web. UI. webcontrols. DLL. solution: Open the C drive (the operating system is installed under the drive) and search for csc.exe. We will find that two files are found, select the attribute of the first file (Name: CSC), and copy the file at: C:/Windows/Microsoft. net/framework/v1.1.4322. After that, paste the certificate to the front of csc.exe in build.bat( C:/Windows/Microsoft. net/framework/v1.1.4322/csc.exe), and then run build. BAT.
(3)
1. if the default path (C:/inetpub/wwwroot) of the IIS root directory is not changed, you only need to run build. copy the files and folders in the runtime directory under the build directory generated after BAT to C:/inetpub/wwwroot/webctrl_client/runtime 0, webctrl_client/secrets 0 directory needs to be created by yourself. (do not make a mistake in the folder name! :))
2. if the IIS root directory has been changed from the default path (C:/inetpub/wwwroot) to another path (assumed as D:/example), we need to re-register Asp.net on IIS, specific steps: Windows "start" menu-> "program"-> "Visual Studio. NET 2003 "->" Visual Studio.. Net tool> Visual Studio. net command prompt, and then enter it in this window, enter aspnet_regiis/I enter. After successful installation, you will find that a folder named aspnet_client is added to the D:/example directory, indicating that you have successfully registered it! Then you need to run build. copy the files in the runtime directory under the build directory generated after bat to the D:/example/webctrl_client/prepare 0 directory. You must create the webctrl_client/prepare 0 directory by yourself.
(4) Put the generated Microsoft. Web. UI. webcontrols. dll in the bin directory of your project folder.
In this way, the Treeview control of ASP. NET can correctly display the tree structure!
Tip: After you successfully install iewebcontrols (default drive C), you have a readme.txt text file under C:/program files/ie web controls, the preceding section describes in detail how to correctly use iewebcontrols and provides an example. :)
The preceding solution applies to Visual Studio. NET 2003.