Atlas table layout Template

Source: Internet
Author: User
<Table> the flag must be written in the listview. Do not use runat = "server". <tbody> is required. The following figure shows the modified Atlas Hol 5:

<% @ Page Language="C #"  %>
<! Doctype HTML public "-// W3C // dtd xhtml 1.0 transitional // en" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
< Html Xmlns = "Http://www.w3.org/1999/xhtml" >
< Head ID = "Head1" Runat = "Server" >
< Title > Atlas server controls lab </ Title >
< Link REL = "Stylesheet" Type = "Text/CSS" Href = "Site.css"   />
</ Head >
< Body >
< Form ID = "Form1" Runat = "Server" >
< Div >
< Atlas: scriptmanager ID = "Mgr1" Runat = "Server"   />
< Atlas: button Runat = "Server" ID = "Fillbutton" Text = "Get URL list" >
< Click >
< Actions >
< Atlas: invokemethodaction Target = "Performance1"  
Method = "Select"   />
</ Actions >
</ Click >
</ Atlas: button >
< Atlas: datasource Runat = "Server" ID = "Performance1"  
Serviceurl = "~ /Dataservice. asmx"   />
< Atlas: listview Runat = "Server" ID = "Listview1" Itemtemplatecontrolid = "Templateitem" >
< Bindings >
< Atlas: Binding Datacontext = "Performance1" Datapath = "Data"  
Property = "Data"   />
</ Bindings >
< Layouttemplate >
< Table >
< Tbody ID = "Trbody" Runat = "Server" >
< Tr Runat = "Server" ID = "Templateitem" >
< TD ID = "Itemtemplatecolumn" Runat = "Server" Align = Right >
< Strong ID = "Strong1" Runat = "Server" >
< Atlas: Label Runat = "Server" ID = "Namelabel" >
< Bindings >
< Atlas: Binding Datapath = "Name" Property = "Text"   />
</ Bindings >
</ Atlas: Label >
</ Strong >
</ TD >
< TD Runat = "Server" Align = Left >
< Atlas: hyperlink Runat = "Server" ID = "Companyurl"   >
< Bindings >
< Atlas: Binding Datapath = "Description" Property = "Text"   />
</ Bindings >
</ Atlas: hyperlink >
</ TD >
</ Tr >
</ Tbody >
</ Table >
</ Layouttemplate >
< Emptytemplate > No data </ Emptytemplate >
</ Atlas: listview >
</ Div >
</ Form >
</ Body >
</ Html >

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.