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

RadMulti page not retaining content (Urgent))

3 Answers 39 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Francis Frank
Top achievements
Rank 1
Francis Frank asked on 27 Feb 2012, 12:08 PM

Hello Telerik Team,

Please am trying to do a search and open the result on a new tab and a new pageview but the search result clears up each time i navigate back to it and if i try another search on a giving opened tab, it show me error:

Multiple controls with the same ID 'ctl03' were found. FindControl requires that controls have unique IDs.

I have tried to enable view state but it did not help.

RadTab newTab1 = new RadTab();

newTab1.Text = Session["session_newtab"].ToString();

newTab1.Width = Unit.Pixel(150);
RadTabStrip1.Tabs.Add(newTab1);

  (RadTabStrip1.FindTabByText(Session["session_newtab"].ToString())).Selected = true;
RadPageView newwindow = new RadPageView();
newwindow.ID = newTab1.Text;
newwindow.ContentUrl = "search/search_judges.aspx?name=" + item;
newTab1.PageViewID = newwindow.ID;
newwindow.Width = Unit.Pixel(878);
newwindow.Height = Unit.Pixel(785);
newwindow.EnableViewState = true;

RadMultiPage2.PageViews.Add(newwindow);

Please this is urgent on my timeline

 Thanks 

3 Answers, 1 is accepted

Sort by
0
Dimitar Terziev
Telerik team
answered on 29 Feb 2012, 12:51 PM
Hi,

Please refer to the following help article here  where it's discussed the common causes for such error.  The error message is also self explanatory, a control with the same ID as the one that you are dynamically adding already exists on the page. If you want to add tabs and pageviews dynamically,  please follow the approach from the following demo here.

Greetings,
Dimitar Terziev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Francis Frank
Top achievements
Rank 1
answered on 01 Mar 2012, 03:16 PM

Thanks for the reply

But the link you sent is working with Usercontrol not a webpage

Please i want to display content in .aspx not ascx

Still needing help urgently for my timeline

Thanks

0
Dimitar Terziev
Telerik team
answered on 02 Mar 2012, 03:16 PM
Hi,

The important aspect of the demo which I've provide is the approach on how to add RadTabs and RadPageViews dynamically. The fact that you are loading the content of your pageview using its ConentUrl property should not make any difference. My suggestion is to open a support ticket and provided a runnable sample page so we could examine your exact implementation.

All the best,
Dimitar Terziev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
TabStrip
Asked by
Francis Frank
Top achievements
Rank 1
Answers by
Dimitar Terziev
Telerik team
Francis Frank
Top achievements
Rank 1
Share this question
or