G
Gopal Krish
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
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