@{
    var submitValue = " ";
    if (showButton)
        submitValue = "&lt;input class=&quot;" + button.classNames + "&quot; type=&quot;button&quot; value=&quot;" + searchBtnText + "&quot; name=&quot;search&quot;&gt;";
}
<script runat="server">
    public void dnnSearch@(id)_Load(object sender, EventArgs e)
    {
        TextBox input = (TextBox)dnnSearch@(id).FindControl("txtSearch");
        LinkButton button = (LinkButton)dnnSearch@(id).FindControl("cmdSearch");
        input.CssClass = "@input.input.classNames";@if (!showButton) {
        button.CssClass = "@icon.classNames";}
    }
</script>
<div class="@classNames form-inline">
    <div class="@containerInner">
        <div class="bd-search-wrapper">
            <dnn:SEARCH OnLoad="dnnSearch@(id)_Load" ID="dnnSearch@(id)" runat="server" UseDropDownList="false" ShowWeb="false" ShowSite="false" Submit="@submitValue" />
        </div>
    </div>
</div>