Regarding the issues found in the ASP.NET program.
I have been writing a PHP program when I am school. For this language like PHP, I must be familiar with the related descriptive language and related aids. If you have to be familiar with the HTML CSS JavaScript PHP database basic operation, you must be familiar with PHP Many functions (in fact, as long as a help manual is enough), you need to know that in various environments, build the environment. If you need to be familiar with the Linux operating system. Familiar with the operation principle of Apache and IIS. In fact, it is really not easy to learn it. Later, come into contact with the ASP and JSP these scripting languages. Its running mechanism and writing code are true, and PHP is actually the same. Nothing changes.
For scripting languages, I think it has the following shortcomings.
First, the execution status of the page is not connected. That is to perform a connection, the page will immediately end the connection after the page is executed, all the variables are released. This caused data between the pages. Generally, I usually use session. The most commonly used but time limit) passes. Long-lasting data has to store delivery in the form of a database. The most commonly used URL is used to deliver or form. But this is transmitted to consider a lot of problems.
Second, the other advantage of the scripting language is that the program interface is very good, its expression is diversified. But the problem is here. For our programmers who are not sensitive to artistic color. This is a big blow. Many things are because the interface made is too ugly. So hit the confidence that continues to go.
Third, a large number of HTMLs and JavaScript are mixed. There created inconvenience in code reading and management. It is also annoyed when writing the program. What is more trouble is that commissioning is very difficult. I generally debugging is to use exit () or response.end where you may appear in the wrong place. Print the variable to change before. It is a nightmare for logic that is very complex or more in the clamp sleeve.
Therefore, I will continue to contact the VC Delphi PB VB, etc., is a programming language that is a carrier (which is not accurate, but targeting the expression). Among them, I help me very much when learning VC. Let me understand the operating principle of WINDOW. Especially the mechanism of the window message. It is helpful for learning other languages.
Then, the above-based programming language has been resolved. Variables between forms and forms pass through global variables or classes between classes or classes can be solved. And the life cycle of the variable is usually mastered. It is even more necessary to debug. The intelligent IDE debugging environment has achieved any form of variable running in any of you. More other tools can be used to use such as source code management, version control. To put it bluntly, the programming environment is more than a few hundred times more than the script. It also means an improvement efficiency.
The emergence of ASP.NET makes me feel very encouraged. The debugging in the integrated VS.NET 2003 environment can do the same convenience as other languages. The separation of the code and interface makes me don't have to consider the problem of art. At the same time, C # beautiful statements and intelligent development environment give people feel comfortable. Especially ASP. The return mechanism in NET makes me don't consider the status of the operation in the maintenance page. You can use the window to program the same way. Write the event code. There are still a lot of controls (there is no deep entry)
I try to write code in the ASPX file when writing asp.net. The logic only in the CS file then returns the result of the logic processing to a label or control. (Problem 1: Is this right. Is it reasonable. Is the main efficiency?)
But sometimes you have to dynamically give each variable negative value in the ASPX page, but there is no way to do in the CS file. At the same time, based on the business needs to write a large number of JavaScript scripts in the ASPX file. In addition, I saw that many textbooks and examples write events and code in ASPX (the problem is the efficiency of this way, and what is the difference between writing in the CS file), this makes me feel very uncomfortable. why. Why write in a file. Do you have a inertia.
There is also a problem that the data is transmitted between the page is the same as the traditional scripting language. The URL mode is to be used. Of course, the HTTP mode for statelessly connecting is currently no way to change this state. So what good ways are there when dealing with these issues? ? ? ?