Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/77.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 如何向html控件添加文本删除span类_C#_Html - Fatal编程技术网

C# 如何向html控件添加文本删除span类

C# 如何向html控件添加文本删除span类,c#,html,C#,Html,我的用户控件中有一个按钮 <button class="show-form-button" runat="server" ID="btnShow">Please submit<span class="icon-down"></span></button> 如何保留span class?Innertext将用提供的文本替换标记的全部内容。要保留图标,请将内部HTML替换为“已提交”Innertext将用提供的文本替换标记的全部内容。要保留图标,请将

我的用户控件中有一个按钮

<button class="show-form-button" runat="server" ID="btnShow">Please submit<span class="icon-down"></span></button>

如何保留span class?

Innertext
将用提供的文本替换标记的全部内容。要保留图标,请将内部HTML替换为“已提交”

Innertext
将用提供的文本替换标记的全部内容。要保留图标,请将内部HTML替换为“已提交”

btnShow.InnerText = "Submitted";