Hello, I'd like to put some labels inside a datagrid template and have the .text property of the labels assigned in the Page_Load method. So far I have some code but it's not quite right. Is this possible? Can anyone please help me find the solution?
Here's what I've got so far.
Public Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)
e.Item.FindControl("ltlPhone").Text = xPathQuery("//search/searchresultsphone", "profile.xml")
<asp:literal id="ltlPhone" runat="server" />
I know i'm approaching this wrong, but I'm having trouble searching for an answer. Thank you for your time.