Anuradha Chavan

Anuradha Chavan

  • NA
  • 37
  • 15.7k

bind data to lables

Nov 8 2013 5:57 AM
I want to bind fist 5 rows from data table to 5 different labels. 


<asp:Panel ID="Panelnews" runat="server" 
                   
            
            style="z-index: 1; left: 727px; top: 229px; position: absolute; height: 404px; width: 265px">
            <asp:ImageButton ID="Imagenews" runat="server" 
                ImageUrl="~/images/whatsnewhome_bg.jpg" 
                
                style="z-index: 1; left: 39px; top: -1px; position: absolute; height: 36px; width: 177px" />
          
            <asp:Label ID="Labelnews" runat="server" ForeColor="#990033" 
                style="z-index: 1; left: 81px; top: 9px; position: absolute; font-weight: 700; height: 20px;" 
                Text="?????? ???????"></asp:Label>
            <asp:Panel ID="Panel1" runat="server" BackColor="White" BorderColor="#DFE5E6" 
                BorderStyle="Solid" 
                
                
                style="z-index: 1; left: 11px; top: 35px; position: absolute; height: 335px; width: 226px">
                
               
                <marquee behavior="scroll" direction="up" scrollamount="3" height: 330px" 
                    style="height: 334px">
                
              <asp:Label ID="Label1" runat="server" Text="Label"><a href="https://www.google.co.in/" style="text-decoration:none"> ???? ?????? ??????? ??????? ???? </a> </asp:Label>
              <br /> <br /> <br />
              <asp:Label ID="Label2" runat="server" Text="Label"><a href="Default.aspx"> ???? ?????? ??????? ??????? ???? </a> </asp:Label>
               <br /> <br /> <br />
              <asp:Label ID="Label3" runat="server" Text="Label"><a href="Default.aspx"> ???? ?????? ??????? ??????? ???? </a> </asp:Label>
               <br /> <br /> <br />
               <asp:Label ID="Label4" runat="server" Text="Label"><a href="Default.aspx"> ???? ?????? ??????? ??????? ???? </a> </asp:Label>
               <br /> <br /> <br />
               
                </marquee>
                
                       </asp:Panel>
        </asp:Panel>


Also wants same result for link so that user will click on link and open file related to that link which is saved in database.















Answers (2)