Author: Britto | Posted on: 8/23/2009 3:25:46 AM | Views : 276

Hi All,
      I have Five Label on my form.I just want to get these labels text through For Loop.Just Like we do in Javascript
In aspx
-------
<asp:Lable id="Label1" runat="server" Text="This is Label 1"/>
<asp:Lable id="Label2" runat="server" Text="This is Label 2"/>
<asp:Lable id="Label3" runat="server" Text="This is Label 3"/>
<asp:Lable id="Label4" runat="server" Text="This is Label 4"/>
<asp:Lable id="Label5" runat="server" Text="This is Label 5"/>
 
I Just want to do in codebehind like below
For i =1 To 5
    //Here I want to change the Lable ID  and according to i
     For Example,
      ...

Go to the complete details ...