Certain controls on an aspx page render incorrectly sporadically. Sometimes they show the border and sometimes they don't. Sometimes when you select an option in one of the WebDropDowns, the borders for all the controls then render. Sometimes when I refresh the browser they show up, but not always.
What could cause this rendering issue to happen? Please see attached screenshot and html code.
Forgot to add the code file.
Will,
What web browser does this happen in? Is the issue limited to one web browser or does it happen in both IE and Firefox?
Is the issue specific to the controls that are in the UpdatePanel? If the UpdatePanel is removed and you do a full postback, does the styling issue still happen?
Please answer these questions so that I may better assist you.
Alan,
Thanks for the help, but as with all projects, time crunch is telling me to just remove one level of tabs and get it to work that way. If it comes up again on another project, maybe I'll try to figure it out.
If it doesn't error out until you reach the 25th iteration then it isn't likely that you have reached the style limit unless there are styles that haven't yet been added when you click the button.
If you haven't reached the style limit, then I would need a sample that has the same issue that I could debug to see what has happened. If moving the tabs works for you and solves the issue then you can use that as a solution.
Please let me know if I may be of further assistance.
I did it both using a button click and on page load, and it errors out when the iterator reaches 25 both ways. When using the button, I let the page load fully (with the badly rendered controls), and clicked the button and it throws a "htmlfile: Invalid argument." error on document.createStyleSheet()
Was the JavaScript being executed when the page was loaded or in response to a button click? If it wasn't done with a button click, does that change the results?
If you are actually hitting the style limit, then I would expect the loop to fail on the first iteration. As such you may want to add a button to your page where you have the styling issues and then click it after you have had the issues.
Let me know if you have any questions with this matter.
I installed FF and of course, it works perfectly. I then inserted that javascript into the page and it was erroring out when reaching 25 loops.
I brought my sub-tabs up one level, and they render fine. I can just leave them there if there is a style limitation with IE. I just wasn't aware of that limitation.