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

Panel's Control Name is displayed in the page, after an ajax postback.

1 Answer 64 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Brent
Top achievements
Rank 1
Brent asked on 18 Mar 2009, 11:44 AM
Hi, here is my scenario with the ASP.NET AJAX controls.  I have:

 - RadTabStrip - containing two tabs.
 - RadMultiPage - containing two pages, each displaying an ascx user control.
 - RadAjaxManager - loading ajaxsettings in code behind.

What I'm doing is:
- Tab2 contains an ASP:LinkButton.
- The linkbutton does an ajax postback runs server-side code that just selects Tab1 and index 0 of the MultiPage.

RESULT:
- When I click the linkbutton, the ajax postback occurs and Tab1 and the corresponding pageview control are indeed displayed as I expect.  No problem here.
- But when I click back onto Tab2, the content of this tab now also displays the cryptic control name that asp.net gives to the panel that contains the link button.
- Or if I do not put the linkbutton in an asp:panel, the ajax manager does that for me when I ajaxify the button, and so that panel name is displayed). 

So, in the output of the page, right next to the link button, this is displayed:

235|updatePanel|ctl00_ContentPlaceholder_ctl00_ContentPlaceholder_ucSearchOrder_AddNewSearchLinkButtonPanel

Here are my ajax settings:

 

//UCCSearchRadAjaxManager.AjaxSettings.AddAjaxSetting(this.SearchTabStrip, this.SearchTabStrip, null);

 

 

//UCCSearchRadAjaxManager.AjaxSettings.AddAjaxSetting(this.SearchTabStrip, this.SearchMultiPage, null);

 

UCCSearchRadAjaxManager.AjaxSettings.AddAjaxSetting(ucSearchOrder.AddNewSearchLinkButton,

this.SearchMultiPage, null);

 

UCCSearchRadAjaxManager.AjaxSettings.AddAjaxSetting(ucSearchOrder.AddNewSearchLinkButton,

this.SearchTabStrip, null);

 

UCCSearchRadAjaxManager.AjaxSettings.AddAjaxSetting(ucSearchOrder.AddNewSearchLinkButton, ucSearchOrder.AddNewSearchLinkButton,

null);

 


You can see that I've also tried (but commented out) ajaxifying the tabstrip on itself and on the multipage.

Q.  Any ideas on what I'm doing wrong, and what I can do to fix it?

NOTE:  I have other linkbutton controls that do ajax postbacks on BOTH Tabs, and none of them exhibit this problem.  These other linkbuttons don't update the TabStrip or MultiPage however.  I only have the problem with this one link button.

1 Answer, 1 is accepted

Sort by
0
Brent
Top achievements
Rank 1
answered on 19 Mar 2009, 06:35 PM
SOLUTION:
I temporarily gave up on this and started to add controls a third tab on my page, and immediately noticed that the controls were not displaying.  That told me that I had some bad HTML on the tab that was exhibiting the weird behavior.  Sure enough, I had an unclosed div tag.  Once I closed that div tag, my problem was solved.
Tags
Ajax
Asked by
Brent
Top achievements
Rank 1
Answers by
Brent
Top achievements
Rank 1
Share this question
or