How to push javascript value to server at postback?

I was just playing around with ckeditor and can't get the darn thing to work for me. I somehow need to "data bind" the text box just before or at the same time of post back. How do I do that? Loading the data is fine but when I click update I need to somehow retrieve the new value of the text box. It's not as easy as to call the client from the server to just get whatever is in there right? I need the client to push the changes back? In dynamic data there is a method for binding the value of the control back to the entity in the following method: protected override void ExtractValues(IOrderedDictionary dictionary) { dictionary[Column.Name] = ConvertEditedValue(HttpUtility.HtmlEncode(CKEditor.Text)); } Now that value is always the same it's the value I originally bound to my CKEditor control: protected override void OnDataBinding(EventArgs e) { base.OnDataBinding(e); if (FieldValue != null) { CKEditor.Text = HttpUtility.HtmlDecode(FieldValueEditString); } } How do I solve this? :)

以上就是How to push javascript value to server at postback?的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