Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Phần mở rộng này cho Matrix web là một dịch vụ web đang được xác định. Bạn có thể tạo ra một dịch vụ Web giống như một trang ASP.NET tiêu chuẩn, bằng cách sử dụng Web Matrix (như chúng ta đã làm trước đó trong chương) hoặc bất kỳ trình soạn thảo văn bản. Một dịch vụ Web phải có bốn phần thiết yếu | Appendix D Figure D-38 Formatting Blocks of Code I often find Visual Studio .NET a bit messy at times - after adding this table you can see that the code generated on my system was hardly tidy. In my default preferences you can specify your own preferences via Tools I Options from the main menu I specified that I wanted all tags to be in lowercase when editing HTML code and I wanted to use two spaces indentation for all lines of code yet the editor added the code shown in Figure D-39 782 Web Application Development Using Visual Studio .NET Figure D-39 The solution to this problem is to select all the code and use the Edit I Advanced I Format Document menu option. After running this my code was spaced out a bit better and my preferred capitalization rules were followed as can be seen in Figure D-40 783 Appendix D Figure D-40 You will find that the results of this will vary according to the default preferences you have on your system but once you have set up the defaults as you like them you ll find that this feature can be very handy Developing the User Control In this table set the row and cell attributes as shown in the code below. Leave the last cell empty for the moment tr style VERTICAL-ALIGN middle td style TEXT-ALIGN left width 200 a href default.aspx img src images logo.gif border 0 a td td style TEXT-ALIGN center width 400 img src images teamlogo.gif td td style TEXT-ALIGN right width 200 .