Ajax Tab Control inserting content from the preceding tab into the tab of focus

Hello, 

I am using a tab control with several tabs. In one of the tabs, I was attempting to cause a label and a dropdownlist control to become visible or invisible based upon the users selection on another dropdownlist control within the same tab. When I test the control that should make the label and the ddl visible or invisible it does succeed in displaying or hiding these two controls but the contents from the preceding tab container viewed is injected into each page of the tab control. If I navigate to the tab containing the contents being injected then to any of the other tabs previously containing the injected content the content injected is gone. It is as if there is a memory or latency issue clearing out the viewstate of the control. 

Is this a known issue? Any ideas. Here is code behind C#  

protected void PropTypeDropDownList_SelectedIndexChanged(object sender, EventArgs e)
    {
        //Show or hide the CondoLevelsLabel and the CondoLevelsDropDownList if the selection is a condo
        FormatCondo();
    }
protected void FormatCondo()
    {
        switch (PropTypeDropDownList.SelectedIndex)
        {
            case 2:
                //If "Condo" is selected as the Property Type set the 
                //Show the CondoLevelsLabel and the CondoLevelsDropDownList.
                //Initialize the default selection to 1-4 Stories.
                ProjectTypeDropDownList.SelectedIndex = 2;
                CondoLevelsLabel.Visible = true;
                CondoLevelsDropDownList.Visible = true;
                CondoLevelsDropDownList.SelectedIndex = 1;
                break;
            default:
                //If the Property Type is anything but a Condo then hide
                //the CondoLevelsLabel and the CondoLevelsDropDownList.
                CondoLevelsLabel.Visible = false;
                CondoLevelsDropDownList.Visible = false;
                CondoLevelsDropDownList.SelectedIndex = 1;
                break;
        }
    }
 
0
1bigorca
5/19/2008 12:53:27 PM
asp.net.ajax_control_toolkit 17816 articles. 1 followers. Follow

1 Replies
931 Views

Similar Articles

[PageSpeed] 16

Hi 1bigorca,

When we set a control's Visible property to "false", it won't render anything to the client.  So we cannot find anything(the control) on the client.    In your condition, we suggest that you shall simply set the control's display property to none;  For instance,   CondoLevelsDropDownList.Style.add("display","none");  Also you can do it on client by using javascript without postback.

Best regards,

Jonathan


Jonathan Shen
Microsoft Online Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
0
Jonathan
5/24/2008 6:15:30 AM
Reply:

Similar Artilces:

TABS, TABS, AND MORE TABS.
Name: Danny Email: danheidiatrogersdotcom Product: Thunderbird Summary: TABS, TABS, AND MORE TABS. Comments: Hi Why is it that EVERYTIME I get a new upgrade whether on Firefox or Thunderbird, I get TABS? I now have an upgrade on Thunderbird and guess what, I have an 'Inbox' TAB that i don't know how to get rid of. Any ideas? Another issue is. Why doesn't Firefox display something telling me it is working/looking for the site I want. I click on a site and stare at Firefox and don't know if it is doing anything. The previous versions were mu...

Tab Control and Tab Focus...
HI,  I have started to play with this control and have bumped into a small roadblock. My initial attept to use it is for an admin page in a "content management system" The first tab is used for adding content, the second tab for editing content. In the second tab there is a gridview control with edit and delete abilities. The problem is that when you click the "Edit" button on the grid, the focus shifts back to tab 1. Is there anyway to keep it on tab2?   Thanks in advance   Rob        Ok... Figured it out.. Set...

Tab Controls/tab pages/controls within tab pages
I give up! I have a tab control user object - inherited from u_tab - and some tab pages. Initially only one page is enabled which has a datawindow. When a valid data is entered in the DW, I need to enable rest of the tabs - Now - it is giving me a NULL object reference error during execution for the following statement in an event of the DW - tabcontrol.tabpage.enabled=TRUE getparent( ) also giving errors - HELP! How can I do this? Thanks! Ragni rpanjala@nsf.gov Ragni -- If you have CreateOnDemand set for the tab, then the tab pages are not valid until the user accesses them. ...

