RE: how to display sql server uniqueidentifier (GUID) in a combo box i

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: HARI PRASD BARU (HARIPRASDBARU_at_discussions.microsoft.com)
Date: 10/27/04


Date: Wed, 27 Oct 2004 03:05:06 -0700

Hi GOpal
  Can you please tell me how u r getting the values from the database.As u
said i am not getting any error or "System.Byte[]" .
check how ur getting values from the database.
I have created table with Unique Identified gettig data into dataset and
binding ...displaying properly...

"Gopal Krish" wrote:

> I need to display uniqueidentifier (GUID) from a table in SQL Server
> into a ASP.NET Web Page (Combo box). I'm using C#.
>
> When I tried to display GUIDs in a combo box I get "System.Byte[]" for
> all the items in the combo box.
>
> Code :
>
> ddSeverity.DataSource = A dataset is returned here;
> ddSeverity.DataValueField = "Name";
> ddSeverity.DataTextField = "Severity_ID";
> ddSeverity.DataBind();
>
> "Severity_ID" is actually a GUID (Uniqueidentifier) in a SQL server
> table.
>
> I need to display the GUIDS as hex values in the web page (Just as the
> GUIDS are show as hex values in Query Analyzer) but its not showing
> anything other than "System.Byte[]".
>
> Any help is much appreciated.
>
> Thanks
> Gopal
>



Relevant Pages

  • beautify-unl.sh - Tiny revision
    ... I have just uploaded a miniscule upgrade of a tried-and-true script I ... Most of my other displaying ... I recently discovered that in "unload" files with hex columnslike ... Some big differences in the uploaded file: beautify-unl.zip: ...
    (comp.databases.informix)
  • Re: WMI data different from EventLog
    ... If not then the "Hex numbers" are GUIDs. ... WritePreferences ... SetPassword ...
    (microsoft.public.win32.programmer.wmi)
  • Re: Ghostview (latest version) wont work
    ... I don't know of a useful tool under Windows NT/2k/XP for displaying ... the start of a file in hex. ... Kinda off topic for a PostScript newsgroup but I use 'V' ...
    (comp.lang.postscript)
  • Re: decimal to hexadecimal
    ... "Format" (binary, octal, decimal, hex) only comes into play when ... displaying the value on some output device; ...
    (comp.lang.c)
  • Re: how to display sql server uniqueidentifier (GUID) in a combo box in ASP.NET
    ... >I need to display uniqueidentifier from a table in SQL Server ... > I need to display the GUIDS as hex values in the web page (Just as the ... > GUIDS are show as hex values in Query Analyzer) but its not showing ...
    (microsoft.public.dotnet.framework.aspnet)