freetextbox 保存的时候报错 __doPostBack(dotNetName,'Save');
2009-09-15 17:47
344 查看
我的页面上只有FTB:FreeTextBox id="FreeTextBox1" 这一个控件,保存的时候总是报错
FTB_FreeTextBox.prototype.SaveButton = function() {
this.StoreHtml();
dotNetName = this.id.split('_').join(':');
__doPostBack(dotNetName,'Save');
};
在官方的网址找到答案 : http://freetextbox.com/forums/thread/8923.aspx
This error occurs in v3.1.3 as well. It happens because FTB is trying to call a JavaScript method __doPostBack. This method is an ASP.NET method that the framework uses to trigger postback events from controls that do not normally trigger a form submission (e.g., a link button). Unfortuantely, the __doPostBack method is only included in the page if there is a control that .NET knows requires it (e.g., a link button) - FTB is not known to .NET, and so is not considered as requiring the method. The simplest (albeit somewhat silly) workaround is to include a link button (or some other control that forces .NET to include the __doPostBack JavaScript method) on your page. The link button must be visible, but does not have to contain text.
以下是解决方案:
To sum up, the solution to this problem (until it is addressed by the maintainers) is to include a text-less link button somewhere on your page along with the FTB. The follwing is such a link button:
<asp:LinkButton ID="LinkButton1" runat="server"/>
错误原因:
错就错在只有Freetextbox一个控件。
再多添加个控件 就行了(如上)
FTB_FreeTextBox.prototype.SaveButton = function() {
this.StoreHtml();
dotNetName = this.id.split('_').join(':');
__doPostBack(dotNetName,'Save');
};
在官方的网址找到答案 : http://freetextbox.com/forums/thread/8923.aspx
This error occurs in v3.1.3 as well. It happens because FTB is trying to call a JavaScript method __doPostBack. This method is an ASP.NET method that the framework uses to trigger postback events from controls that do not normally trigger a form submission (e.g., a link button). Unfortuantely, the __doPostBack method is only included in the page if there is a control that .NET knows requires it (e.g., a link button) - FTB is not known to .NET, and so is not considered as requiring the method. The simplest (albeit somewhat silly) workaround is to include a link button (or some other control that forces .NET to include the __doPostBack JavaScript method) on your page. The link button must be visible, but does not have to contain text.
以下是解决方案:
To sum up, the solution to this problem (until it is addressed by the maintainers) is to include a text-less link button somewhere on your page along with the FTB. The follwing is such a link button:
<asp:LinkButton ID="LinkButton1" runat="server"/>
错误原因:
错就错在只有Freetextbox一个控件。
再多添加个控件 就行了(如上)
相关文章推荐
- 在pycharm中添加插件的时候,保存时出现Cannot Save Settings:Please specify a different SDK name
- apache php $_SERVER['SERVER_NAME']没有保存端口号的问题(解决)
- [python]用eval强制将字符串转换为字典变量时候出错:NameError: name 'null' is not defined[python]用eval函数 字符串转dict
- 保存数据时报:Incorrect string value: '\xF0\x9F\x91\x8D' for column 'f_char_name' at row 1
- error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCo
- 获取类似于<item value='1' name='测试'/> 中指定位置的value,name的值
- 还原数据库的时候 无法处理数据库 'XXXXX',因为它正由此会话使用。建议在执行此操作时使用 master 数据库。
- Unable to find 'struts.multipart.saveDir' property setting
- No resource found that matches the given name 'android:Widget.Material.A
- Python中if __name__ == '__main__':作用
- Myeclipse 保存jsp异常Save FailedCompilation unit name must end with .java, or one of the registered Java-like extensions
- 木其工作室代写程序 [原]当 IDENTITY_INSERT 设置为 OFF 时,不能为表 'TB_TABLENAME' 中的标识列插入显式值。
- python中if __name__ == '__main__': 的解析
- 解决bs4在Python 3.5下出现“ImportError: cannot import name 'HTMLParseError'”错误
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'lanagerServi
- 保存减切板内容为BMP图片 &amp;&amp; Clipboard save as bmp......
- mybatis mapper.xml文件中配置提示如下错误The entity name must immediately follow the '&' in the entity reference
- Python中if __name__ == '__main__'的作用
- Expected identifier or '(' Unknown type name 'NSString' Unknown type name 'Protocol'
- reason: 'Could not load NIB in bundle: "XXXXXXX" with name 'xxCell'