How to add a Custom Button on TopToolBar of HTML Editor

As to the new AjaxControlToolkit control HTML Editor, if some one wants to add a custom button onto TopToolBar of Editor and do some custom code, you can add a MethodButton and define client-side onclick to do script. It's no way to define server-side onclick of it. However, you can build a doPostBack functionality on client if you'd like to do onclick on the server-side.


public class CustomEditor : AjaxControlToolkit.HTMLEditor.Editor
{
public CustomEditor()
{
//
// TODO: Add constructor logic here
//
}


protected override void FillTopToolbar()
{
//base.FillTopToolbar();

AjaxControlToolkit.HTMLEditor.ToolbarButton.MethodButton btn=new AjaxControlToolkit.HTMLEditor.ToolbarButton.MethodButton();
btn.NormalSrc= "aa.jpg";
btn.Attributes.Add("onclick", "alert('a');");
TopToolbar.Buttons.Add(btn);

}
}


Update:

This new feature has been added to Editor control. You can download it and create custom button in editor control:

http://ajaxcontroltoolkit.codeplex.com/SourceControl/changeset/view/54501

Sony Ericsson Launch Recycled Mobile Phone - C901 Greenheart

Greetings,

I'm glad to see another of the major mobile phone manufacturers has decided to produce a handset which is more environmentally sustainable.
The C901 Greenheart is the first product to be developed with Sony Ericsson's sustainablity guidelines in mind.

Featuring a casing made from 50% recycled plastics and their first ever in-phone manual (which reduce the amount of paper produced per phone by 90%), this phone is full of eco-gubbins like a carbon calculating pedometer and light sensors to reduce energy usage. It also comes bundled with a low power charger and a 100% recycled plastic headset.

It is great to see Sony Ericsson joining the ranks alongside other phone manufacturers such as Motorola and Samsung designing and producing products for those of us who are more environmentally minded.

Onwards & upwards!

Lucy.

Sustainable Chocolate Powered F3 Racing!

Greetings,

I came across this and just felt I had to share it with you. Worldfirst Racing have just built a proof of concept racing car which runs on a biodiesel fuel which is derived from vegetable oil and waste chocolate. Not only that but a lot of the vehicles components have been built around sustainable materials, i.e. potato starch coated in flax fibre for the wings and a steering wheel made from 'curran', a carrot derivative! See here for more detail about the technology behind the car.

Just in case you're checking your calendar for the 1st of April, here's a clip of the car in action:



Bear in mind it is often the racing industry which drives forward (pardon the pun) automotive innovation which eventually is passed onto the consumer market, one day we could all be motoring in cocoa powered cars!

Onwards & upwards!

Lucy.