TAILIEUCHUNG - ASP.NET AJAX Programmer’s Reference with ASP.NET 2.0 or ASP.NET 3.5 phần 4

Tiếp theo, các phương pháp Hủy bỏ các cuộc gọi phương pháp get_isDirty trở lại và lưu trữ các giá trị hiện tại của tài sản isDirty trong một oldIsDirty địa phương đặt tên biến để tham khảo trong tương lai: var oldIsDirty = (); | Chapter 11 Data Classes row length if oldIsDirty isDirty The Remove method takes a JavaScript object as its argument. The object can be a DataRow or a row object. Remove first checks whether this object is a DataRow. If so it calls the get_rowObject method on the DataRow object to return a reference to its associated row object if rowObject rowObject Next the Remove method calls the get_isDirty method to return and store the current value of the isDirty property in a local variable named oldIsDirty for future reference var oldIsDirty This is done because the code following this line of code could change the current value of this property The Remove method then determines the index of the row object in the _array array which contains all row objects associated with the DataRows object of the current DataTable object var index rowObject Next the Remove method calls the getItem method passing in the index of the row object to return a reference to DataRow object associated with the row object var row index It then calls the removeAt method to remove the row object from the _array array if typeof function index else index Next it invokes the removeAt static method on the Array class to remove the DataRow object from the _rows array which contains all the DataRow objects that the current DataTable owns index It then checks whether the _newRows array contains the row object and if so it removes the row object from this array as well index rowObject if index -1 index else rowObject 431 Chapter 11 Data Classes Next it calls the internal .

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.