Editor in aspx page not returning changed text in IE 8

  •  09-20-2011, 2:13 PM

    Editor in aspx page not returning changed text in IE 8

    I have an editor in a Visual Studio 2010 environment running the dev server and the editor works fine except when it's time to save its contents, the server-side code doesn't recognize changes in the editor.  I'm sure there is something very simple I'm missing, but I can't seem to find it.
     
    Thanks!
     

    <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>

    <CE:Editor ID="Editor1" runat="server" AutoConfigure="Simple"

    ShowCodeViewToolBar="False" Width="100%" ThemeType="Office2007"

    Height="640px" />

    protected void btnSave_Click(object sender, EventArgs e)

    {

    //editor text is changing in client but not translating to server control

    string connStr = ConfigurationManager.ConnectionStrings["SDMADirCTF"].ConnectionString;

    SqlConnection connObj = new SqlConnection(connStr);

    connObj.Open();

    SqlCommand cmdObj = new SqlCommand("ctf.SaveAttyEmailMsg", connObj);

    cmdObj.CommandType = CommandType.StoredProcedure;

    cmdObj.Parameters.AddWithValue("@messageText", this.Editor1.Text);

    try

    {

    cmdObj.ExecuteNonQuery();

    }

    finally

    {

    connObj.Close();

    }

    Server.Transfer("/Admin.aspx");

    }


    Gary
    Filed under: ,
View Complete Thread