.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

HTMLEditor Custom Button

Posted By:      Posted Date: September 10, 2010    Points: 0   Category :ASP.Net
 I'm trying to use the ajax HTMLEditor for the first time.   I've used a class vb.page to specify which buttons etc. :-  TopToolbar.Buttons.Add(new AjaxControlToolkit.HTMLEditor.ToolbarButton.Bold());   I want to add a dropdownlist with my own values in, such as Heading1, Heading2 etc. where the font size and color is changed.   Any help would be appreciated as I can't seem to find many tutorials on this.

View Complete Post

More Related Resource Links

Creating a custom Styles Select Button for HTMLEditor


I have been trying to create a custom Styles select button for the HTMLEditor control based on the examples given in the CustomButtonsAndPopups.cs and CustomEditor.cs files. I have had some success: The select button is displayed and the functionality of selecting a style (eg. H1, H2, P etc) and changing the style of selected text works but there are two problems that make it different from the Font Name select button: There is no label next to the button and there is no default text:

The style button is on the left. The Font Name select button is on the right

Any suggestions about how to add the label and the default option?

Here is my version of the CustomButtonsAndPopups.cs file:

Custom Button (Sharepoint 2007)




I have a relatively small project to build a class sign up portal for my company.  I am about 90% done and this is one I have so far:


1 custom list off all classes called “Classes” (Class name, Data, teacher, etc, ..)

1 custom list of employees who signed up called “Signup sheet” (Employee Name, Class  name)


What I want is when you display a class information from the “Classes” list, I want a button on the bottom called “sign up for this class” that brings me to the new item page of “Signup sheet” with the class already filled in for you.  Seems easy on paper but I have been trying to do this for weeks.


I am ok with share point designer and am open to any suggestions.


Thanks in advanced,


Infopath button click event in custom workflow code.


Hi All,

I have designed the infopath form(Init) and integrated with my state machine workflow. i want to access button click event (designed in Infopath form) in my workflow code.

Can you help me.




Redirecting to custom page while clicking on the user/group browse button

Hi, i have created a custom visual web part in visual studio 2010 and i deployed it into sharepoint site by creating a new page in my site. The custom page gets the data of users/groups from database and pass the users to the people picker in sharepoint.Here my question i have a document library where we upload document and get the users page popup that consists of people picker and a user/group browse button.when i click on the (book image button)browse button it will redirect to the user and group search page but here i need to replace my custom  user/group search page with the default one so please help me how to redirect to the custom page by clicking on the user/group browse button,and i need to pass the selected users to the people picker text box........please give me some solution whether this can be done or not if possibe please send me the link or some sample code how to do this   thank you.

Isseus with Custom Button Controls

Hi I have inherited a custom button control which was originially derived from a LinkButton, however due to some isseus with the click event and different browsers it has been decided to use a control derived from a Button. I have the following issues with this: 1) The text appears with a box around it whereas the original didn't have this (see example below) 2) When i position the cursor over the button it correctly changes colour but the text disappears whereas the original it remains. Any help on this would be appeciated, I have attached my code and css files Regards Kenpublic class GemaButtonControDesigner : ControlDesigner { public override string GetDesignTimeHtml() { GemaButton control = this.ViewControl as GemaButton; string rtr = control.Text; if (String.IsNullOrEmpty(rtr)) rtr = "GemaButton"; return rtr; } } [ParseChildren(true, "Text")] [Designer(typeof(GemaButtonControDesigner))] [DefaultProperty("Text")] [ToolboxData("<{0}:GemaButton runat=\"server\"></{0}:GemaButton>")] public class GemaButton : Button { #region Constants private const int MINIMUM_SIZE = 16; private const int SMALL_SIZE = 79; private const int DEFAULT_SIZE = 97; private const int SMALL_HEIGHT = 10; private const int DEFAULT_HEIGHT = 14;

Is it possible to add a custom menu group to the Site Actions button?


I know I can use a Custom Action to add a new menu item to my Site Actions button .

Is it possible for me to add a new menu group to the Site Actions button? For example, like the OOB Site Settings menu group, which then extends out to offer additional items such as "Modify All Site Settings" etc.

