Hello,
I'm using CKeditor to edit some mail template in my database. Everything works fine, but, when I load my page in my browser, during one seccond, the page display a textbox before load the CKeditor (see picture)
Here is my ASP.NET code :
<CKEditor:CKEditorControl ID="CKEditor" runat="server" ExtraPlugins="helloworld" ToolbarFull="helloworld|Source|-|Cut|Copy|Paste|PasteText|PasteFromWord|- Undo|Redo|-|Find|Replace|-|SelectAll|RemoveFormat Bold|Italic|Underline|Strike|-|Subscript|Superscript NumberedList|BulletedList|-|Outdent|Indent|Blockquote|CreateDiv JustifyLeft|JustifyCenter|JustifyRight|JustifyBlock BidiLtr|BidiRtl Link|Unlink|Anchor Image|Table|HorizontalRule|Smiley|SpecialChar|PageBreak Styles|Format|Font|FontSize TextColor|BGColor Maximize|ShowBlocks" Language="en" ResizeEnabled="False" Height="380px"></CKEditor:CKEditorControl>
and the VB.NET code :
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Set_MailInfo(ddlMailType.SelectedValue, ddlcountry.SelectedValue) End Sub Public Sub Set_MailInfo(ByVal MailType As Integer, ByVal IdCountry As Integer) Dim strConnection As String = ConfigurationManager.ConnectionStrings("IT_Rent_connection").ConnectionString Dim sqlConn As SqlConnection = New SqlConnection(strConnection) Dim dtrMail As SqlDataReader Dim strGetMailInfo As String = "Select * FROM tblEmail WHERE IdCountry = @IdCountry and EmailType = @MailType" sqlConn.Open() Dim cmdGetMailInfo As SqlCommand = New SqlCommand(strGetMailInfo, sqlConn) cmdGetMailInfo.Parameters.AddWithValue("@IdCountry", IdCountry) cmdGetMailInfo.Parameters.AddWithValue("@MailType", MailType) dtrMail = cmdGetMailInfo.ExecuteReader If dtrMail.HasRows = 0 Then lblMailId.Text = "0" CKEditor.Text = "New template need to be created" tbSubject.Text = "New template need to be created" Else While dtrMail.Read() lblMailId.Text = dtrMail("IdEmail").ToString CKEditor.Text = dtrMail("EBody").ToString tbSubject.Text = dtrMail("ESubject").ToString End While End If dtrMail.Close() sqlConn.Close() End Sub
Is there any solution for this problem ?
Thank you for your help.
DeWaRs