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

Accessing textbox text from Dynamic RadPageView

3 Answers 113 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Nilachandan
Top achievements
Rank 1
Nilachandan asked on 06 Sep 2008, 09:52 AM
Hi$0$0$0$0I have created a dynamic Rad Page view by following your example Dynamic RadPageView. My problem is that, I am not being able to access a textbox value from an WebUserControl.ascx(which consists one pageview ) when I clicked the submit button which is placed in the same usercontrol. An Javascript error is displaying "Sys.WebForms.PageRequestManagerServerErrorException:Multiple Control with same ID 'Pathway' found. FindControl requires that controls have unique IDs".$0$0$0$0$0Why this is happening?$0$0$0$0$0Regards,$0$0Chandan$0

3 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 08 Sep 2008, 09:16 AM
Hello Nilachandan,

This error occurs if you are adding some control twice. Please verify this is not the case with the debugger.

All the best,
Albert
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Nilachandan
Top achievements
Rank 1
answered on 08 Sep 2008, 01:12 PM
Hi$0As the error shows, it is very common that the reply which you gave me should be the case.$0$0$0$0$0But I am not adding any control twice whether behind the code page or at design time. I am just adding a text box and trying to get the value in the code behind page. This s not happening if i am using more than one design time MultiPageView. Its occuring only if I am adding it in dynamic RadPageView following your example.$0$0$0$0$0Can you post me a sample example by adding dynamic RadPageView using WebUserControl with accessing a textbox value in it by clicking a button there in the same WebUserControl?$0$0$0$0$0Regards,$0$0Chandan$0
0
Atanas Korchev
Telerik team
answered on 08 Sep 2008, 01:37 PM
Hi Nilachandan,

I modified the Dynamic RadPageView example like this and it worked without a problem (CorporateCS.ascx.cs):

        protected void Button1_Click(object sender, System.EventArgs e)
        {
            Label1.Text =
TextBox1.Text;
        }

What is different in your case? Ideally you could open a support ticket and send us the problematic page.

Greetings,
Albert
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
TabStrip
Asked by
Nilachandan
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Nilachandan
Top achievements
Rank 1
Share this question
or