No I can't. Plus as I said, the code actually functions, it just seems to be getting overridden during onload.
Main Topics
Browse All TopicsI am using Atals Ajax tabs and depending on the value of a dropdown and a checkbox I have javascript that sets the tabs (the clickable header) CSS class to a class with properties that make the tab disappear. The code all works correctly after loading, but I cannot get it to work on load. My javascript does execute without errors but the tabs show up anyway. I think the properties get reset by Atlas generated javascript after my onload javascript executes. I have tried setting the CSS class to my hidden version in the code behind as well, but it still gets overridden.
My javascript is generated by the code behind (I need the ClientID of controls for it) and I add it with register startup script. I have looked online but I haven't seen anything with other people using the tabs this way - though I'm sure I'm not the only one. I would appreciate any direction anyone can provide.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Ok, image an ASPX page with an Ajax tab strip. There are 4 tabs, A, B, C, D and on tab A is a checkbox and a textbox. When you check the checkbox javascript executes and tab C's clickable tab disappears and the textbox is set to say 'Hide', when you uncheck the checkbox the same javascript executes and tab C's clickable tab reappears and the textbox is set to say 'Show'.
The javascript checks the value of the checkbox and sets the styles for tab C to styles that make it invisible and remove it from spacing as well so that D is right next to B.
Now, set the checkbox's checked property to true, and register a call to the same javascript to execute as startup script. The page comes up, the textbox value shows 'Hide', but tab C's clickable tab is still there in the list. Uncheck and then recheck the checkbox and the textbox updates correctly and the tab behaves correctly, it just doesn't work on load though the javascript does execute and does not throw errors.
It seems that some part of the ajax controls do something to set styles at the end and that one of those is overriding the settings I set.
I will see if I can figure out how to extract the code and make a small sample application, though I'm not sure if I will be able to figure out how to extract it from everything.
Business Accounts
Answer for Membership
by: MakarandSKolhePosted on 2008-06-05 at 07:50:49ID: 21720147
Hi there
Can you post your code ...