asp.net - Ajax Control Tool kit HTML Editor value not reading in c# -
i using ajax control toolkit html editor. trying retrieve editor value getting error
<%@ register assembly="ajaxcontroltoolkit" namespace="ajaxcontroltoolkit.htmleditor" tagprefix="cc1" %> <asp:gridview id="uxresultsgrid" runat="server" width="100%" allowsorting="true" autogeneratecolumns="false" pagesize="25" allowpaging="true" backcolor="white" bordercolor="#cccccc" borderstyle="none" borderwidth="1px" rowstyle-verticalalign="top" rowstyle-horizontalalign="left" onpageindexchanging="uxresultsgrid_pageindexchanging" onsorting="uxresultsgrid_sorting" onrowediting="uxresultsgrid_rowediting"> <columns> <asp:templatefield headertext="action" headerstyle-forecolor="blue"> <itemtemplate> <asp:button id="btnedit" runat="server" text="edit" commandname="edit" cssclass="formsmanagerbutton" causesvalidation="false" /> </itemtemplate> </asp:templatefield> <asp:templatefield headertext="key" sortexpression="configkey"> <itemtemplate> <asp:label id="label1" runat="server" text='<%# bind("configkey") %>'></asp:label> </itemtemplate> <itemstyle horizontalalign="left" wrap="false" /> </asp:templatefield> <asp:templatefield headertext="value" sortexpression="configval"> <edititemtemplate> <cc1:editor id="htmleditor" runat="server" width="100%" height="200" content='<%# bind("configval") %>' /> <%-- <asp:textbox id="editor" runat="server" width="100%" text='<%# bind("configval") %>' />--%> </edititemtemplate> <itemtemplate> <asp:label id="label2" runat="server" text='<%# bind("configval") %>'></asp:label> </itemtemplate> <itemstyle horizontalalign="left" width="40%" wrap="true" /> </asp:templatefield> <asp:templatefield headertext="created" sortexpression="created"> <itemtemplate> <asp:label id="label3" runat="server" text='<%# bind("created") %>'></asp:label> </itemtemplate> <itemstyle horizontalalign="left" wrap="false" /> </asp:templatefield> <asp:templatefield headertext="created by" sortexpression="created_by"> <itemtemplate> <asp:label id="label4" runat="server" text='<%# bind("created_by") %>'></asp:label> </itemtemplate> <itemstyle horizontalalign="left" wrap="false" /> </asp:templatefield> <asp:templatefield headertext="updated" sortexpression="updated"> <itemtemplate> <asp:label id="label5" runat="server" text='<%# bind("updated") %>'></asp:label> </itemtemplate> <itemstyle horizontalalign="left" wrap="false" /> </asp:templatefield> <asp:templatefield headertext="updated by" sortexpression="updated_by"> <itemtemplate> <asp:label id="label6" runat="server" text='<%# bind("updated_by") %>'></asp:label> </itemtemplate> <itemstyle horizontalalign="left" wrap="false" /> </asp:templatefield> </columns> <pagersettings position="topandbottom" /> <pagerstyle horizontalalign="left" /> <rowstyle horizontalalign="left" verticalalign="top"></rowstyle> </asp:gridview>
i trying retrieve edited value using c#
var configeditvalue= htmleditor.content;
but getting below error
error 94 name 'htmleditor' not exist in current context