日期:2014-05-17 浏览次数:20364 次
<script type="text/javascript">
KindEditor.ready(function (K) {
var editor1 = K.create('#editConcent', {
cssPath: '../plugins/code/prettify.css',
uploadJson: '../asp.net/upload_json.ashx',
fileManagerJson: '../asp.net/file_manager_json.ashx',
allowFileManager: true,
afterCreate: function () {
var self = this;
K.ctrl(document, 13, function () {
self.sync();
K('form[name=example]')[0].submit();
});
K.ctrl(self.edit.doc, 13, function () {
self.sync();
K('form[name=example]')[0].submit();
});
}
});
prettyPrint();
html = editor.html();
html = K('#editor_id').val();
});
</script>
<textarea id="editConcent" name="editor" style="width:80%;height:400px" runat="server"></textarea>
<asp:Button ID="OKBtn" runat="server" Text="保存" Width="60px"/>
string sql="select语句"
DataTable dt = new DataTable();
dt = mdf.ExecuteReader(string.Format(sql), CommandType.Text);
string newsConcent= dt.Rows[0]["newsConcent"].ToString().Trim();