How use controls inside repeater control in asp.net? :         
        here is my .aspx code !
        
        using System;
        using System.Collections.Generic;
        using System.Linq;
        using System.Web;
        using System.Web.UI;
        using System.Web.UI.WebControls;
        using System.Configuration;
        using System.Data;
        using System.Data.SqlClient;
        
        public partial class _Default : System.Web.UI.Page
        {
            int id;
            protected void Page_Load(object sender, EventArgs e)
            {
                Label2.Text = " " + Session["username"] + " ";
                string CS = ConfigurationManager.ConnectionStrings["DBCS"].ConnectionString;
                using (SqlConnection con = new SqlConnection(CS))
                {
                    id = Convert.ToInt32(Request.QueryString["Prod_Id"].ToString());
                    con.Open();
                    SqlCommand cmd = con.CreateCommand();
                    cmd.CommandType = CommandType.Text;
                    cmd.CommandText = "select * from Product  where Prod_Id="+ id +"";
                    cmd.ExecuteNonQuery();
                    DataTable dt = new DataTable();
                    SqlDataAdapter da = new SqlDataAdapter(cmd);
                    da.Fill(dt);
                    Repeater1.DataSource = dt;
                    Repeater1.DataBind();
                    con.Close();
                    
                }
            }
            protected void Button1_Click(object sender, EventArgs e)
            {
                string CS = ConfigurationManager.ConnectionStrings["DBCS"].ConnectionString;
                using (SqlConnection con = new SqlConnection(CS))
                {
                    con.Open();
                    SqlCommand cmd = con.CreateCommand();
                    cmd.CommandType = CommandType.Text;
                    cmd.CommandText = "insert into Order values('" + Label2.Text + "','"+ label3. +"')";
                    cmd.ExecuteNonQuery();
                    con.Close();
                }
            }
            
        }
    
    here is my.aspx code
    
    <%@ Page Title="" Language="C#" MasterPageFile="~/welcome_mstr.master" AutoEventWireup="true" CodeFile="desc.aspx.cs" Inherits="_Default" %>
    
    <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    
    
    
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp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ater1" runat="server" 
            onitemcommand="Repeater1_ItemCommand">
    <HeaderTemplate></HeaderTemplate>
        <ItemTemplate>
           
           <div style=" width:700px; margin-left:200px; background-color:#FCFBE3">
               
           <br />
           
           <table>
           
           <tr><td><img alt="" src='<%# Eval("Image") %>' style=" width:299px; height:299px;" /></td>
           
           
            <td valign="top"><table >
            <tr><td align="left"><asp:Label ID="Label3" runat="server" Text='<%#Eval("Prod_Name") %>'></asp:Label></td></tr>
            
    
            <tr><td align="left"><asp:Label ID="Label4" runat="server" Text='<%#Eval("Weight") %>'></asp:Label></td></tr>
         
    
           <tr><td align="left">Cost: ₹<asp:Label ID="Label1" runat="server" Text='<%#Eval("Price") %>'></asp:Label></td></tr>
           <tr><td>
               <asp:Button ID="Button1" runat="server" Text="Order" /> </td></tr>
           </table>
           </td>
           </tr>
           
           </table>
           </div>
           
           
           
            </ItemTemplate>
            <FooterTemplate></FooterTemplate>
        </asp:Repeater>
    
    </asp:Content>
    
    
    
   I want to use the 'Text' property of a control inside Repeater control and insert that text value into a table through button click. But i am not able to access the control it self. Its showing an error "The name 'label3' does not exist in the current context".How do I do it ? PLEASE HELP !?

