scm0sml
asked on
guid showing as 00000000-0000-0000-0000-000000000000 ?
hi,
im using guids.
when i try to view in debug or use response.write i only ever get:
00000000-0000-0000-0000-00 0000000000
i know the guid is working but how can i view its value?
im using guids.
when i try to view in debug or use response.write i only ever get:
00000000-0000-0000-0000-00
i know the guid is working but how can i view its value?
Dim guidResult as String = System.Guid.NewGuid().ToString()
the following vb.net code will generate a random guid:
Dim myGuid As Guid = Guid.NewGuid()
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
i didnt want to generate a new guid i juyst wanted to be able to view it as it wasnt showing up in code as anything other than the place holder.
harwantgrewals answer did the trick:
Guid _myGUID = new Guid("1088729d-124d-4d0e-b 5f3-d9ac36 d787bb"); replacing the guid with a string variable
harwantgrewals answer did the trick:
Guid _myGUID = new Guid("1088729d-124d-4d0e-b
00000000-0000-0000-0000-00
Null guid is just a placeholder.