TAILIEUCHUNG - Professional ASP.NET 1.0 Special Edition- P12

Professional Special Edition- P12:Those of us who are Microsoft developers can't help but notice that .NET has received a fair amount of visibility over the last year or so. This is quite surprising considering that for most of this period, .NET has been in its early infancy and beta versions. I can't remember any unreleased product that has caused this much interest among developers. And that's really an important point, because ignoring all the hype and press, .NET really is a product for developers, providing a great foundation for building all types of applications | Release Date Column ASP RadioButton id chkVisible GroupName Col2Visible runat server AutoPostback True Visible nbsp ASP RadioButton id chkNotVisible GroupName Col2Visible runat server AutoPostback True Hidden p Next comes the DataGrid control definition. It s on our form because it contains controls that we want to use to post the page back to our server that is the More Info buttons . It uses the techniques we ve just been discussing to create a custom column layout including columns that contain only a non-breaking space and are simply there to give the required appearance for the control ASP DataGrid id MyDataGrid runat server AutoGenerateColumns False CellPadding 5 GridLines None HeaderStyle-BackColor silver HeaderStyle-HorizontalAlign center FooterStyle-BackColor silver ShowFooter True OnItemCommand ShowInfo Columns ASP TemplateColumn HeaderText ItemStyle-BackColor silver ItemTemplate nbsp ItemTemplate ASP TemplateColumn ASP BoundColumn HeaderText b Code b DataField ISBN ItemStyle-BackColor lightblue ASP BoundColumn HeaderText b Book Title b DataField Title ASP BoundColumn HeaderText b Released b DataField PublicationDate DataFormatString 0 D ItemStyle-BackColor yellow ItemStyle-HorizontalAlign right ASP TemplateColumn HeaderText ItemStyle-BackColor lightblue ItemTemplate ASP Button id cmdInfo Text More Info CommandName Info runat server ItemTemplate ASP TemplateColumn ASP TemplateColumn HeaderText Buy Now ItemStyle-BackColor silver ItemStyle-HorizontalAlign center ItemTemplate ASP CheckBox id chkBuy runat server ItemTemplate ASP TemplateColumn Columns ASP DataGrid The penultimate ASP TemplateColumn control contains an ItemTemplate element that specifies that each row will contain an ASP Button control with the caption More Info. It also specifies that the CommandName property of the button is Info . We ll see how we use this when we look at the code in the page shortly. The only other control is the Label named lblInfo that we use to display information .

4    7    0    14-08-2020
34    6    0    14-08-2020
10    6    0    14-08-2020
4    7    0    14-08-2020
40    3    0    14-08-2020
10    6    0    14-08-2020
5    3    0    14-08-2020
19    16    0
182    15    0
138    6    0
3    7    0
142    12    0