Tabs, No Tabs
Name: Chris Email: cflore18atyahoodotcom Product: Firefox Summary: Tabs, No Tabs Comments: When a tab is born, it should be optional that a simple alert noise is made. Because a tab is a window within a window, and the little tabs at the top sometimes go unseen; And I'm looking for the page I just came from, and I'm trying to hit the back button... Thanks for listening. Browser Details: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.1.17) Gecko/20080829 Firefox/2.0.0.17 From URL: http://hendrix.mozilla.org/ Note to readers: Hendrix gives no exp...

Tab after tab not..
Name: steve Email: xilleratproquakedotde Product: Firefox Summary: Tab after tab not.. Comments: Hello, could you add the funktion, that the new TAB come after the TAB what in use is. [sorry my engl.] i mean: i have 10 TABs open. and i klick in the middl nr. 5. Now i open a LINK in this TAB. At the moment the new TAB gos to TAB11 and not 6. Understand? :) thx Browser Details: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.7) Gecko/20070914 Firefox/2.0.0.7 ...

Tabs!! TABS!
Name: Kathy Email: kmhuntingtonatgmaildotcom Product: Firefox Summary: Tabs!! TABS! Comments: I know I can find the "always show tabs" in the tools drop-down, but argh! It took me a few moments to find it. You probably had that noted somewhere and I didn't bother to read it, so I have no one to blame but myself, but still! Argh! Tabs are hidden! Do you know how many times my mother is going to call me asking for help? TOO MANY! Anyway, thank you. I love FF. Browser Details: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1) Gecko/20090615 Fi...

