Last post Jun 23, 2011 06:08 PM by larsbehner
Jun 23, 2011 02:42 PM|larsbehner|LINK
I have a problem whith DirectoryEntry special characters. In my Active Directory domain I have groups that has special characters (norwegian æ,ø,å). I can easy search and list the groups in a SearchResultCollection and output to a GridView controll. The
trouble gets going when i select a group in the GridView to view multiple attributes and the groupname contains special characters.
So is there a "replace-way" for the special characters that fits with the DirectoryEntry?
Edit: The problem does not seem to be the DirectoryEntry. It seems to be the gridview or the DataTable. So when i get the value from the collumn in the gridview it seems to be something else than just a string value.. Maybe... The groups that are not containing
special characters works fine..
An other edit: So i confirmed it... It must be the gridview.. I tried to use a if instr() to check if the caracter is in there, and its not. SO.. does anyone know how i can find out what type of value it realy is? (the æøå and ÆØÅ values)
Thanx for any help :)
Jun 23, 2011 06:08 PM|larsbehner|LINK
I got it
The solution was to use this:
So when the groupName is returned from the gridview I decode the Html valuel. Problem solved.