Hey Matt,
I have the custom control working pretty close with the exception of the button and input field styles. I suspect the issue is because its all sitting in a span. See my code comparisons below. Is there anyway to tell the custom control to not render in a span? ie (id="ctl00_ctrlSearch"). Note that my css did change from a div with an id of search2 to making it a class.
New control
Code:
<span id="ctl00_ctrlSearch">
<div id="ctl00_ctrlSearch_SearchPanel" class="search2" onkeypress="javascript:return WebForm_FireDefaultButton(event, 'ctl00_ctrlSearch_SearchButton')">
<h4>Search</h4>
<input name="ctl00$ctrlSearch$SearchText" type="text" id="ctl00_ctrlSearch_SearchText" class="ifield" />
<input type="button" name="ctl00$ctrlSearch$SearchButton" value="" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$ctrlSearch$SearchButton", "", true, "", "", false, true))" id="ctl00_ctrlSearch_SearchButton" class="btn" />
<span id="ctl00_ctrlSearch_ctl00" class="_error" style="color:Red;font-weight:normal;font-style:normal;display:none;"></span>
<div id="ctl00_ctrlSearch_ctl01" style="color:Red;display:none;"></div>
</div>
</span>
Previous form
Code:
<div id="search2">
<form name="topsearchform" action="search/search.aspx" method="GET" onsubmit="">
<h4>Search</h4>
<input type="text" size="25" name="keywords" class="ifield" />
<input type="image" src="skins/skin_2/images/search.jpg" class="btn" value="submit" name="submit" />
</form>
</div>