This is a migrated thread and some comments may be shown as answers.

How do I get post back value from Rad fields ?

1 Answer 77 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Xrcr
Top achievements
Rank 1
Xrcr asked on 30 Dec 2010, 03:28 PM
Hello,

Beginner question:
I have a RadToolBox:
<telerik:RadTextBox ID="RadTextBox1" Runat="server" name="nameTest"/>


And I have an ASP button that run this code:
        Dim a As String = Request.Form("nameTest")
        Dim b As String = Request.Form("RadTextBox1")

Both a and b always remain null.

Questions
- How do I get postback values from Rad components ?
- How do I get postback values from Rad components when they are in user control ?


Thank you

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 04 Jan 2011, 01:59 PM
Hi,

RadTextBox is an object of type Telerik.Web.UI.RadTextBox and cannot be cast to string.
The correct way to get the text of a RadTextBox is:

Dim a As String = RadTextBox1.Text

Same as with ASP.NET native controls, their value is usually accessed through the Text or Value property.

If you consider yourself a beginner with RadControls, I believe that you will find the following step-by-step tutorial very helpful:
Step-by-step Tutorial – RadControls for ASP.NET AJAX

Additionally, you can browse the online documentation and demos on our site which will help you understand the controls' functionalities and APIs better.

Kind regards,
Tsvetina
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
General Discussions
Asked by
Xrcr
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or