Author: Scott927 | Posted on: 6/17/2009 8:06:01 AM | Views : 344

I have a CompositeControl I've created to output a search box and a couple of other search related tools. It works fine, but we're upgrading from a 1.1 based code to 2.0 and I want to specify a DefaultButton for a Panel. I have the following code:

btnGoSearch = New System.Web.UI.WebControls.Button btnGoSearch.CausesValidation = False btnGoSearch.CssClass = "cssButton" btnGoSearch.Text = "Go" btnGoSearch.Width = Unit.Pixel(35) btnGoSearch.ID = "btnGoSearch" drpBrands = New System.Web.UI.WebControls.DropDownList drpBrands.CausesValidation = False drpBrands.AutoPostBack = True drpBrands.CssClass = Go to the complete details ...