Locate a control in asp:repeater header with VB

December 9, 2011 Chuck FamilyVB.NetVisual Basic

I am using a repeater to build a list of items. I am using the header as the input area and, if the item exists, I am putting the item into the repeater. If the item does not exist, I am displaying a message in the textbox where the item sku was placed. To find the textbox in the header, just use:


Dim tb as TextBox = TryCast(asprepeaterID.Item.FindControl("headerTextBoxID"), TextBox)


Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Powered by WordPress and HQ Premium Themes.