Search Button - image/text

A place for discussion about skinning and design. Before posting questions here you should review the documentation about creating skins.

This thread is closed to new posts. You must sign in to post in the forums.
3/6/2008 9:29:38 PM
Gravatar
Total Posts 48

Search Button - image/text

Hi there,

I'm trying to create a skin but I can't figure out how to change the "Search" button. I'm looking to change it to an image button. Does anybody know how to do this or how to change the text on the button?

Thanks in advance

3/7/2008 4:51:56 AM
Gravatar
Total Posts 550

Re: Search Button - image/text

Hi atwork8

You can and SearchButtonText entry to your resource file(Resource.*.resx) and enter a custom text as search button label.In my opinion assigning an image to this button not completed yet.

Hope help you

 

 

 

3/7/2008 5:06:41 AM
Gravatar
Total Posts 18439

Re: Search Button - image/text

You can easily use an image for the button if you specify an ImageUrl on the SearchInput control in your layout.master file

I don't recommend editing the resource file to change the text because you would lose your customization when you upgrade and the resource file is overwritten. Resource files are for localization not customization. So if you want custom text on the button best to use an image.

Hope it helps,

Joe

3/14/2008 1:58:00 AM
Gravatar
Total Posts 48

Re: Search Button - image/text

Hi A.Samarian / Joe,

Thanks for the help.

Joe, I had added the "ImageUrl" to the search input control already but the text "Search" just kept appearing. I then realised that this was due to me pointing the image url at the wrong place. It is now sorted.

Thanks again

You must sign in to post in the forums. This thread is closed to new posts.