Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/34.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
HTMLeditor扩展程序;多行文本框不返回所有文本_Html_Asp.net_Ajax - Fatal编程技术网

HTMLeditor扩展程序;多行文本框不返回所有文本

HTMLeditor扩展程序;多行文本框不返回所有文本,html,asp.net,ajax,Html,Asp.net,Ajax,我有一个带有HtmlEditorExtender的多行文本框控件,当我在文本框中输入多行文本,然后单击“保存”时,它只返回文本框的第一行,而不是所有行。请在这个问题上帮助我 <asp:textbox id="txtHtmlEditor" textmode="MultiLine" runat="server" width="100%" height="120px" columns="1000" rows="1000" wrap="true" xmlns

我有一个带有HtmlEditorExtender的多行文本框控件,当我在文本框中输入多行文本,然后单击“保存”时,它只返回文本框的第一行,而不是所有行。请在这个问题上帮助我

<asp:textbox id="txtHtmlEditor" textmode="MultiLine" runat="server" width="100%"
                    height="120px" columns="1000" rows="1000" wrap="true" xmlns:asp="#unknown" />
                <asp:htmleditorextender id="txtHtmlEditor_HtmlEditorExtender" runat="server" enabled="True"
                    targetcontrolid="txtHtmlEditor">
                    <profilebindings>
                    </profilebindings>
                    <toolbar>
                        <asp:Bold />
                        <asp:Italic />
                        <asp:Underline />
                        <asp:HorizontalSeparator />
                        <asp:FontNameSelector />
                        <asp:HorizontalSeparator />
                        <asp:FontSizeSelector />
                        <asp:HorizontalSeparator />
                        <asp:ForeColorSelector />
                        <asp:HorizontalSeparator />
                        <asp:RemoveFormat />
                    </toolbar>
                </asp:htmleditorextender>

btnSave_OnClick() { 仅返回文本框值的第一行
}

如何获取
HtmlEditorExtender
的值?我正在从文本框(目标控件)获取值。能否显示
btn\u OnClick
code?受保护的void btnSave\u OnClick(对象发送方,事件参数e){var editorType=Request.QueryString[“type”];var companyId=Request.QueryString[“companyId”];开关(editorType){case“company”:Session.Add(S_company_NAME_HEADER,txhtmleditor.Text);break;case“details”:Session.Add(S_COMPANY_DETAILS_HEADER,txhtmleditor.Text);break;}