ASP. NET learning records

Source: Internet
Author: User

How to addProgramSet Reference
<System. Web>
<Pages>
<Namespace>
<Add namespace = "system. net. Mail"/>
</Namespace>
<Pages>
</System. Web>
How to add a reference to the Assembly in the configuration file
<System. Web>
<Compilation>
<Assemblies>
<Add Assembly = "system. messaging, version = 2.0.0.0" ....../>
</Assemblies>
</Compilation>
</System. Web>

About viewstate: HTTP is a stateless protocol, but ASP. NET breaks through this restriction, so that a control can save the original value between multiple page requests.
However, this consumes resources (because viewstate must be passed back and forth between the browser and the server)
You can specify the value of the enableviewstate attribute of the control to determine whether to save the view State for the control.
Tip: You can specify trace = "true" in the page command to track the page status.

knowledge: In ASP. in net, the C # control can seamlessly interact with the HTML control, provided that you need to mark the control as runat = "server"
Asp. net treats it as a server control, but does not prevent javascript access to IT. Therefore, you can use JavaScript to modify its value on the client.
, then, the Code on the server side is used to obtain the value of the control. Of course, the control dynamically generated by the client is
NO.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.