Hello everybody!

I have client code such as:

    function getPicture()
    {
                someclass.GetPic(getPicture_callback);
                return true;
    }

    function getPicture_callback(cbData)
    {
                var bmp = cbData.value;
                var btnAdd = document.getElementById('btnAdd');
                btnAdd.style.backgroundImage = bmp.src;     //bmp.getImage();
    }

And server code:

        [AjaxPro.AjaxMethod]
        public static Bitmap GetPic()
        {
                Bitmap pic = new Bitmap(@"C:\somepath\somefile.jpg");

                return pic;
        }

As result on client a have an error. I just need to set background
image for button.
Who can help me?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Ajax.NET Professional" group.

To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]

For more options, visit this group at http://groups.google.com/group/ajaxpro

The latest downloads of Ajax.NET Professional can be found at 
http://www.ajaxpro.info/

Don't forget to read my blog at http://weblogs.asp.net/mschwarz/

The open source project is now located at 
http://www.codeplex.com/Wiki/View.aspx?ProjectName=AjaxPro
-~----------~----~----~----~------~----~------~--~---

Reply via email to