China Naming Network - Auspicious day query - Asp.net's problem of getting the contents of the text box

Asp.net's problem of getting the contents of the text box

Well, if you must understand that there is no difference between them,

Request.Form["textBox1"]

This is form submission, which is actually the most primitive server that accepts data submitted by client forms. For example, you don't use the server control, but only the original html control <: input> , you can use this to receive

this.textBox1.Text

and this, it is the way of Microsoft's server control. In fact, you will understand that there is no difference between the original form submission and the server control.

to put it simply, in the underlying framework of Microsoft,

1. After the form is submitted

2. Intercept the submitted data (Request.Form["textBox1"] may use this)

3. Assign this.textBox1.Text

4. Of course, you will get the data. .

hehe, this can improve the efficiency of your code writing, but there are advantages and disadvantages. The simple one can improve the coding efficiency, but the complex one not only does not improve the efficiency but also increases the learning product.

Therefore, it is suggested that while using. net server controls, we should not confine our thinking, but think about the original way.

Just like humans, you can predict the changes of nature in many ways, such as weather.

but now people have degenerated with the development of convenient technology.

however, convenient technology has not brought you better predictive ability. The same is true of the weather forecast.

I wish you better and better in the programming industry.