Câu hỏi phỏng vấn ASP.NET
Câu hỏi

ViewState được lưu trữ ở đâu sau khi trang được postback?

Câu trả lời

ViewState được lưu trữ trong một trường ẩn (hidden field) trên trang web. Khi một trang được postback, dữ liệu ViewState được mã hóa và gửi từ trình duyệt đến máy chủ dưới dạng một phần của dữ liệu biểu mẫu. Sau đó, ASP.NET giải mã dữ liệu ViewState này để khôi phục trạng thái của các điều khiển trang trước khi xử lý sự kiện trên máy chủ[1][2][3].

Citations:
[1] https://weblogs.asp.net/infinitiesloop/Truly-Understanding-Viewstate
[2] https://learn.microsoft.com/en-us/previous-versions/aspnet/bb386448%28v=vs.100%29
[3] https://www.cnblogs.com/lonelystar/articles/1284939.html
[4] https://learn.microsoft.com/en-us/previous-versions/aspnet/ms178472%28v=vs.100%29
[5] https://www.c-sharpcorner.com/article/pagelife-cycle-in-asp-net/
[6] https://stackoverflow.com/questions/2555152/net-viewstate-in-page-lifecycle
[7] https://support.microsoft.com/vi-vn/topic/gi%E1%BA%A3i-quy%E1%BA%BFt-xem-tr%E1%BA%A1ng-th%C3%A1i-th%C3%B4ng-b%C3%A1o-l%E1%BB%97i-x%C3%A1c-th%E1%BB%B1c-m%C3%A3-mac-6c0e9fd3-f8a8-c953-8fbe-ce840446a9f3
[8] https://tailieu.hiepsiit.com/download/tong-quan-ve-a...

middle

middle

Gợi ý câu hỏi phỏng vấn

senior

Sự khác biệt giữa chế độ pipeline 'classic' và 'integrated' trong IIS7 là gì?

junior

Giải thích quá trình khởi động trong ASP.NET Core?

middle

Ý nghĩa của Unobtrusive JavaScript là gì?

Bình luận

Chưa có bình luận nào

Chưa có bình luận nào