I've created a custom webpart that shows me some details of a dossier. I've added a DossierID property like this:
public Guid DossierId { get; set; }
This identifies the dossier from which I want to see the details.
I also have a BCS list with dossiers. I've placed my custom webpart on the dispform of this list. I can retrieve the current ID with
HttpContext.Current.Request.QueryString["ID"];
But I don't like to do that because then I can't use my webpart in a place where I don't have an ID in the querystring.
Is there a way to bind the ID used in the querystring of dispform.aspx to the property of my custom webpart?