how to find the control OfferID?
<pre><code>&lt;asp:ListView ID="ListView1" runat="server" DataSourceID="SqlDataSource1" 
            DataKeyNames="OfferID" GroupItemCount="2" &gt;

       &lt;LayoutTemplate&gt;
           &lt;table runat="server"&gt;
               &lt;tr runat="server"&gt;
                   &lt;td runat="server"&gt;
                       &lt;table ID="groupPlaceholderContainer" runat="server" border="0" style=""&gt;
                           &lt;tr ID="groupPlaceholder" runat="server"&gt;
                           &lt;/tr&gt;
                       &lt;/table&gt;
                   &lt;/td&gt;
               &lt;/tr&gt;
               &lt;tr runat="server"&gt;
                   &lt;td runat="server" style=""&gt;
                   &lt;/td&gt;
               &lt;/tr&gt;
           &lt;/table&gt;

       &lt;/LayoutTemplate&gt;

       &lt;ItemTemplate&gt;
           &lt;td runat="server" style=""&gt;

               &lt;div id="wrapper"&gt;

        &lt;div id="ResImage"&gt;


&lt;div id="slideshow"&gt;

    &lt;asp:Image ID="Image1" runat="server" ImageUrl='&lt;%# Eval ("Image1") %&gt;' Width="250px" Height="190px" CssClass="active" /&gt;
    &lt;asp:Image ID="Image5" runat="server" ImageUrl='&lt;%# Eval ("Image2") %&gt;' Width="250px" Height="190px" /&gt;
    &lt;asp:Image ID="Image4" runat="server" ImageUrl='&lt;%# Eval ("Image3") %&gt;' Width="250px" Height="190px" /&gt;


&lt;/div&gt;

        &lt;/div&gt;
        &lt;div id="ResDesc"&gt;
            &lt;asp:Label ID="lblDesc" runat="server" Width="290px" Height="190px" BackColor="White" Text='&lt;%# Eval("Offer") %&gt;'&gt;&lt;/asp:Label&gt;

        &lt;/div&gt;
        &lt;div id="ResPrice1"&gt;
            &lt;asp:Label ID="lblValue" runat="server" Text="Value" CssClass="ResValue"&gt;&lt;/asp:Label&gt;
            &lt;asp:Label ID="lblDiscount" runat="server" Text="Discount" CssClass="ResDiscount"&gt;&lt;/asp:Label&gt;
            &lt;asp:Label ID="lblYouPay" runat="server" Text="You Pay" CssClass="ResYouPay"&gt;&lt;/asp:Label&gt;
        &lt;div id="ResPrice2"&gt;
            &lt;asp:Label ID="lblValueAmt" runat="server" Text='&lt;%# Eval("Value") %&gt;' CssClass="ResValueAmt"&gt;&lt;/asp:Label&gt;
            &lt;asp:Label ID="lblDiscountAmt" runat="server" Text='&lt;%# Eval("Discount") %&gt;' CssClass="ResDiscountAmt"&gt;&lt;/asp:Label&gt;
            &lt;asp:Label ID="lblYouPayAmt" runat="server" Text='&lt;%# Eval("YouPay") %&gt;' CssClass="ResYouPayAmt"&gt;&lt;/asp:Label&gt;
        &lt;/div&gt;
            &lt;asp:Label ID="lblRestaurantName" runat="server" Text='&lt;%# Eval("RestaurantName") %&gt;'&gt;&lt;/asp:Label&gt;&lt;br /&gt;
            &lt;asp:LinkButton ID="lnkGetCoupon" runat="server"&gt;Get Discount Coupon&lt;/asp:LinkButton&gt;
        &lt;/div&gt;

        &lt;div id="HowItWorks"&gt;
            &lt;asp:Label ID="lblHowItWorks" runat="server" Text="How It Works?" Font-Bold="True" Font-Size="Small" ForeColor="Red"&gt;&lt;/asp:Label&gt;
            &lt;ul&gt;
            &lt;li&gt;&lt;asp:Label ID="Label3" runat="server" Text="1.Click on the 'Get Discount Coupon' button" Font-Size="10px"&gt;&lt;/asp:Label&gt;&lt;/li&gt;
            &lt;li&gt;&lt;asp:Label ID="Label4" runat="server" Text="2.Get a print of your Voucher and carry it during your visit to the outlet." Font-Size="10px"&gt;&lt;/asp:Label&gt;&lt;/li&gt;
            &lt;li&gt;&lt;asp:Label ID="Label5" runat="server" Text="3.Show your Voucher and pay the amount directly to the merchant. " Font-Size="10px"&gt;&lt;/asp:Label&gt;&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/div&gt;

        &lt;asp:Label ID="OfferID" runat="server" Text='&lt;%# Eval("OfferID") %&gt;' Visible="false"&gt;&lt;/asp:Label&gt;
        &lt;/div&gt;
           &lt;/td&gt;
       &lt;/ItemTemplate&gt;
</code></pre>

<p>How to find the label control with the id=OfferID...how to use findcontrol here??
i want to find the OfferID of the row on which i click...i have a linkbutton lnkGetCoupon..when i click on the link button...i want to pass the OfferID in the query string to the next page.</p>

<p>i am a new user so they do not let me post answer to my own question</p>

<p>heres the answer...</p>

<p>i added <code>CommandArgument='&lt;%# Eval("OfferID") %&gt;</code> to the link button.   </p>

<pre><code>&lt;asp:LinkButton ID="lnkGetCoupon" CommandArgument='&lt;%# Eval("OfferID") %&gt;' runat="server"&gt;Get Discount Coupon&lt;/asp:LinkButton&gt;
</code></pre>

<p>and used the <code>ListView1_ItemCommand</code></p>

<pre><code>Protected Sub ListView1_ItemCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.ListViewCommandEventArgs) Handles ListView1.ItemCommand
        Dim offer As String
        offer = e.CommandArgument.ToString()
        Dim url As String = "~/RestaurantDedicatedPage.aspx?offerID=" + offer
        Response.Redirect(url, True)
    End Sub
</code></pre>
