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 answers
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
- file download method in visual studio 2017
- Repository manager receives the wrong connection string in .net core
- MongoDb not connecting C#
- The current .NET SDK does not support targeting .NET Core 6.0. Brand new WPF Project VS Community 2022 17.9.5
- Why Scanning GSI on DynamoDb doesnt work as fast as expected when using CONTAINS?
- Are "blittable types" really unmanaged types for StructLayout Sequential
- Failed to fetch dynamically imported module on Blazor JS Interop
- Problem to upload several images per one request
- Implementing Azure AD B2C Authentication in .NET 8 Blazor Project (RenderMode: InteractiveAuto)
- Stripe connect payout - throws exceptions
- 'IOException: The cloud file provider is not running', when trying to delete 'cloud' folder
- Azure Application Insights Not Displaying Custom Logs for Azure Functions with .NET 8
- Convert C# DateTime.Ticks to Bigquery DateTime Format
- Socket.io nodejs server .NET connection
- Producer Batching Service Bus Vs Kafka
Related Questions in AJAX
- window.location.href redirects but is causing problems on the webpage
- Js variable to php using ajax
- TypeError: Failed to execute 'arrayBuffer' on 'Blob': Illegal invocation - Insert blob into database
- how do I change a URL with form to include additional selection
- why i have to put extra space in before write option selected because it show error if i don't ' option:selected'
- Opening modal through Update button with specified ID using ajax
- Events disappear randomly for full calendar module
- Ajax call reloads page in FrontAccounting, a PHP ERP solution
- Add newly added record to select2 element
- AJAX query cascading dropdown in django
- Failed to load resource: the server responded with a status of 403 () - SCRIPT - WordPress
- Maintaining search and sort state across paginated results in web application
- Getting POST 500 Internal server error while sending request via ajax call
- Wordpress server side datatable filtering
- Having a problem in datatables and fullcalendar scripts
Related Questions in AZURE
- How to update to the latest external Git in Azure Web App?
- I need an azure product that executes my intensive ffmpeg command then dies, and i only get charged for the delta. Any Tips?
- Inject AsyncCollector into a service
- mutual tls authentication between app service and function app
- Azure Application Insights Not Displaying Custom Logs for Azure Functions with .NET 8
- Application settings for production deployment slot in Azure App Services
- Encountered an error (ServiceUnavailable) from host runtime on Azure Function App
- Implementing Incremental consent when using both application and delegated permissions
- Invalid format for email address in WordPress on Azure app service
- Producer Batching Service Bus Vs Kafka
- Integrating Angular External IP with ClusterIP of .NET microservices on AKS
- Difficulty creating a data pipeline with Fabric Datafactory using REST
- Azure Batch for Excel VBA
- How to authenticate only Local and Guest users in Azure AD B2C and add custom claims in token?
- Azure Scale Sets and Parallel Jobs
Related Questions in AJAXCONTROLTOOLKIT
- AjaxToolkit CascadingDropdown is populating first parent but childs are not populated because knownCategoryValues parameter is empty
- "The Controls collection cannot be modified" error
- AjaxControlToolkit AsyncFileUpload : Get file path after upload by JavaScript
- AjaxControlToolkit FileUpload not working
- Show employee details with thumbnail image of employee in modal popup extender varbinary
- How to take value from <ajaxtoolkit:combobox runat="server" ID="ctlAramaKayitlari" ></ajaxtoolkit:combobox>
- Ajax Control Toolkit Disabled Error in ToolBox with VS2022
- How to stop AjaxControlToolkit.ModalPopupExtender from reloading the page when the popup is closed
- Ajaxfileuploader fails on rewritten url for page by Intelligencia URL rewriter
- Troubleshooting ASP.NET Web Forms Routing and ScriptResource Issues
- putting vertical axis labels on ajaxtoolkit:barchart not quite working
- How to update AjaxControlToolkit to use the latest version of JQuery
- Uncaught SyntaxError: Unexpected end of JSON input at JSON.parse (<anonymous>) at HTMLDocument.<anonymous> (310:2392:17)
- Ajax Toolkit ComboBox exception System.NullReferenceException in AjaxControlToolkit.dll
- AjaxControlToolKit AjaxFileUpload...how to allow all file types and files with no extension?
Related Questions in HTML-EDITOR
- How to Create an HTML Editor with Custom UI in Flutter?
- Jodit editor style override html code style
- HTML Editor Validation in ExtJS 6.5.0 - Mimicking Text Field Behavior When allowBlank is false
- How can I set up code hints for a custom HTML attribute in IntelliJ?
- how to make html editor to be disable or read only
- How to change textStyle of HtmlEditor? execCommand works but it works wrong. Flutter, html_editor_enhanced
- Is there a VS Code extension like intelliSense that will autocomplete outlook conditional code rather than commenting it out?
- flutter web - html_editor_enhanced throwing error when try to change the font-family or font size
- How do I listen for HTMLEditor getting or losing focus?
- Dart Flutter: How to add RTL Rich Text Editor with Default Arabic Font
- htmltoolbar and htmlEditor separate background color
- Trumbowyg React input data typed reverse order
- How can i remove this white lines from ToolbarPosition.custom?
- how to change confige react-mui-draft-wysiwyg?
- Silverstripe 4 use additional custom HTMLEditorField
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?
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)
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.