I have a page that displays all its content in a TabContainer, but if javascript is disabled on the browser it just displays a blank page.
I can add a <noscript> to display all the important content, but the blank TabContainer still renders.
I’d like to add a in the header to redirect to the same page plus ?noscript=true, but it shouldn’t be infinite. I figure using a PlaceHolder control that will put the appropriate <META HTTP-EQUIV="Refresh" CONTENT="0; URL=url?noscript=true"> when the current url doesn’t have the noscript query value.
Then I can set the Visible property to false for the TabContainer when the noscript query value is present.
Is this the right way to go about it?
Well, because I’m thorough, and don’t want to duplicate code, I created this component that does my other answer plus checks session and viewstate for previous detection.
The value of the component is that it can be used on other pages and it will have access to the same session/cookie value that was used on other pages with the component.
Any suggestions at improvement?