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:
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.
- 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.