Solution Explorer Progamming

file by using the Source View window, but this approach is not recommended). 1. Display the HTML code for in the Source View window. | from the the display logic for a Web application you can actually write C code and event handlers in the file by using the Source View window but this approach is not recommended . 1. Display the HTML code for in the Source View window. Examine the first line in this file. It looks like this @ Page Language C . CodeFile . This directive specifies the file containing the program code for the Web form and the language in which it is written in this case C . The other supported languages include Visual Basic and JScript. 2. In the Solution Explorer double-click the file. The file appears in the Code and Text Editor window. At the top of the file there is a set of using statements. Note that this file makes heavy use of the namespace and its sub-namespaces this is where the classes reside. Also notice the code itself is in a class called _Default that descends from this is the class from which all Web Forms descend. Currently it contains a single empty method called Page_Load. This method runs when the page is displayed. You can write code in this method to initialize any data required by the form. 3. Add a method called initPositionRole to the _Default class after the Page_Load method 4. private void initPositionRole 5. You will use this method to initialize the positionRole drop-down list to its default set of values. 6. Add the following statements to the initPositionRole method 7. 8. true 9. Analyst 10. Designer Developer The first statement clears the list. The second statement enables the list you will write some code shortly that disables it under certain circumstances . The remaining statements add the three roles that are applicable to workers. 11. Add the following statement to the Page_Load method 12. if IsPostBack 13. 14. .

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU LIÊN QUAN
5    176    1
5    255    1
5    106    0
5    121    1
6    103    1
6    107    1
6    121    1
6    103    0
6    140    0
TÀI LIỆU MỚI ĐĂNG
2    394    1    01-07-2024
589    425    2    01-07-2024
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.