After studying ASP.NET 2.0 for a while, some ideas

xiaoxiao2021-03-06  53

I started learning from .Net Beta2, I officially used .NET to do development is .NET1.1. That is to say, most people are in the study stage, of course, many people don't set whether to learn .NET, and .NET entry is indeed more than the previous Delphi and VB6 It's hard to, and .NET1.0 has just launched, for the stability and functional consideration, I think everyone is basically taken as a learning tool, take the vs.net 2002 as a familiar Microsoft new generation development environment. The practice is used.

And .NET 1.1 is different, more people start learning .NET, ran many people from Java, after all .NET configuration is much simpler than Java, and enough Chinese documents are also reduced A lot of thresholds that have been introduced. Of course, as everyone is in depth, some important components can be used, and the collected code in everyone has gradually increased, such as FTP, Mail, compression and decompression, various controls, and the specific work written by the whole machine. solution. Of course, most of these software are running under .NET1.1.

Now, Microsoft has launched .NET 2.0 beta1, since it has already been out, then the official version will not be too far away, of course, .NET 2.0 SDK official version will definitely have Chinese SDK. I must solve the problems already in .NET 1.1 and add a lot of functions. If many people are defrauding the VS2003 web project debugging problem, and when the session / cookie is used, use response.redirect () without the response problem.

In this way, .NET 2.0 (I focus on ASP.NET 2.0) is very small with .NET 1.1 compatibility, I have discovered that the custom web server control in 1.1 is established to prevent multiple same controls from registering client scripts.

System.Web.UI.Page.IsClientScriptBlockRegistered () System.Web.UI.Page.IsStartupScriptRegistered () System.Web.UI.Page.RegisterClientScriptBlock () System.Web.UI.Page.RegisterRequiresPostBack ()

These four methods have been subjected to a method that has been discarded by System.ObsoleTeattribute. That is to say in ASP.NET 2.0, the script registration method of any client cannot be used, and it can only be written by RESPONSE.WRITE (). That is to say, there is no way to recompile the code in 2.0 in 2.0.

Ok, I said a lot, anyway, said .NET 1.1 and .NET 2.0 have a small compatibility. But the .NET running library has a good place to coexist execution. In ASP.NET 2.0, the assembly is referenced, is this assembly running under the CLR control of .NET 1.1, or under .NET 2.0?

If the 1.1 assembly is executed at the CLR of 1.1. Then I write many components, many down components, basically in the 1.1 environment, if I use 2.0, these components cannot be thrown away. So use these components, whether the calls of the class and the passage of the parameters can run normally? Especially the parameters, I am most worried. Passing the basic type of String, INT should have no problem, but if the parameter is written by yourself, put the class instance written by the 1.1 as the return value to 2.0, can it be? I am more suspicious.

转载请注明原文地址:https://www.9cbs.com/read-115655.html

New Post(0)