GridView change charset on SelectedIndex
am 03.01.2008 12:25:14 von Inga2005
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 =E5,ä,ö are translated into rubbish such as ## and
other. Does anyone know why this is happning?
Cheers
/erik
Re: GridView change charset on SelectedIndex
am 03.01.2008 14:48:43 von Eliyahu Goldin
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" wrote in message
news:a1f735e6-920c-4702-8084-319f05bcb9bf@e6g2000prf.googleg roups.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
Re: GridView change charset on SelectedIndex
am 03.01.2008 20:04:28 von Inga2005
On 3 Jan, 14:48, "Eliyahu Goldin"
wrote:
> 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 =3D
> false.
>
> --
> Eliyahu Goldin,
> Software Developer
> Microsoft MVP [ASP.NET]http://msmvps.com/blogs/egoldinhttp://usableasp.net =
>
> "inga2005" wrote in message
>
> news:a1f735e6-920c-4702-8084-319f05bcb9bf@e6g2000prf.googleg roups.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 =E5,ä,ö are translated into rubbish such as ## and
> other. Does anyone know why this is happning?
> Cheers
> /erik
I found it myself. Just add htmlencode=3D"false" to the gridview column
and your safe.
/erik