Can you set the default button of a panel with a button that is not in that panel but in another content placeholder in a master page?

Posted by Geezuz on Stack Overflow See other posts from Stack Overflow or by Geezuz
Published on 2011-03-02T15:22:17Z Indexed on 2011/03/02 15:24 UTC
Read the original article Hit count: 160

Filed under:

Can you set the default button of a panel with a button that is not in that panel but in another content placeholder within a master page? I have tried this but I get the following error:

The DefaultButton of 'pnlTmp' must be the ID of a control of type IButtonControl.

I have also tried setting the panels DefaultButton this way :

  pnlTmp.DefaultButton = btnContinue.UniqueID

This gave me the same error.

Any help would be great.

© Stack Overflow or respective owner

Related posts about vb.net