Home Backend Development C#.Net Tutorial Spread Zhike ASP.NET basic series video material sharing

Spread Zhike ASP.NET basic series video material sharing

Aug 31, 2017 am 11:44 AM
asp.net series

ASP.NET has all the solutions for developing website applications, including all functions such as validation, caching, state management, debugging and deployment. In terms of code writing, the feature is to separate page logic and business logic. It separates program code and displayed content, making it easier to write colorful web pages. At the same time, the program code looks cleaner and simpler.

"Spread Zhike ASP.NET Basics Series Video Tutorials" ASP.NET is an enterprise Web application development technology platform led by Microsoft. It is currently one of the most popular Web development technologies and can develop various complex functions. website. In order to allow students with zero foundation to learn professional web development technology in the shortest time through the Internet and benefit from it.

Spread Zhike ASP.NET basic series video material sharing

Video playback address: http://www.php.cn/course/623.html

The difficulty of this video is :

1. The principle of ViewState


1. The browser requests the Default.aspx page

2. The created ViewState is found on the server side at this time A hidden field named __VIEWSTATE (double underscores are all capital letters)
will be automatically created. The value of the hidden field is encrypted by base64 and returned to the browser. This encryption process is in the SaveState event of the page life cycle
. Completed in the SaveAllState method

3. When the browser submits the form, the hidden field of __VIEWSTATE is also submitted to the server. At this time, the ReadState event of the page life cycle
's ReadAllState method will encrypt The final value is base64 decrypted and finally the value is assigned to the ViewState named name

4. Finally, operate the value in ViewState

2. ViewState usage:

1 .Define the ViewState attribute

public int PageCount{
get{return (int)ViewState["PageCount"];}
set{ViewState["PageCount"]=value;}
}
Copy after login

2. Conditions for using ViewState

If you want to use ViewState, there must be a server-side form tag in the ASPX page (

). Form fields are required so that hidden fields containing ViewState information can be passed back to the server. Moreover, the form must be a server-side form so that the ASP.net page framework can add hidden fields when the page is executed on the server.

The EnableViewState property value of the page is true

The EnableViewState property value of the control is true

3. Things to note about ViewState

a. When a page exists When posting back, ViewState must be disabled if there is no need to maintain the value of the control.
b. ViewState indexes are case-sensitive.
c. ViewState is not cross-page.

d. In order to be saved in ViewState, the object must be streamable or have a TypeConverter defined.
e. When the TextMode property of the control TextBox is set to Password, its state will not be saved in ViewState. This should be for security reasons.
f. Do not use ViewState when the page has no postbacks or redirects or transfers to other pages on postbacks.

g. Be careful about its ViewState when dynamically creating a control.
h. When the ViewState of a program is disabled, the ViewState of all pages of the program is also disabled.
i. ViewState is persistent only when the page posts back to itself.

4. Set ViewState

ViewState can be set in controls, pages, programs, and global configurations. EnableViewState is true by default. If you want to disable the ViewState function of all pages, you can set EnableViewState to false in the program configuration.

The above is the detailed content of Spread Zhike ASP.NET basic series video material sharing. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Xiaomi 15 series full codenames revealed: Dada, Haotian, Xuanyuan Xiaomi 15 series full codenames revealed: Dada, Haotian, Xuanyuan Aug 22, 2024 pm 06:47 PM

The Xiaomi Mi 15 series is expected to be officially released in October, and its full series codenames have been exposed in the foreign media MiCode code base. Among them, the flagship Xiaomi Mi 15 Ultra is codenamed "Xuanyuan" (meaning "Xuanyuan"). This name comes from the Yellow Emperor in Chinese mythology, which symbolizes nobility. Xiaomi 15 is codenamed "Dada", while Xiaomi 15Pro is named "Haotian" (meaning "Haotian"). The internal code name of Xiaomi Mi 15S Pro is "dijun", which alludes to Emperor Jun, the creator god of "The Classic of Mountains and Seas". Xiaomi 15Ultra series covers

The best time to buy Huawei Mate 60 series, new AI elimination + image upgrade, and enjoy autumn promotions The best time to buy Huawei Mate 60 series, new AI elimination + image upgrade, and enjoy autumn promotions Aug 29, 2024 pm 03:33 PM

Since the Huawei Mate60 series went on sale last year, I personally have been using the Mate60Pro as my main phone. In nearly a year, Huawei Mate60Pro has undergone multiple OTA upgrades, and the overall experience has been significantly improved, giving people a feeling of being constantly new. For example, recently, the Huawei Mate60 series has once again received a major upgrade in imaging capabilities. The first is the new AI elimination function, which can intelligently eliminate passers-by and debris and automatically fill in the blank areas; secondly, the color accuracy and telephoto clarity of the main camera have been significantly upgraded. Considering that it is the back-to-school season, Huawei Mate60 series has also launched an autumn promotion: you can enjoy a discount of up to 800 yuan when purchasing the phone, and the starting price is as low as 4,999 yuan. Commonly used and often new products with great value

