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.