Random generated dock id

2 posts, 0 answers
  1. Jesper Broe Rasmussen
    Jesper Broe Rasmussen avatar
    33 posts
    Member since:
    Mar 2007

    Posted 21 Sep 2007 Link to this post

    Hey there,
    just to share some experience...

    I created some docks dynamically and set the dock id to a .Net generated GUID. When I loaded the page I got a JavaScript error saying something like "Expected ':'"...

    This issue might be obvious but never the less it took me some work to find out that the Guid is not suitable for id's...

    Cheers
  2. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 21 Sep 2007 Link to this post

    Hello Jesper,

    Yes, the GUIDs are not useful for IDs, because by default they contain invalid characters. You could use the following syntax for generating random IDs:
    string guid = Guid.NewGuid().ToString("N");

    All the best,
    Valeri Hristov (Senior Developer, MCSD)
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top