View State

Định nghĩa View State là gì?

View StateXem Nhà nước. Đây là nghĩa tiếng Việt của thuật ngữ View State - một thuật ngữ thuộc nhóm Technology Terms - Công nghệ thông tin.

Độ phổ biến(Factor rating): 5/10

Xem trạng thái là trang cấp kỹ thuật quản lý nhà nước được sử dụng trong khuôn khổ trang ASP.NET để giữ lại giá trị của điều khiển và trang giữa các chuyến đi vòng. các đối tượng dữ liệu như bảng băm, dây, đối tượng mảng, các đối tượng array list, các giá trị Boolean và tùy chỉnh kiểu chuyển đổi có thể được lưu trữ trong view state. Xem trạng thái được lý tưởng sử dụng khi dữ liệu được bảo quản tương đối nhỏ và các dữ liệu không cần phải được bảo đảm.

Xem thêm: Thuật ngữ công nghệ A-Z

Giải thích ý nghĩa

Với tải trang, view state được chứa trong một cấu trúc, như vậy là dễ dàng có sẵn. Các giá trị chứa trong view state không thể được truyền giữa các trang. Theo mặc định, tình trạng xem được bật và cho dù sử dụng trong một postback, nó serializes thông tin trong mọi điều khiển được tìm thấy trên trang. Để vô hiệu hóa trạng thái xem cho một điều khiển duy nhất, nhu cầu sở hữu EnableViewState được thiết lập như là sai. Thuộc tính EnableViewStateMac được cung cấp để phát hiện bất kỳ nỗ lực tham nhũng hoặc kỹ thuật về tình trạng xem. Các tính năng trung bình của view state là để lưu trữ các giá trị của thuộc tính kiểm soát và các trang được tìm thấy trong các trang có liên quan, mà không cần sự giúp đỡ của một phiên, giữ gìn giá trị của sự kiểm soát sau khi phẫu thuật postback và để tạo ra một nhà cung cấp nhà nước xem tùy chỉnh để lưu trữ xem thông tin trạng thái trong một cơ sở dữ liệu.

What is the View State? - Definition

View state is the page-level state management technique used in the ASP.NET page framework to retain the value of controls and page between round trips. Data objects such as hash tables, strings, array objects, array list objects, Boolean values and custom-type converters can be stored in view state. View state is ideally used when the data to be preserved is relatively small and the data need not be secured.

Understanding the View State

With the page load, view state is contained in a structure, so is easily available. The values contained in view state cannot be transmitted between pages. By default, the view state is switched on and regardless of whether used during a postback, it serializes the information in every control found on the page. To disable the view state for a single control, the EnableViewState property needs to be set as false. The attribute EnableViewStateMac is provided to detect any corruption attempt or technique on the view state. The mean features of view state are to store the values of control properties and pages found in the concerned page, without the help of a session, preserve the value of the control after the postback operation and to create a custom view state provider for storing view state information in a database.

Thuật ngữ liên quan

  • Session State
  • Hypertext Transfer Protocol (HTTP)
  • .NET Framework (.NET)
  • .NET Framework Configuration Tool
  • Integrated Development Environment - .NET (IDE)
  • Commit
  • Access Modifiers
  • Acyclic
  • Appending Virus
  • Armored Virus

Source: ? Technology Dictionary - Filegi - Techtopedia - Techterm

Trả lời

Email của bạn sẽ không được hiển thị công khai. Các trường bắt buộc được đánh dấu *