We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to use bitmap as image in buttonadv

Thread ID:

Created:

Updated:

Platform:

Replies:

105929 Nov 28,2012 03:14 PM UTC Dec 6,2012 08:45 AM UTC ASP.NET Web Forms (Classic) 4
loading
Tags: Tools
Ochieng
Asked On November 28, 2012 03:14 PM UTC

Is it possible to use a bitmap as button image instead of using imageurl?

Varalakshmi R.S [Syncfusion]
Replied On November 29, 2012 11:53 AM UTC

Hi Ochieng,

 

Thanks for contacting Syncfusion forums.

 

We suggest you to set image to the class “.button” which commonly sets the background image for all the  buttons in the page or apply the style to the specific button using its id.  Please refer the below code snippet to achieve this,

<code>

[CSS]

.button

{

background-image:url("../../../Content/Images/background.png");

}

// ‘OfficeButton1’ refers the id of the button control

#OfficeButton1_OUB

{

background-image:url("../../../Content/Images/background.png");

}

</code>

Kindly try the above solution.

 

Regards,

Varalakshmi


Ochieng
Replied On December 4, 2012 07:32 AM UTC

Hallo ,
my problem is i am making a screenshot and intend to use that as the button image. The buttons are being created dynamically and the image is stored in the databank as a blob. At runtime the image will be accessed using a memorystream and converted to a bitmap therefore i cannot access it using URL.

Ochieng
Replied On December 5, 2012 01:26 PM UTC

my problem is i am making a screenshot and intend to use that as the button image. The buttons are being

created dynamically and the image is stored in the databank as a blob. At runtime the image will be accessed

 using a memorystream and converted to a bitmap therefore i cannot access it using URL.

I have attached part of the code to show where my button would implement the button image


code part_634b90d9.zip

Varalakshmi R.S [Syncfusion]
Replied On December 6, 2012 08:45 AM UTC

Hi Ochieng,

 

We regret to let you know that this requirement cannot be done with our current implementation. Bitmap images cannot be set directly as background for the Button. You need to store the image in your local folder and should load it using its url.

 

Regards,

Varalakshmi


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;