How to choose between iPhone 15 and iPhone 15 Pro? Nine major differences at once How to choose between iPhone 15 and iPhone 15 Pro? Nine major differences at once Sep 14, 2023 am 08:01 AM

iPhone15 and iPhone15Pro were officially released today. However, as high-end models, the Pro series not only has a higher price, but also has many exclusive features. Consumers must recognize the differences before buying, so as not to discover some problems after buying iPhone15. The function is only available in the Pro series. Although the monitors are equipped with the same display panel, the ProMotion automatic adaptive update frequency technology and the always-on display function are still exclusive to the Pro series. The rest of the iPhone 15 and iPhone 15 Pro series are the same in terms of resolution, contrast, peak brightness, etc. Action button The action button is currently an exclusive design for the iPhone 15 Pro series, allowing users to personalize it.

iPhone 15 Pro and 15 Pro Max new improvements preview iPhone 15 Pro and 15 Pro Max new improvements preview Sep 12, 2023 pm 10:45 PM

Apple will launch four new iPhone models at 1 a.m. on September 13, namely iPhone 15, 15 Plus, 15 Pro and 15 Pro Max. The high-end iPhone 15 Pro and Pro Max will use a new design, and the side material will be changed from stainless steel to titanium. The colors of the Pro series include gray, black, dark blue, white and other options. The screens of iPhone 15 Pro and Pro Max will be slightly larger this year than last year’s 14 Pro and 14 Pro Max. This change is due to Apple's adoption of a new process technology called LIPO (low injection pressure overmolding), which reduces the thickness of the screen frame by about one-third. High-end models will switch to titanium with a matte texture

What series are there in the Hall of Fame? What series are there in the Hall of Fame? Feb 04, 2024 am 09:18 AM

Many users who want to buy memory modules want to know what series of memory modules the GALAX Hall of Fame brand has. In fact, this brand currently has three series, namely HOFEXTREME limited edition, HOFEXTREME, and HOFPRORGB. What are the series of Hall of Fame memory: A: HOFEXTREME limited edition, HOFEXTREME, HOFPRORGB. These three memory modules all have relatively good performance. Among them, the HOFEXTREME limited edition has the best performance. Compared with the previous two models, the HOFPRORGB is slightly weaker but the performance is also very good. Hall of Fame memory expansion introduction: 1. Using Samsung B-die particles, which is the king of memory particles and has a long service life.

Samsung One UI 7.1 revealed to be core part of S25 series with many new features Samsung One UI 7.1 revealed to be core part of S25 series with many new features Aug 08, 2024 pm 03:32 PM

Currently, Samsung is actively preparing a software update strategy for the Galaxy series of mobile phones and tablets. The focus is on introducing the OneUI6.1.1 system to old folding screen devices, and possibly extending it to non-folding screen devices (if relevant rumors are true). At the same time, Samsung is also intensively preparing for the release of OneUI7.0 based on Android 15. It is worth noting that although these two key updates have not yet been officially released, the industry has begun to preview and speculate on the next-generation system OneUI7.1 based on Android 15. On the X platform, well-known tipster @IceUniverse revealed that OneUI7.1 will bring unprecedented major improvements to users. Specifically pointed out: "On

Print the fractional representation of the first N terms of the series (0.25, 0.5, 0.75,...) Print the fractional representation of the first N terms of the series (0.25, 0.5, 0.75,...) Sep 17, 2023 pm 10:53 PM

Input N, which is equal to the maximum number of series to be printed Input:N=5Output:0¼½¾1AlgorithmSTARTStep1->declarestartvariablesasintnum,den,i,nStep2->inputnumberinnStep3->LoopForfromito0andi<nandi++ OuterIfi%2=0 &nbsp

From HiFi sound quality to AI, the experience of Samsung Galaxy Buds3 series has been greatly upgraded From HiFi sound quality to AI, the experience of Samsung Galaxy Buds3 series has been greatly upgraded Aug 27, 2024 pm 03:30 PM

From ancient vinyl records, album tapes and CDs that were popular in the millennium, to today's streaming media platforms on mobile devices, with the development of the times, the carriers for listening to music are also constantly changing. With the support of advanced technology, people's pursuit of immersive experience continues to advance, and many novel technical means have been developed as a result. Among them, the new generation of TWS headsets represented by the Samsung Galaxy Buds 3 series have found new breakthroughs on the AI ​​track. High-fidelity sound quality HiFi pleasant listening experience As a new product focusing on sound quality experience, there are two new products in the Samsung Galaxy Buds3 series: 1. Equipped with 24bit/96kHz codec technology, which can bring studio-like high quality when connected to a Galaxy smartphone

See all articles