RE: how to display sql server uniqueidentifier (GUID) in a combo box i
From: HARI PRASD BARU (HARIPRASDBARU_at_discussions.microsoft.com)
Date: 10/27/04
- Next message: asdf: "DNN & FarPoint Spread for Web..."
- Previous message: wl: "Re: how to display sql server uniqueidentifier (GUID) in a combo box in ASP.NET"
- In reply to: Gopal Krish: "how to display sql server uniqueidentifier (GUID) in a combo box in ASP.NET"
- Messages sorted by: [ date ] [ thread ]
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
>
- Next message: asdf: "DNN & FarPoint Spread for Web..."
- Previous message: wl: "Re: how to display sql server uniqueidentifier (GUID) in a combo box in ASP.NET"
- In reply to: Gopal Krish: "how to display sql server uniqueidentifier (GUID) in a combo box in ASP.NET"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|