TAILIEUCHUNG - Beginning Ajax with ASP.NET- P25

Beginning Ajax with P25:Thank you for purchasing Beginning Ajax with . We know that you have a lot of options when selecting a programming book and are glad that you have chosen ours. We’re sure you will be pleased with the relevant content and high quality you have come to expect from the Wrox Press line of books. | Chapter 13 Clicking on the Submit Value button should yield an alert box similar to that shown in Figure 13-7. Figure 13-7 This behavior is not what is desired and typically you would expect something more than simply being undefined. To fix this you are going to debug the client-side script within this application. You will set a breakpoint early in the script s execution to see what is going on within the code. 1. Leave the Internet Explorer browser instance running and click on the OK dialog box button if it is still displayed. 2. Switch to Visual Studio .NET while Internet Explorer is still running and select DebugOWindowsOScript Explorer as shown in Figure 13-8. Figure 13-8 3. Once the option has been selected a Script Explorer window will be displayed within Visual Studio. If your window layout is at the default settings then the Script Explorer window should appear on the right side of the screen as shown in Figure 13-9. 336 Debugging Figure 13-9 4. In the Script Explorer window you will notice one ASPX page listed which is the one currently being executed. Double-click on that page within the Script Explorer window. This will list the page within the editor window and will look very similar to the page at design development time. The big difference is that you can now set breakpoints and examine variable values as the code is executing in almost exactly the same way you can with server-side code. 5. Within the editor window where the web page is displayed navigate to the first line within the DoSomeWork JavaScript function and press F9 or click on the left-side grey sidebar to place a breakpoint on the line. The editor window should now look similar to the one shown in Figure 13-10. 6. Now switch back to the running instance of the browser that is executing the web page. Click the Submit Value button. Visual Studio should automatically become the active window and execution of the web page will pause on the line that the breakpoint is on. The line will be .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã 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.