473,499 Members | 1,689 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
1 2286
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
2729
by: BigDadyWeaver | last post by:
I am using the following code in asp to define a unique and unpredictable record ID in Access. <% 'GENERATE UNIQUE ID Function genguid() Dim Guid guid =...
1
498
by: John Smith | last post by:
Hi all, I've got this math problem... I feel a little bit silly but here it is, because it seems first year CS, but my memory fails me. Sample Code: Guid myGuid = new...
2
23899
by: Carl | last post by:
Hi, I do have one dataset from SQL server with a field (bound) to Textbox called txtID , this field is of type uniqueidentifier. From the doc, they say the equivalent is GUID in dot net, ...
7
1703
by: Steve | last post by:
I need to generate a unique number/string of some description and thought a guid would be ideal. Any ideas on how to generate a guid? I'm not using SQL server so SELECT NEWID() is out but...
20
5728
by: Dennis | last post by:
I have created an access database table in code with the field "KeyId" as a GUID type. What is the SQL syntax for updating a record matching this GUID, i.e., Dim myGUid as New GUID(....) ...
1
226
by: Schu | last post by:
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 =...
10
4352
by: Charles Hunt | last post by:
Hi, When running this code in VB2003 Sub guidtest() Dim gstring As String Dim gid As Guid
3
1539
by: Sandeep Singh Sekhon | last post by:
I am developing an application in ASP.NET 1.1. on one page I allow the user to upload and delete the files to the server. When I delete the file, I physically delete the file from the location....
4
5499
by: Marc | last post by:
Hi, I don't get it I cannot get this to work, can somebody give me a hint Table1 contains a field Id which is a GUID as primary key and DATA a string, I want to insert a new row but it does not...
0
7134
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
1
6905
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5485
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4921
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4609
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3108
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3103
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1429
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
311
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.