I have a RadTextBox and I need my back-end to know the Text of it. However, I get an error when trying to access it from anywhere within my backend:
txtnote does not exist in the current context.
<telerik:GridTemplateColumn HeaderText="Notes" UniqueName="Notes">
<ItemTemplate>
<telerik:RadTextBox ID="txtnote" InputType="Text" Width="100%" Rows="4" runat="server" Text='<%# Eval("notes")%>' TextMode="MultiLine"></telerik:RadTextBox>
</ItemTemplate>
</telerik:GridTemplateColumn>
Does anyone have any suggestions on how I can get the Text value of this?
Thanks to @Seano666, I found a solution. This is what I ended up using:
RadTextBox txtbox = (RadTextBox)item["Notes"].FindControl("txtnote");
string WhatIWantedToFind = txtbox.Text;
Thanks.