×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

moving from FckEditor to AjaxControlToolKit HTMLEditor one big question

moving from FckEditor to AjaxControlToolKit HTMLEditor one big question

moving from FckEditor to AjaxControlToolKit HTMLEditor one big question

(OP)
I have this setup right now using the FckEditorV2 (all inherited code and I know classic asp, learning ASP.Net)

in my .aspx file

CODE

<fck:FCKeditor runat="server" ID="txtComments" Width="98%" ToolbarSet="Basic" Visible="false"/> 

replaced with

CODE

<ajaxEdit:Editor runat="server" ID="txtComments" AutoFocus="false" /> 

not a problem and the assembly is included at the top of the page, the problem is here in my aspx.cs file

CODE

/// <summary>
    /// Determines if any of the elements of dv are still in draft mode, if so then assigns it 
    /// to the past in text box and assigns that records id to the accompaning hident filed
    /// </summary>
    /// <param name="dv">Dataview containint multilpw rows with 2 fields beint "UserText" and "IssueTextID"</param>
    /// <param name="txtField">Text box control that is to have text displayed in it if determined a draft mode item</param>
    /// <param name="hidField">will contain the data identifying row found from "IssueTextID"</param>
    private void setTextBoxes(DataView dv, FCKeditor txtField, HiddenField hidField)
    {
        if (dv != null)
        {
            foreach (DataRowView drv in dv)
            {
                if ((drv["Active"].ToString() == "0") &&
                     (drv["LastUpdatedBy"].ToString() == servInfo.userInfo.ID))
                {
                    txtField.Value = drv["UserText"].ToString();
                    hidField.Value = drv["IssueTextID"].ToString();
                    drv.Delete();
                }
            }
        }
    } 

which is called via

CODE

dv = issue.getDataGrid(IssueText.ActionTypesV2.WORKLOG);
                if (!issue.isActive())
                {
                    setTextBoxes(dv, txtComments, hidCommentsText);
                } 

How do I get the call FCKeditor txtField in setTextBoxes to use the text box control associated with the ajaxcontroltoolkit HTML Editor rather than the fckEditor? I tried HTMLEditor and anything starting with ajax instead of FCKEditor and none of them seemed to work. Do you need to see more of the code, what am I missing here?

Thanks,
wb

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close