How to pass an ID from page to a user control's SelectParameter?

454 Views Asked by At

Struggling in the foothills of learning about web user controls (in VWD Express with VB), I'm looking for an efficient way to pass the value of an ID from the page to the control, to be applied in a datasource's SelectParameters. Any quick tips to get me started?

1

There are 1 best solutions below

6
On

All child controls have access to their MasterPage via the Master property. If you make a public method on your MasterPage's code behind that returns the id, you can call that method from the child page.