The GridView generated HTML code

Source: Internet
Author: User
Tags eval

  Many beginners are curious about what the GridView generated HTML code is, and here's a sample comparison that you can refer to in the following

  Code as follows: <asp:gridview id= "GridView1" runat= "Server" autogeneratecolumns= "false" cssclass= "Tablecss" >   <Columns>  <asp:templatefield headertext= "number" headerstyle-cssclass= "AAA" itemstyle-cssclass= " BBB ">  <ItemTemplate>  <% #Eval (" id ")%>  </ItemTemplate>  </asp: templatefield>  <asp:templatefield headertext= "name" headerstyle-cssclass= "AAA" ItemStyle-CssClass= "BBB" >  <ItemTemplate>  <% #Eval ("name")%>  </ItemTemplate>  </asp: templatefield>  </Columns>  </asp:GridView>  ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓  <div>  <table class= "tablecss" cellspacing= "0" rules= "All" border= "1" id= "Table1" Border-collapse:collapse; " >  <tr>  <th class= "aaa" scope= "col" > Number </th>  <th class= "aaa" scope= "col" > Name </TH>&NBSp </tr>  <tr>  <td class= "BBB" >1</td>  <td class= "BBB" > John </td>   </tr>  <tr>  <td class= "BBB" >2</td>  <td class= "bbb" > Dick </td >  </tr>  </table>  </div>     

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.