Learn the WebForms technology of. NET through cases (II.)

Source: Internet
Author: User
/*
Tofu production, are fine
Http://www.asp888.net Tofu Technology Station
If reproduced please retain the full copyright information
*/
Button:
Button in ASP.net is a control that submits the contents of this page to the next page
<asp:button runat=server id= "button1" text= "Tofu technology station" .../>
His main attribute is text, which can be controlled by text to his outward display, and another very important is his click event
We program the button's Click event to achieve interactive control between our client and the server.
void Button1_Click (Object Source, EventArgs e) {
。。。。。。。。。
}
By learning about this button, we already know that MS is actually trying to combine Web forms and Win forms in a tight bind, through
Vs7.net can see it. Ambition really is not small
Let's take a look at the control of database operations, in fact, the most important thing in this control is the DataGrid, I do not intend to continue to talk about this
The DataGrid, because it is too much to use. After finishing the DataGrid, Tofu will focus on some of the next steps that you have hardly seen,
But you will often encounter some controls on the
The DataGrid is a tightly integrated control of the database, and he can easily implement the complex functions of paging and so on, due to the explanation of the DataGrid
The article is too much, so tofu on the inspection of a few of the properties that have not been introduced to talk about
Gridlines property used to represent the border between row and Col of the generated table
DataGrid1. Gridlines=gridlines.both
DataGrid1. Gridlines=gridlines.horizontal
DataGrid1. Gridlines=gridlines.none
DataGrid1. Gridlines=gridlines.vertical


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.