Open document in another db from a repeat control

I have a Repeat control that is bound to another database.

When I create a custome control to put on the Repeat to display data from the documents in the Repeat control, I would like to include a link that opens the document (this will be client only to begin with so nothing complex)

How do I reference the complete database path in the Link URL value?

Thanks

Mike