Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...fr-FR . (dot) is not appearing on the grid for num val  12.345 displays 12 345 (without . separater)fr-FR . (dot) is not appearing on the grid for num val 12.345 displays 12 345 (without . separater)
Previous
 
Next
New Post
11/19/2010 5:48 AM
 
Hi there,

I've a strange problem.  We use Dutch and French lanuage on our site (nl-NL /  fr-FR)

I'm binding to a gridview and the strange thing is, the numeric value-saparator is not displaying well for French culture  (fr-FR)

<asp:TemplateField HeaderText="A-min">
        <ItemTemplate>
                 <asp:Label ID="lbla_min_10" runat="server" Text='<%# Eval("a_min_10") %>' />
       </ItemTemplate>
</asp:TemplateField>

protected void gridview_RowDataBound(object sender, GridViewRowEventArgs e)
{
Label lbla_min_10 = new Label();
lbla_min_10 = e.Row.FindControl("lbla_min_10") as Label;
lbla_min_10.Text = ((int)DataBinder.Eval(e.Row.DataItem, "a_min_10")).ToString("#,#.###");
...
}


e.g. DB value is 24369   in Dutch it displays  24.369  which is good for Dutch  and for French it displays 24 369    -> there is no DOT separator, but an empty space.
I looked at the view source and the code looks the same except theres is a  (dot) in NL and (space) in FR.....

Does someone have any idea? 

Is it a Dotnetnuke issue? 
why does it work for Dutch (nl-NL) fine and not for French (fr-FR)?


(it displays a space in stead of dot for fr-FR)
                                         displays in:          displays in:
DB VALUE                      nl-NL                     fr-FR
---------------                     -----------               ----------
24369                              24.369                 24 369
24382                              24.382                 24 382
24682                              24.682                 24 682
24709                              24.709                 24 709


I checked in IE and FF....-> both are the same results


FRENCH - VIEW SOURCE
-----------------------------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><<html xml:lang="fr-FR" lang="fr-FR" xmlns="http://www.w3.org/1999/xhtml"><head id="Head"><meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />

FRENCH - VIEW SOURCE
-----------------------------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xml:lang="nl-NL" lang="nl-NL" xmlns="http://www.w3.org/1999/xhtml"><head id="Head"><meta content="text/html; charset=UTF-8" http-equiv="Content-Type" /

 
New Post
11/30/2010 5:11 AM
 
I found the answer it seems to be that thousand separator for FR is a space.

so I have question. how can I do a thousand separator as (dot)  . and a comma ,

e.g. db value is: 123456 (integer)

I would like to have 123.456   and 123,456     (-> how to achieve this? )

any sample code?
 
New Post
11/30/2010 9:36 AM
 
this would require to modify region settings on the server, MSDN should provide you with necessary information.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...fr-FR . (dot) is not appearing on the grid for num val  12.345 displays 12 345 (without . separater)fr-FR . (dot) is not appearing on the grid for num val 12.345 displays 12 345 (without . separater)


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out