I have a Telerik:RadTextBox control in my markup called txtName. I'm trying to retrieve the inputed value in the code behind with foo = txtName.Text;
but var and txtName always show an empty string.
Any ideas?
Markup
<telerik:RadTextBox ID="txtName" Runat="server" Width="300px" />
CodeBehind
campaign.Name = txtName.Text.Trim();
I guess the code couldn't be easier. Basically what's happening is, when I click my 'save' button, there's a postback and the text in the RadTextBox just disappears.
update
Found the problem. My web.config file had a different version of the Telerik dll file that was actually in my bin folder.