Load Different Css For Site Localization?
Jul 12, 2010I need to load different css file depending on the language that the user selects. I need to do this only in my master page.
View 2 RepliesI need to load different css file depending on the language that the user selects. I need to do this only in my master page.
View 2 RepliesI need to do a web site which can support multiple language.I know this can be done by globalization , but i have few question to ask as below:
(1).If user choose to use Spanish/Chinese language, My Web application should throw any error message in Spanish/Chinese language to user.Whenever there is any error (catch by try catch) in the system, error message in English language is shown.How do i control this for it to show the language accordingly?I need to be able to traslate all the error message to Spanish/Chinese language or any other language.
(2).When there is any insert/update/delete in the data, i need to do it in stored procedure.How do i to set the error in stored procedure to return the error message in selected langauge?
I have no knowledge about sessions but I realize that using sessions in multi-language sites are very useful. How can I implement language selection by using sessions and sql database?
View 3 RepliesI am having difficulties loading the data from resx file to ddl control.
Inside the resx file the format is:
Name: CData
Value:
<countries>
<c text="Canada" value="1"/>
<c text="USA" value="2"/>
<c text="Africa" value="3"/>
</countries>
cs file:
ddl.DataSource = this.GetLocalResourceObject("CData");
ddl.DataTextField = "text";
ddl.DataValueField = "value";
ddl.DataBind();
At debug mode, I checked that the data is been capture from resource file as shown above (xml format) But it fails at DataBind(), showing that the text is not found...
I designed a multilanguage site. When I click languages at home, but the remaining pages does not change the language at the same time (not related to the database, just change the text of the controls). What function should I use to load all of the project.
View 4 RepliesI am developing a multi language site that has 40 languages. The database is relatively small both data and table Count.I need to display the contents in 40 different languages.should I translate the content and store the translated data in the database (40 different times)?
should I translate the content at runtime using a translation service like google translate? or what?its the large number of languages thats scary.
How to apply theGlobalization and Localization asp.net with C# ....
View 1 Repliesi would like to Load a Lcalized CSS and i have a Masterpage
i am trying to do something like...
1. Get the Client Locale (which i do on the global.asax onSession_Start event)
2. get the right CSS file for this local (since my website supports both RTL and LTR layout)
the CSS should be i.e. webpage.en-US.css (or similar) if the Client Local is en-US and if its he-IL it should be webpage.he-IL.css.
I am working on a application which supports multiple languages and I am doing it using asp.net resources files. Now the problem is, its a product and each user wants to have their own translations.For Example there is a text say "Home"Some users want to say it "Home Page" and some wants to say "Main Page"
Is there any possibility to do create different resource files, for each users, for each page and then load them according to the user currently logged in?
I'm using a cookie to keep track of the language.
The url stays the same for the french, english, polish, spanish, italian versions of the site since the content is located in seperate .resx files. and the code stays the same for all.
I need search engines to see all versions of my site.
And I need to stay on the same domain for all languages. No subdomains.
I'm trying to use resource files added to App_GlobalResources and geting the following error.
The framework is 4.0. The application uses DotNetNuke cms. Intellisense sees the properties in the WebApplicationResources class corresponding lines in WebApplicationResources.resx I cannot reproduce the error in the simple test website.
The exception text:
Server Error in '/dotnetnuke' Application. Could not load file or assembly 'App_GlobalResources' or one of its dependencies. The system cannot find the file specified.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'App_GlobalResources' or one of its dependencies. The system cannot find the file specified.
Source Error:
Line 40: get {
Line 41: if (object.ReferenceEquals(resourceMan, null)) {
Line 42: global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Resources.Resource1", global::System.Reflection.Assembly.Load("App_GlobalResources"));
Line 43: resourceMan = temp;
Line 44:
[code]...
site that is multilingual.I am using a database to store the text I have a translation object that loads the correct language using session variables.I recently found that on google.fr for example,only the english text is referenced and no french text at all.
View 1 RepliesI downloaded Firefox 4 yesterday and when I try to open my site (ASP .Net 2.0 site using masterpages) it tries to open the file rather than display the page. The message in the popup is: "You have chosen to open contactus.aspx which is a: aspx File from: 'my site'. What should Firefox do with this file?"
I am sending the following content-type: <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> I also tried changing the charset to utf-8, same thing.
When I try to run the page through the w3 validator it gives me this message:
Warning Character Encoding mismatch!
The character encoding specified in the HTTP header (utf-8) is different from the value in the <meta> element (iso-8859-1). I will use the value from the HTTP header (utf-8) for this validation.
Is the server (IIS) somehow setting the default charset? Could this mismatch be the problem? What else can I look for? Also, one more thing, I have a mobile site running on the same server which uses "application/xhtml+xml; charset=utf-8" as the content-type and it works fine in FF4.
Edit: here is an example page from the site: [URL]
Edit 2: I think I have narrowed down the problem to the mobile detection. I am using 51 degrees mobile device detection from [URL]
Me with C# asp.net, In my web page I have an Iframe. I want to load another site in this Iframe and switch between diffrent pages in that loaded site with in this Iframe How I can do this?
View 2 RepliesEvery now and then (always after a long period of idle-time, e.g. overnight) when I access a site built using asp.net - it takes around 15 seconds to load the page (15 seconds before I see any progress whatsoever, then the page comes up fast).Further pages on that site, or refreshes, are quick as usual - they are also fast on other machines, only the first one seems to take the 'hit'.
Page tracing never through anything up (whole cycle was a fraction of a second) So my question is where else should I be looking? Perhaps IIS? Or could it still be my asp.net app and I'm just looking in the wrong place (the trace) for clues?As I don't have much control over the IIS server, anything I can check through asp.net would be more helpful, before I go ask that particular admin.
i developed a website already and it was hosted in live too. My Problem is , site take a very long time to load , it take nearly 30-60 seconds to open , once it opened then it is some what better, MY Url Ishttp:\shoesrus.msinternational.bizplease verify and give me a solution , is their is any setting changes has to be taken in iis or server side etc..
View 3 RepliesI want to load test an ASP.NET web service. I have Visual Studio 2008 Professional Edition and Visual Studio 2010. Can either one of these products facilitate load testing? I can't seem to find anything and all Google returns is higher end editions of Visual Studio.If not, what are some of the alternatives.
View 3 Replieswe have an web site access on PRODTEST Environment . We are facing an issue site works fine when we try to access the site using the Individual Server names (with Ip address).
View 2 RepliesI publish by web site with VS2010 having set my output directory to say c:myPackage, but when I go into that VS10 has created about 10 subdirectories all named in a similiar way to my visual studio package diredctories. No matter what I do it always does this, even if I create a zip.
View 4 RepliesIs there a way to simulate load on a site in the development/testing phase?
View 1 RepliesChanged the framework in VS2010 for the project from 3.5 to 4.0, did a build, and the error is pretty basic, and just says "HTTP Error 404 - File or directory not found. Internet Information Services (IIS)".
I made sure IIS is set to 4.0, and have a separate App Pool. Any other tricks to get a 3.5 site to 4.0?
[Code]....
I have the above statement in the Page_Load sub on the masterpage. When I run "Start Debugging" from VS 2008 it works fine. However, when I publish the Web Site (on the same machine) and try to load the site from our internal network, the information is blank.
I have uploaded site on web server but I am having the following error.
"Could not load file or assembly 'MySql.Data, Version=6.1.3.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The system cannot find the file specified.
Description:
An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'MySql.Data, Version=6.1.3.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The system cannot find the file specified.
I have a doubt regarding secure cookie.
I have four servers 2 App Server(behind firewall) and 2 webservers and each server is accessing through Load Balancer.
App Server is a modules for Data Access layer and webserver is for Presentation layer.
My Issue is My Load Balancer has Secure certificate installed but certificate is not installed on servers and I want to make cookie as secure in site , as per my understanding " cookie should be set as secure only for SSL site other ways new session will get create every time" so should I install SSL certificate on webserver to make my cookie as secure or will it work properly even if only Load Balance has SSL.
I have a data driven site that displays a lot of information, particularly images, using listviews contained within UpdatePanels, since this data can change with each post back you often see 'submit query' before the Item image appears. So, is there a way of making the page display only after it has finished loading data? The delay as the page loads is only brief but looks quite ugly when 'Submit query' appears all over the site.
View 2 Replies