|
| desaiamarjeet : On March 11, 2008 2:46 AM said: |
Whenever i put a button on the page and run that page, the button is showing Stretched.
|
|
|
| AnshumanT : On March 30, 2008 12:50 PM said: |
How does Request["Language1"] work from inside the content place holder. I am having trouble getting this code to run.
I have a page that I have created from a masterpage. This page contains a content placeholder. Inside the content place holder is my dropdownlist "Language1". When InitializeCulture() is overwritten I do not see the collection being written to the string.
protected override void InitializeCulture()
{
string language = Request["LanguageSelector"];
if (language != null && language != "")
{
Thread.CurrentThread.CurrentUICulture = new CultureInfo(language);
Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(language);
}
}
<asp:Content ID="Content3" runat="server" ContentPlaceHolderID="ContentPlaceHolderLanguageSelector">
<asp:DropDownList ID="LanguageSelector" runat="server" AutoPostBack="true" OnSelectedIndexChanged="LanguageSelector_SelectedIndexChang ed">
<asp:ListItem Value="auto">Auto</asp:ListItem>
<asp:ListItem Value="fr">French</asp:ListItem>
<asp:ListItem Value="en-US">English (US)</asp:ListItem>
<asp:ListItem Value="en-GB">English (UK)</asp:ListItem>
</asp:DropDownList>
</asp:Content>
I am not sure what I am doing wrong here?
|
|
|
| strovek : On April 02, 2008 11:52 PM said: |
|
|
|
|
| Ays_Hogan : On April 06, 2008 2:21 PM said: |
How to Make flags by language when user click on the flag
language changed
|
|
|
|
|
|
|
| Soha.Jawabreh : On May 10, 2008 3:44 AM said: |
I'd like to get the C# code please
Soha
|
|
|
| kingbatspkt : On May 12, 2008 3:05 AM said: |
This video is very interesting but how can I do with a Menu?
Thank you.
|
|
|
|
|
| evelec : On May 29, 2008 5:42 PM said: |
This tutorial is really helpfull for a simple page but is there any advanced tutorial on Localization with MasterPage, ASP Navigation Control and SiteMap?
Here is my problem :
I use linkbuttons on my MasterPage to change localization (I just have 2 languages). I have localized my sitemap too. Everything works fine but I can't get the localization of the sitemap changed when another culture is selected with the buttonlink. Therefore my menu stays on initial browser language.
Alternatively, I have tried to switch sitemaprovider depending on the culture selected but It does'nt worked.
Thank you
Eve
|
|
|
| Peter Fehrman : On July 06, 2008 1:42 PM said: |
Does this example work with MasterPages?
|
|
|
| darriqb : On July 15, 2008 8:15 PM said: |
My issue is the same as Eve's and Peter's. I don't know how much testing they've done, but I've done a LOT. In every case when MasterPages are used, the page does not refresh properly with the resource tags from the selected language. It appears that the AutoPostBack event is executing, but not across all layers of the site. SiteMaps, Resource Keys, etc. none associated with the MasterPage, NOR those inside Content Placeholders change language.
One odd note: as with the sample here, .NET intrensic controls do seem to change. For example, I've put on a LoginView and LoginStatus object within my MasterPage and it appears to be changing to the requested language.
ANY help on this would be GREATLY appreciated.
NOTE: I have looked a the solution with cookies posted and it is not an option for us.
|
|
|
|
|
| muhammed : On July 22, 2008 4:33 AM said: |
|
|
|
|
| Timmen : On July 28, 2008 9:50 AM said: |
great video, just one little remark.
French isn't françois but français.
|
|
|
| yamu : On July 29, 2008 4:57 PM said: |
help is needed in localization with Master page.........my application work fine, I have created menu on master page, and xml file these are working fine when I am change language from browser.. I want to change language throught combobox I donot know, when I am selecting other language it is not fact on cultural languge......... when I change it from browser and load application again then it can apply and change cultural language
here is my code
<asp:DropDownList ID="Language1" runat="server" AutoPostBack="True"
style="top: 152px; left: 275px; position: absolute; height: 22px; width: 99px">
<asp:ListItem Value="en-US">English (US)</asp:ListItem>
<asp:ListItem Value="en-GB">English (UK)</asp:ListItem>
<asp:ListItem Value="fr">French</asp:ListItem>
<asp:ListItem Value="sv">Swedish</asp:ListItem>
</asp:DropDownList>
public partial class _Default : System.Web.UI.Page
{
protected override void InitializeCulture()
{
string lang = Request["Language1"];
if (lang != null && lang != "")
{
Thread.CurrentThread.CurrentUICulture = new CultureInfo(lang);
Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(lang);
}
}
}
any one help me it would be wonder ful
Looking forward reply
|
|
|
| smartymca : On August 05, 2008 8:59 AM said: |
great video but i have a large database and i want to display all its content in hindi language.how could i do this
|
|
|
| neerav : On August 06, 2008 5:05 AM said: |
Great Video , wel as we can change language by this way can we change the theme of full home page..?
|
|
|
| cv_vikram : On August 08, 2008 11:07 AM said: |
|
|
|
|
| karolita : On August 23, 2008 2:30 PM said: |
I get an Exception with Auto value:
Culture name 'auto' is not supported.
Parameter name: name
Others work fine.
Please any help, thanks.
|
|
|
| asater : On August 26, 2008 2:06 PM said: |
|
|
|
|
| Ambika Purushothaman : On September 16, 2008 5:27 AM said: |
How do i populate year in a dropdown.Note:The year format should change according to culture.Eg:In english -2008 in Korean 2008연도
|
|
|
| smartymscit : On September 19, 2008 12:28 AM said: |
hi 2 all........
can anyone help me pls
i make both default.aspx.resx and default.aspx.fr.resx file
and insert data in xml (resx) file but i it is not disply result....
show label with label txet and button with button text.
|
|
|
|
|
| MAlex001 : On November 17, 2008 8:55 AM said: |
Good video, but what happen with control like GridView??? How do we set up the header of the columns in different languages?
|
|
|
| uniquesaiful : On November 18, 2008 3:46 AM said: |
Culture name "auto" gives an exception. What "auto" actually means? Except this one everything is OK. Good video. Thanks.
|
|