I'm trying to implement a customized Ajax Control Toolkit HTML Editor control in a Web Application. How do I do this without using a class in the app_code directory (since it's really not supported, especially in Azure)? Any sample code (vb.net or c#) is greatly appreciated!
How do you implement a Ajax Control Toolkit Custom Editor in a .Net Web Application?
1.8k Views Asked by DrewF At
2
There are 2 best solutions below
0
simon831
On
Create a separate project and reference it in your website.
<%@ Register Assembly="Library" namespace="MyLibrary.CustomControls" tagprefix="custom" %>
<custom:EditorControl ID="editor" runat="server" />
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using AjaxControlToolkit.HTMLEditor;
namespace MyLibrary.CustomControls
{
public class EditorControl : Editor
{
protected override void FillTopToolbar()
{
TopToolbar.Buttons.Add(new AjaxControlToolkit.HTMLEditor.ToolbarButton.Bold());
TopToolbar.Buttons.Add(new AjaxControlToolkit.HTMLEditor.ToolbarButton.Italic());
}
protected override void FillBottomToolbar()
{
BottomToolbar.Buttons.Add(new AjaxControlToolkit.HTMLEditor.ToolbarButton.DesignMode());
BottomToolbar.Buttons.Add(new AjaxControlToolkit.HTMLEditor.ToolbarButton.PreviewMode());
}
}
}
Related Questions in .NET
- Does compiler optimize operation on const variable and literal const number?
- What is the point of definnig Asp.net Intrinsic Objects In different places and what is the different betwen them?
- Deleting Orphans with Fluent NHibernate
- IOrderedEnumerable to vb.net IOrderedEnumerable Conversion
- What is this namespace ITypeOfObjectsBoundToListBox ? Couldn't find it
- .net rest service with JSON string and consumed with java client
- What is best way to check if any of the property of object is null or empty?
- Telerik's WPF RadColorPicker NoColorText property not working
- Possible consequences of duplicate ProgId for different classes
- How are multiple requests to Task.Run handled from a resource management standpoint?
- Optimizing C++ call from C#
- Make a per-web-application object available to Web API and SignalR controllers
- System.ComponentModel.DataAnnotations.Schema namespace conflict
- LINQ Except/Distinct based on few columns only, to not add duplicates
- Not displaying content by its URL string - absolute urls
Related Questions in AJAX
- Ajax jQuery firing multiple time display event for the same result
- Implement Onfailure in webApi controller
- AJAX PHP - Reload div after submit
- ajax load data from mysql
- Ajax-update only a component attribute, not the whole component nor its children
- using ajax to get a php database result and then show the result in a button
- How to prevent browser from executing some JavaScript when person clicks Back button?
- ajax async: true statement execution order
- Rails 4.2 jQuery loads only after refresh
- WebForms GET Json requests (JsonRequestBehavior.AllowGet)
- Rails - Ajax do not work properly on production server
- Angular js Button click
- Make jQuery/AJAX perform instantly on page load
- jQuery Ajax Uncaught TypeError: Cannot use 'in' operator to search
- Show success or error messages in Ajax response to Wordpress custom registration form
Related Questions in AZURE
- Why does Azure Auto-Scale scale go lower then minimum amount of instances?
- Data execution plan ended with error on DB restore
- Why does Azure CloudConfigurationManager.GetSetting return null
- Do I need other roles than Worker Role for a web site and service layer in Azure?
- Azure Web App PATH Variable Modification
- Azure Data Factory: LinkedService for AzureSql in failed state
- How To Update a Web Application In Azure and Keep The App Up the whole time
- Using Azure MobileServices library with my own LAN WebApi
- ionCube loader error on Azure IIS
- App crash (if closed) after click on notification
- How to get sql data bases instances in azure using java api
- I want to create file in azure share using python PUT requests but getting error signature not correct including headers
- Enabling OPTIONS method on Azure Cloud Service (to enable CORS)
- Redirecting subdomain to directory on Azure
- Kaltura account settings error
Related Questions in AJAXCONTROLTOOLKIT
- CustomValidator "OnServerValidate" event automatically firing when file selected through AsyncFileUpload control
- Ajax controls have stopped working when user control loaded asynchronously and multiple times by JQuery ajax call
- Modal Extender Ajax Control Toolkit (ASP 2.0) will not pop-up on server side trigger
- Difference between jquery:colorbox and ajax:ModalPopupExtender
- Cascading DropDownList with Stored Procedure
- pass querystring value of linkbnbutton placed in gridview to iframe source
- The type or namespace name 'ToolkitScriptManager' does not exist in the namespace 'AjaxControlToolkit'
- Error after migrating AjaxControlToolkit 1.x to 3.5
- Ajax File Upload Not firing the OnUploadComplete on the Webserver
- ajaxToolkit:CascadingDropDown got error
- Linkbutton click opens modalpopup, Browser back button leads to "Document expired"
- Getting Error when I install AjaxControlToolkit.StaticResources through Nuget and simply run the target application
- AjaxControlToolkit.ToolkitScriptManager is not available in version 16.1.1.0
- Ajaxtoolkit combobox in gridview
- show only the matched search pattern items in the dropdown ajaxToolkit:ListSearchExtender
Related Questions in HTML-EDITOR
- Xamarin Forms - HTML Entry
- AjaxControlToolkit HTMLEditor - Won't accept full stop keypress
- JavaFx html formatted text in pdf using iText with formatation
- TinyMCE removes my code and changes my html, none of the solution is working
- How do you implement a Ajax Control Toolkit Custom Editor in a .Net Web Application?
- Determine character index in HTML source given a DOMRange from a WebKit selection
- html editor for vb.net 2005
- deleting text enclosed by a tag with particular attribute values from html file
- activeX/OCX simple HTML editor
- How to trigger an on focus event for an HTMLEditorExtender
- tinyMCE does not load
- Which is a good editor on Mac that has support for Perforce?
- HTML Windowbuilder for eclipse
- HTMLEditorExtender encodes img tag on async postback
- How to edit Dreamweaver auto close tags?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
As far as I know, the only way to customize HTML Editor control is to subclass it (and override some of its methods). You really can't use any code in your web application?
edit: Here is a MSDN forum topic about deploying code (C#,VB.NET) to Azure app.