Error occurring when clicking the New button for a custom list


I have a custom list that was created from a list template, when I click the "New" button the following error occurs:

"An unexpected error has occurred"

I tried resetting the site definition of NewForm.aspx to the original but the error still occurs.  This is the only thing I can find in the logs regarding this list:

09/30/2010 09:44:48.62 w3wp.exe (0x07A0)                       0x0660 Windows SharePoint Services   General                       8kh7 High     There is no Web named "/regions/canada/team-site/Lists/Auto Booking Current Quarter/AllItems.aspx".  

09/30/2010 09:44:48.62 w3wp.exe (0x07A0)                       0x0660 Windows SharePoint Services  

Editor Custom Button with template HTML



How can I add button to the toolbar that will add a small html template text to content?

For example, when I click on that button, I want to "<table><tr><td><b>Hello world</b></td></tr></table>" be added to the content.

Thanks in advance,


Save button on custom EditForm.aspx locks record



I am having an issue with my EditForm.aspx on a list. My problem is that when I make a change to a record and click save (and it brings me back to the page), the first set of changes are saved fine but if I then enter more content and click save without refreshing the page I get the error:

 Save Conflict.

Your changes conflict with those made concurrently by another user. If you want your changes to be applied, click Back in your Web browser, refresh the page, and resubmit your changes.


This is the code that I am using for my save button:

<input type="button" value="Save Changes" name="btnFormAction" onclick="javascript: {ddwrt:GenFireServerEvent('__commit')}" style="padding: 5px; border-style: none; background-color: #21374c; color: #FFF; font-weight: bold; font-size: 14px;" />

 Is there something I need to add to my code that unlocks the record once it has been saved?

Thanks in advance for the help :)


How to insert a button as WebPart Custom Property.

I want to inset a button as Webpart custom property. any idea how to do it.

Custom ribbon button that is visible "everywhere"



I am trying to create a custom ribbon button that will be visible whenever its parent group is present. For the moment the only way I can make it visible is if I explicitly type RegistrationId and RegistrationType under CustomAction. Removing either or both results in the button dissapearing.

Any help would be greatly appreciated! I have been googling for ages trying to find a solution.

My elements.xml file:

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <!-- Registration

Custom ribbon button on content type not shown in XsltListViewWebPart


Hello all,

As a bit of background: I'm currently busy developing a content type with some kind of status (waiting / in progress / done). I want to make the users life a bit easier to complete an item so I want to add a button to the ribbon that sets the selected items status to "Done".
This works when I go to the list and click on the item (I see my button and it works perfectly). The problem is that this button is not visible when I add a view of this list on the homepage, then suddenly my button does not show.

Does anybody know what can be done to also show the button inside the ribbon of the XsltListViewWebpart? Below is my elements.xml that I use.


<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  Title="Add a Ribbon Button">
     <Button Id="Ribbon.ListItem.Actions.NewRibbonButton"

Custom Ribbon Button server side click handling



I am working on SharePoint 2010. In my application we need to perform some server side logic on click of custom ribbon button, I have added a custom button to sharepoint ribbon but not sure how to execute server side logic on ribbon button click.

How to Specify the Assembly/Class/Method name for button click handler? Can some one post a sample on this?

My CustomAction definition is below:

    Description="Completes tasks"

how to add custom button to ribbon using server object model?(not using xml)

how to add custom button to ribbon using server object model?(not using xml)

button in custom server control


i can add buttons in my custom server control but  i can't handle button click event.  how can i do this 

Custom ribbon button not showing when selecting item in webpart


Wondering if any one else seen this, I noticed custom ribbon buttons don't show up when I select item in document library in webpart view. Site is created using team site template and the webpart that shows contents of a document library is inside of a wiki editing control in team site home page

Button shows up correctly when I select the item once in document library view

Microsoft Certified Master | SharePoint 2007

how to specify file name and close the info path form on custom submit button?

i have submit button in the form once i click it must ask to enter the file name and once i given it it must close the particular browser tab.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend