May 2nd, 2008, 03:56 PM
OR i can do this on the page load in the backend via VB code, but in that section i don't know how to change the CSS for all the page.
So for a answer i either need to know how to :
-Change all the page's CSS in VB code
May 2nd, 2008, 04:13 PM
Because you can detect the user's current culture in the codebehind, you can dynamically set the CSS file to use by creating an HtmlGeneric control, set the tag to "link", rel to "stylesheet" and href to the path of the CSS file based upon the culture that you have. Then, add that to the Page.Head of the page.
May 2nd, 2008, 04:29 PM
ya thats the problem i'm having though i'm not sure how to check what culture it currentally is using so i can change the href link to the css sheet.
May 3rd, 2008, 03:20 AM
Check either Request.ServerVariables["HTTP_ACCEPT_LANGUAGE"] or Request.UserLanguages.
Click Here to Expand Forum to Full Width
Survey posted by VBForums.