Thursday, January 10, 2008

DefaultButton

In a given page we can have both a Form DefaultButton and also Panel DefaultButton.
A Panel’s DefaultButton takes high priority then the Form in that panel level.
We can’ve DefaultButton for the Form in both the Master and in the Page.
So naturally the Page’s Default Button gets precedence.
What if we’ve decided to have only Panel DefaultButton in a page but the page gets inherited from
A Master Page which has a Form DefaultButton?
Override the Master’s DefaultButton by setting the Page’s default button as null
*********************************************************************
Page.Form.DefaultButton = null;
*********************************************************************

No comments: