如何在ajax htmleditor内容中添加文本 [英] How to add text in ajax htmleditor content

查看:55
本文介绍了如何在ajax htmleditor内容中添加文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好



这里面对问题HtmlEditor控件,我想将textvalue传递给HtmlEditor Extender



示例



Hi All

Here am facing the problem HtmlEditor control , i want to pass the textvalue to HtmlEditor Extender

Example

Editor3_6_2.Content = "<p style="font-size: 13.3333px; margin-removed 1.27cm; margin-removed 0cm;">HM Treasury Sanctions List:</p><p style="font-size: 13.3333px; margin-removed 1.27cm; margin-removed 0cm;"></p><p style="font-size: 13.3333px; margin-removed 0cm;">The database provided details of persons and organisations whose current assets are freezed under the designation by the United Nations (UN), European Union and United Kingdom, under legislation relating to current financial sanctions regime.</p>";




这里Editor3_6_2是编辑名称



如何传递字符串值。



谢谢



我尝试了什么:



尝试使用googing并尝试使用替换更多编码



here Editor3_6_2 is Editor name

how to pass the string value.

Thanks

What I have tried:

trying with googing and tried with replacing more coding

推荐答案

你的意思是,如何在C#字符串文字中转义嵌入式引号?



如果是这样,你有两种选择:

Did you mean to ask, "How can I escape embedded quotes within a C# string literal?"

If so, you have two options:
  1. 用反斜杠字符逃避每个报价( \\ \\

  1. Escape each quote with a backslash character (\:
Editor3_6_2.Content = "This is a \"string\" with embedded '\"' characters.";

  • 使用逐字字符串,并加上引号:

  • Use a "verbatim" string, and double up the quotes:

    Editor3_6_2.Content = @"This is a ""verbatim string"" with embedded '""' characters.";





  • 2.4.4.5字符串文字(C#) [ ^ ]





    如果你问的是什么,那么你需要用问题的清晰描述来更新你的问题。



    2.4.4.5 String literals (C#)[^]


    If that's not what you were asking, then you need to update your question with a clear description of the problem.


    这篇关于如何在ajax htmleditor内容中添加文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