HighTechTalks DotNet Forums  

GridView change charset on SelectedIndex

ASP.net ASP.net discussions (microsoft.public.dotnet.framework.aspnet)


Discuss GridView change charset on SelectedIndex in the ASP.net forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
inga2005
 
Posts: n/a

Default GridView change charset on SelectedIndex - 01-03-2008 , 05:25 AM






Hi!
I have a very strange problem. I populate a gridview control with a
list containing swedish cities and that looks fine. But once I click
on one of the rows in the gridview to select that specific row the
swedish characters å,ä,ö are translated into rubbish such as ## and
other. Does anyone know why this is happning?
Cheers
/erik




Reply With Quote
  #2  
Old   
Eliyahu Goldin
 
Posts: n/a

Default Re: GridView change charset on SelectedIndex - 01-03-2008 , 07:48 AM






Perhaps some code controling language settings runs only on the first page
load and not in postbacks. Make sure it runs not only when IsPostBack =
false.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net


"inga2005" <erik (AT) liffner (DOT) se> wrote

Hi!
I have a very strange problem. I populate a gridview control with a
list containing swedish cities and that looks fine. But once I click
on one of the rows in the gridview to select that specific row the
swedish characters å,ä,ö are translated into rubbish such as ## and
other. Does anyone know why this is happning?
Cheers
/erik





Reply With Quote
  #3  
Old   
inga2005
 
Posts: n/a

Default Re: GridView change charset on SelectedIndex - 01-03-2008 , 01:04 PM



On 3 Jan, 14:48, "Eliyahu Goldin"
<REMOVEALLCAPITALSeEgGoldD... (AT) mMvVpPsS (DOT) org> wrote:
Quote:
Perhaps some code controling language settings runs only on the first page
load and not in postbacks. Make sure it runs not only when IsPostBack =
false.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]http://msmvps.com/blogs/egoldinhttp://usableasp.net

"inga2005" <e... (AT) liffner (DOT) se> wrote in message

news:a1f735e6-920c-4702-8084-319f05bcb9bf (AT) e6g2000prf (DOT) googlegroups.com...
Hi!
I have a very strange problem. I populate a gridview control with a
list containing swedish cities and that looks fine. But once I click
on one of the rows in the gridview to select that specific row the
swedish characters å,ä,ö are translated into rubbish such as ## and
other. Does anyone know why this is happning?
Cheers
/erik
I found it myself. Just add htmlencode="false" to the gridview column
and your safe.
/erik


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.