I created a asp.net web application and then I downloaded ckeditor. And I extracted my application directory this editor folder. And I added dll of ckeditor to reference of my application. I registered in my web page.
<add tagPrefix="CKEditor" assembly="CKEditor.NET" namespace="CKEditor.NET"/>
I can use ck editor as well. But when I put ckeditor to child folder, I didn't use ckeditor.
root
MyDefault.aspx
MyEditor
ckeditor folder
I want to use like this. How could I do that.
I used ckeditor in my website...
I set it rootforlder/js/ckeditor(folder)
I add below tag in page where I used ckeditor.
<%# Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>
I used ckeditor control like below...
<CKEditor:CKEditorControl ID="ckService" runat="server" Height="200px" Width="400px" BasePath="~/js/ckeditor/"></CKEditor:CKEditorControl>
I hope this will help you... please, let me know.. if you want any help regarding it.
Related
I'm trying to implement the HtmlEditorExtender from AJAX Control Toolkit.
Is it possible to change the control language? I'd want the language to be French. I have no problem at all changing the language of the CalendarExtender control, but it doesn't work at all with the HtmlEditorExtender. For example, the control still display English words like "Font" and "Size".
I have done everything that is suggested on the web to change the language.
The globalization culture is set in the web.config:
globalization uiCulture="fr" culture="fr-CA" fileEncoding="utf-8"
I have a script manager in the master page and the EnableScriptGlobalization and EnableScriptLocalization are both set to true:
asp:ScriptManager ID="ScriptManager1" runat="server" EnableScriptGlobalization="true"
EnableScriptLocalization="true" ScriptMode="Release" AsyncPostBackTimeOut="0"/>
The culture is set on the page:
%# Page Language="C#" MasterPageFile="~/FullForm.master" AutoEventWireup="true" Culture="fr-CA" UICulture="fr"
Inherits="LAC.WebApp.Management.Parameters.ParametersPage" meta:resourcekey="Page" CodeBehind="Parameters.aspx.cs" %
I have a "fr" folder in the bin folder with the AjaxControlToolkit.resources.dll file in it.
I tried to run the application in release mode but it didn't change anything at all.
If you have any idea, please share it!
Thank you
HtmlEditorExtender is not localized. These strings are hardcoded.
So, the only option at the moment is to change it in source code and make a custom build.
I downloaded a media player control from the Net then added in my toolbox. Then I drag-and-dropped it to my web page but it's not working...
cc1:Media_Player_Control ID="Media_Player_Control1" runat="server"
MovieURL="./video/yaarian.wmv"
this is my code
Make sure that the path is correct
e.g.
remove ./ if video is located in the child folder named video
or use absolute path e.g. /pages/video/yaarian.wmv
Check the control registration tag and make sure you have the assembly loaded in your bin folder:
<%# Register TagPrefix="cc1" Namespace="MyApp.Controls" Assembly="MyApp" %>
Then, try the following:
<cc1:Media_Player_Control ID="Media_Player_Control1" runat="server"
MovieURL="~/video/yaarian.wmv" runat="server" />
I have Website project, which contains some .ascx and .aspx files. I have added new element <asp:TextBox ID="tb1" runat="server" ... /> in .ascx file and I have wrote some code in proper .ascx.cs file using this element: tb1.Text = "SomeText";. When I compile this project I recieve following error: The name 'tb1' does not exist in the current context.
How can I force to refresh markup of .ascx page? I use Website project and I cannot to change its type to Webapplication.
UPD: I have Website project, which has NOT .ascx.designers.cs files. And I cannot change type of my project to web application.
Unless there's something else happening here, it sounds like the designer.cs file might be out of sync. Try cutting and pasting the control back into the markup, or go into the designer file for the user control and add the TextBox manually:
protected global::System.Web.UI.WebControls.TextBox tb1;
It seems like your design file is not connecting with your code behind file.
Can you confirm if you are defining it as follows,
<%# Control Language="C#" AutoEventWireup="true" CodeBehind="yourcontrol.ascx.cs" Inherits="CompleteNameSpace.ClassName" %>
I would like to know how to create a RecaptchaControl template on my ASP.NET site.
I need to change the HTML of the control to fit RTL layout.
Here is the code for the control:
<%# Register TagPrefix="recaptcha" Namespace="Recaptcha" Assembly="Recaptcha" %>
<recaptcha:RecaptchaControl
ID="recaptcha"
Theme="custom"
runat="server"
PublicKey="YYYYYYY"
PrivateKey="XXXXXXX"
/>
I know this is a late reply, but probably the simplest way to go about this would be to use the CustomThemeWidget property of the recaptchacontrol. Here is a great tutorial on using it:
http://www.onequarterenglish.co.uk/using-a-custom-recaptcha-in-asp-net
Appeaars that there are some issues with rtl and recaptcha - this link pertain to drupal
but it seems with custom themeing it may be posible. I am unsure how you would imleent it with a server control. You might have to dive into the source
i have a .skin file inside my app.themes folder. To access .css file from asp page we have to give link. but i couldn't find any thing on asp header to give link for .skin file.
<asp:TextBox SkinID="txtBox" ID="TextBox1" runat="server"></asp:TextBox>
i got the following error..
A SkinID has been specified but the page is not configured to use a page theme or stylesheet theme. This is acceptable if the theme or stylesheet theme will be set programmatically.
should i create any link?
thanks
saj
Should specify the name of the theme (ie the folder in your App_Themes folder that contains your skin file) on the Theme property of the Page.
In code:
Page.Theme = "MyTheme"
or in your markup:
<%# Page Theme="MyTheme" .... %>
Don't use ID="TextBox1" in any skin file