Tab control tabs
Hi, Is there a way to show the tabs of a tab control on the left (instead of the default “top”)?  (Something like the “Customer & Partner Solutions” on http://www.microsoft.com/en/us/default.aspx )  Thanks, Z   http://deluxe-tabs.com/file/templates/tabs-vertical-template.htmlGirijeshhttp://www.girijesh.in/ That’s nice… But I meant is it possible to do it with the AJAX tab control?  ...

Tab Control
I have searched the forum and I cant seem to find the answer to my question, although I have tried some of the hints I have found with no luck....Can someone show me a working sample (with source code) of a page with a TabContainer and several tabs, with each tab having a user control, but the controls are not added/initialized/shown until the appropriate tab is shown/clicked?Something like this forum's "Write a New Post" page, where the tabs load after I click on them, and an animated picture displays to show that its loading.The solution needs to add user controls to the page...

Ajax Tab Control with Sub Tabs
Hi,I am using Ajax Tab control.. and I want to display Sub tabs once I click on the First tab... Is it possible? how?Thanks  Just nest additional TabContainers inside the ContentTemplates of each TabPanel. <cc1:TabContainer...> <cc1:TabPanel...> <HeaderTemplate>...</HeaderTemplate> <ContentTemplate> <cc1:TabContainer...> etc... </cc1:TabContainer> </ContentTemplate> </cc1:TabPanel> </cc1:TabContainer>  When you ask a question, rem...

AJAX Tab Control
Hello everyone - I've searched the archives and Googled this to death, but I'm not finding a satisfactory answer at the moment - any advice you have would be much appreciated. I have a "standard" aspx page with the AJAX Control Toolkit Tab control on - 3 tabs. Most of the time it is perfect and works fine, but sometimes for no obvious reason it will just stop rendering the tab, and just the text still appears. Instead of the pretty tabs, you just get the 3 labels rammed together, so my three tabs (Team Management, Incident Log, Progress) render like this: Team Managemen...

Hiding Tabs in Tab control has unwanted effect if hiding first tab
Hi - I have a site admin tool I built using the AJAX Tab control. I am hiding some of the tabs depending on the role a user is in. I tried many metods: TabContainer1.Tabs.Remove(Tab1) Tab1.Enabled = False And the combination Tab1.Visable = False Tab1.HeaderText = "" and they all have the same result. It works fine if the tab you are hiding is not the first tab (left most) - if it is - the whole tabcontainer and all the tabs do not display. I can move the tabs I want to hid to the right but on one of the projects I am working on there are onoly two tabs and only one is visa...

Tab Control: How to show new page in same tab when hyperlink clicked on the same tab
I have a hyperlink in my TabPanel's user control (.ascx).  When clicked it tries to go to an entirely new page outside the tab control (which of course causes an error because a browser cannot load just an .ascx alone) instead of just refreshing and showing the new page in the same tab.  So when I click the hyperlink I get this error:This type of page is not served.BODY { FONT-WEIGHT: normal; FONT-SIZE: 0.7em; COLOR: black; FONT-FAMILY: "Verdana" } P { MARGIN-TOP: -5px; FONT-WEIGHT: normal; COLOR: black; FONT-FAMILY: "Verdana" } B { MARGIN-TOP: -5p...

UPDATED: AJAX FAQ? And: How to Style the AJAX tab control's tabs: complete information
UPDATE April 08, 2009: for the latest version of this post, with up-to-date info on styling the Tab control, see my just updated Blog post -- the info below is somewhat outdated and does not have some additional details I have added to the Blog post.   First of all, I would like to suggest that the AJAX section of the ASP.NET forums have its own FAQ section. I was going to post this in the general ASP.NET FAQ, but it didn't really fit, and there was no AJAX FAQ, so I'm posting it here. Next: I have been looking for details on how to style the Tabs in the AJAX Tool...

superreview requested: [Bug 342432] After Undo Close Tab, content area of newly-opened page isn't focused : [Attachment 236968] always focus the reopened tab's content area
Simon B�nzli <zeniko@gmail.com> has asked Aaron Leventhal <aaronleventhal@moonset.net> for superreview: Bug 342432: After Undo Close Tab, content area of newly-opened page isn't focused https://bugzilla.mozilla.org/show_bug.cgi?id=342432 Attachment 236968: always focus the reopened tab's content area https://bugzilla.mozilla.org/attachment.cgi?id=236968&action=edit ------- Additional Comments from Simon B�nzli <zeniko@gmail.com> Like this? ...

Web resources about - Ajax Tab Control inserting content from the preceding tab into the tab of focus - asp.net.ajax_control_toolkit

Inserting Kate
jurvetson posted a photo: the speaking GPS avatar that we came to love.. more prep photos below... You can hear her voice in the video compilation ...

Inserting the Galaxy Note 5’s S Pen backwards can permanently damage the device
One of the features Samsung highlighted when it unveiled the Galaxy Note 5 was the device's new S Pen slot design. The Note 5 features a spring-loaded ...


Inserting Slavery Into The Climate Debate
Chris Hayes compares the fight against fossil fuels to the abolitionist movement. He states plainly that “there is absolutely no conceivable ...

Samsung smart TVs inserting ads into third-party apps
... playback have pissed off a number of consumers. People with smart TVs from Samsung have been complaining that the electronics maker is inserting ...

Inserting images into Gmail could be so much better
When Google first launched the new compact compose window in Gmail, many of you might have noticed something annoying about inserting images. ...

Gawker tells Steven Crowder to "stop whining, take your licks, and accept that getting hit in the face ...
"... in the middle of an argument between billionaire-funded know-nothing ideologues and people whose livelihoods and stability are being threatened ...

Gmail's Shortcut for Inserting Hyperlinks
... but that doesn't mean Google shouldn't improve them. Many people complained that Gmail's rich text editor doesn't have a shortcut for inserting ...

Why Hollywood Is Inserting These Two Huge Chinese Actresses Into Its Summer Blockbusters
... It shows the enormous potential in China for distributors. We've previously discussed how Hollywood is starting to cater to China by inserting ...

Samsung SmartTVs are inserting ads into movies - Business Insider
Random Pepsi pop-up ads have been appearing when SmartTV users watch content through the device's third-party apps.

Resources last updated: 1/18/2016 8:01:55 AM