Tuy nhiên, bạn có thể thay đổi điều đó. Nếu bạn bổ sung thêm nút thứ hai, nhấp vào nó và nhấn phím Delete để xóa nó ngay bây giờ. Từ menu, chọn Tools ➤ Tùy chọn, và nhấn Show All Settings hộp kiểm tra. Làm nổi bật các nút định vị CSS dưới nút cây thiết kế HTML. Bạn sẽ thấy những gì tôi đã thể hiện trong hình 5-6. | CHAPTER 7 CREATING A DNN MODULE 185 The DNN framework is written in VB. You need to tell VWD that there may be other languages in this subdirectory. This element tells VWD to compile the code in this subdirectory at run time. It has been estimated that using the module templates to create DNN modules reduces the code you have to write by 70 percent. If you wanted to write a module in DNN you needed other tools such as CodeSmith to help write the code for you. Not so any more. One of the tougher tasks was to write the code to set up tables and stored procedures. DNN writes all this code for you now. You just need to run it. Creating Tables Creating the tables requires you to log into your website as the host. Build your website by clicking the Build Web Site menu choice. It should build with no errors. Now start the website by pressing Ctrl F5. Log in as the host of this site. You should notice a new Host choice on the menu bar. Click this and choose SQL. You should get a blank SQL page like the one shown in Figure 7-5. Figure 7-5. The blank SQL page This page is given to you by DNN as a way to execute SQL scripts. The SQL code is also given to you. You just need to find it and copy it in here. In the Solution Explorer choose DesktopModules TimePunch and double-click the file. This will open it in the IDE. If you aren t familiar with SQL table definitions then this code will be ugly and scary for you. Don t worry though. It does actually make sense. Since you will make changes to this code later I will explain it then. Press Ctrl A to select all lines in this file and press Ctrl C to copy it. Go back to your SQL page on the website and press Ctrl V inside the text window to paste all the code in here. Figure 7-6 shows this. 186 CHAPTER 7 CREATING A DNN MODULE Figure 7-6. Pasting SQL code into the text window Make sure that the Run as Script check box is checked and click the Execute link. This executes the SQL table code and builds