Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > How to change style of CMSSearchBox Control View modes: 
User avatar
Member
Member
Anuj - 3/11/2010 8:03:39 AM
   
How to change style of CMSSearchBox Control
Hello,

How I could change CMSSearchBox Control style? I wish to use image in place of button.

I want to do this from .NET code because I am using searchbox control on a page outside of CMS Pages.

Thanks in Advance.

Anuj

User avatar
Kentico Developer
Kentico Developer
kentico_ondrejv - 3/22/2010 3:10:16 PM
   
RE:How to change style of CMSSearchBox Control
Hello,

You can use asp:ImageButton control placed in the cmssearchbox.ascx control(http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.imagebutton.aspx). You can style it as per your needs.

It's possible to see it within the Corporate Site sample site. Please take inspiration from it.

Best regards
Ondrej Vasil