Button:
In asp.net, a Button is a control that submits content on this page to the next page.
<Asp: Button runat = server id = "button1" Text = "Tofu technology station" ....../>
Its main attribute is Text, which can be used to control its external display. Another important attribute is its click Event)
By programming the Click Event of the Button, we can control the interaction between our customers and the server.
Void Button1_Click (object Source, EventArgs e ){
.........
}
Through learning this Button, we know that MS is actually trying to closely combine Web Forms and Win Forms.
Vs7.Net. Ambitious indeed
Next let's take a look at the control on database operations. In fact, the most important thing in this control is the DataGrid. I didn't intend to continue talking about this.
The DataGrid is used too much. After talking about the DataGrid, tofu will focus on the next step, which we have hardly seen before,
However, some widgets are frequently encountered.
DataGrid is a control closely integrated with databases. It can easily implement complex functions such as paging display.
There are too many articles, so I will give a lecture on the attributes I have not introduced.
GridLines indicates the border attribute between Row and col of the generated Table.
Datagrid1.GridLines = GridLines. Both
Datagrid1.GridLines = GridLines. Horizontal
Datagrid1.GridLines = GridLines. None
Datagrid1.GridLines = GridLines. Vertical