Use Cases to learn about. net WebForms (2)

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.