Create a method that takes in a GUID and returns a string for the name. You will need to retrieve the document using the API(Different in version 7 and 8). In 8 you could use the documenthelper class possibly, otherwise, you could event just grab a dataset and set the where condition to where to doc guid = control.selectedvalue or however you store it.