add custom button to run c# code?

Last post 02-07-2011, 5:45 PM by Eric. 3 replies.
Sort Posts: Previous Next
  •  02-04-2011, 5:35 AM 66047

    add custom button to run c# code?

    Hi,
     
    were experimenting with cute editor and were wondering if it is possible to add a custom button that will run a c# function
    currently what where having to do, is create our c# functions then create a hidden button in the page that runs the function, then a javascript function in the editor that clicks the hidden button
     
    is it possible to just have a button run c# function (in other words a sever side button)
    or is there anything we can add that will be able to do this?
     
    if so where can we add it?
     
    Thanks 
  •  02-04-2011, 10:29 AM 66055 in reply to 66047

    Re: add custom button to run c# code?

    Dear AWilderbeast,
     
    Yes, it is possible.
    Please refer to http://cutesoft.net/example/howto/RegisterServerControl/cs/RegisterServerControl.aspx , you can find its source code in download package.
     
    Thank you for asking
  •  02-07-2011, 5:40 AM 66095 in reply to 66055

    Re: add custom button to run c# code?

    thanks Eric,
     
    is there a way to add my buttons and functions without initializing them on every page they are required
    as i want these buttons on ALL pages
     
    also can i make a custom drop menu that will run c#? 
     
    Thanks 
     
  •  02-07-2011, 5:45 PM 66104 in reply to 66095

    Re: add custom button to run c# code?

    Dear AWilderbeast,
     
    is there a way to add my buttons and functions without initializing them on every page they are required
    as i want these buttons on ALL pages
       You need initialize the customization button in CuteEditor page.
     
    also can i make a custom drop menu that will run c#? 
       You can create one custom drop menu, please refer to the following examples:
    dynamically populate the dropdown menu

    How to dynamically populate the dropdown menu?( C# | VB )

    This example demonstrates how to programmatically populate the Cute Editor dropdown menu.

    dynamically populate the tree view dropdown menu

    How to dynamically populate the tree view dropdown menu?( C# | VB )

    This example demonstrates how to programmatically populate the Cute Editor tree view dropdown menu.

     
     
    Thank you for asking
View as RSS news feed in XML