KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
How do I set a property of a user control in ListView 's LayoutTemplate from the code-behind? <asp:ListView ...> <LayoutTemplate> <myprefix:MyControl id="myControl" ... /> </LayoutTemplate> ... </asp:ListView> I want to do this: myControl.SomeProperty = somevalue; Please notice that my control is not in ItemTemplate , it is in LayoutTemplate , so it does not exist for all items, it exists only once. So I should be able to access it once, not for every data bound item.
Tags (comma-separated)
Save Edits
Cancel