Hi Adam
That is what I am doing. The .text and .XHTML properties still contain the original version of the code for some reason. This is my button_Click event - including the response.write staements which I am using for debugging purposes:
Protected Sub btnSave_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSave.Click
Dim contextID As String
contextID = Request.QueryString(
"contextID").ToString
conn.ConnectionString = ConfigurationManager.AppSettings(
"ConnectionString")
conn.Open()
With cmd
.Parameters.Clear()
.Connection = conn
.CommandType = CommandType.StoredProcedure
.CommandText =
"p__SetPublishedContent"
.Parameters.AddWithValue(
"@ContextID", contextID)
.Parameters(
"@ContextID").DbType = DbType.String
.Parameters.AddWithValue(
"@pageText", Editor1.Text)
Response.Write(Editor1.text)
Response.End()
.Parameters(
"@pageText").SqlDbType = SqlDbType.Text
.ExecuteNonQuery()
End With
Response.Redirect(
"default.aspx?contextID=" & contextID)
conn.Close()
End Sub
As far as I am assuming, the .text property, at this stage, should contain the edited text not the original text as it does.
--
Regards
Pete