View Single Post
  #4 (permalink)  
Old August 19th, 2004, 11:40 AM
kmazumdar kmazumdar is offline
Registered User
Join Date: Aug 2004
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts

Here is the markup for DataList
<asp:datalist id="DataList1" style="Z-INDEX: 110; LEFT: 133px; POSITION: absolute; TOP: 364px" runat="server" Width="539px" Height="92px" RepeatLayout=Flow>
                                            <td><b>NPA: </b>
                                                <asp:label id=lblNpa td < text='<%# DataBinder.Eval(Container.DataItem,"C1") %>'</td>
                                            <td><b>NXX: </b>
                                                <asp:label id="lblNxx" text='<%# DataBinder.Eval(Container.DataItem,"C2") %>' </td>
                                            <td><b>LATA: </b>
                                                <asp:label id="lblLata" text='<%# DataBinder.Eval(Container.DataItem,"C3") %>' </td>
                                            <td><b>Time Zone: </b>
                                                <asp:label id="lblTimeZone" text='<%# DataBinder.Eval(Container.DataItem,"C4") %>' </td>
                                            <td><b>Day Light Saving : </b>
                                                <asp:label id="lblDayLightSav" text='<%# DataBinder.Eval(Container.DataItem,"C5") %>' </td>
                                            <td><b>State Code: </b>
                                                <asp:label id="lblStateCd" text='<%# DataBinder.Eval(Container.DataItem,"C6") %>' </td>
                                            <td colspan="3"><b>Split From NPA: </b>
                                                <asp:label id="lblSplitFromNpa" text='<%# DataBinder.Eval(Container.DataItem,"C7") %>' </td>
                                            <td colspan="3"><b>Split From NXX: </b>
                                                <asp:label id="lblSplitFromNxx" text='<%# DataBinder.Eval(Container.DataItem,"C8") %>' </td>
                                            <td><b>Vertical Coordinate: </b>
                                                <asp:label id="lblVerticalCoordinate" text='<%# DataBinder.Eval(Container.DataItem,"C9") %>' </td>
                                            <td><b>Horizontal Coordinate : </b>
                                                <asp:label id="lblHorizontalCoordinate" text='<%# DataBinder.Eval(Container.DataItem,"C10") %>' </td>
                                            <td colspan="3"><b>Border Town: </b>
                                                <asp:label id="lblBorderTown" text='<%# DataBinder.Eval(Container.DataItem,"C11") %>' </td>

Code behind the click event of submit button
DataList1.DataSource = ds;

Reply With Quote