467,915 Members | 1,162 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,915 developers. It's quick & easy.

showing a guid in a text box

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
Jul 21 '05 #1
  • viewed: 1958
Share:
1 Reply
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
-----Original Message-----
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
.

Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by John Smith | last post: by
2 posts views Thread by Carl | last post: by
7 posts views Thread by Steve | last post: by
20 posts views Thread by Dennis | last post: by
1 post views Thread by Schu | last post: by
10 posts views Thread by Charles Hunt | last post: by
3 posts views Thread by Sandeep Singh Sekhon | last post: by
4 posts views Thread by Marc | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.