showing a guid in a text box

  • Thread starter Thread starter Schu
  • Start date Start date
S

Schu

I am trying to show a grid in a text box in an aspx page
but I am not able to convert the GUID to a string. Here
is the line I am trying to get to work:

textbox1.text = grid.datakeys(e.item.itemindex)

Can anyone tell me how to do this?

Schu
 
Showing a guid is easy..

Try:

C#
textbox1.Text = ((System.Guid)grid.datakeys
(e.item.itemindex)).ToString();

VB
textbox1.text = CType(grid.datakeys(e.item.itemindex),
System.Guid).ToString()

HTH

Eddie de Bear
 
Back
Top