调试后无法将数据插入数据库的问题 [英] problem after debugging that can not insert data into the database

查看:83
本文介绍了调试后无法将数据插入数据库的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将ASP.net4与SQLserver 2008r2数据库一起使用.

我在Asp.net FormView中设计了一个注册表.问题何时出现
当我开始调试(F5)时,按提交按钮以将数据插入到我的
此MessageBox出现的数据库带有3个按钮(Break,Continue,Ignore).
而MessageBox的内容如下:

Microsoft JScript运行时错误:Sys.WebForms.PageRequestManagerServerErrorException:输入字符串的格式不正确.

当然,此消息出现在页面中: ScriptResource.axd

iam using ASP.net4 with SQLserver 2008r2 database.

i have designed a registration form in Asp.net FormView . the problem when arises
when i start debugging(F5), after i press the submit button to insert data to my
database this MessageBox appeares with 3 button (Break ,Continue , Ignore).
and the content of the MessageBox is in below:

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Input string was not in a correct format.

of cource this message comes up in the page : ScriptResource.axd

推荐答案

由于您没有进行过多的故障排除(例如任何控件的存在或运行时)数据分配等原因),请查看以下已讨论和解决的类似问题:
http://forums.asp.net/t/1560074.aspx [ http://forums.asp.net/t/1299518.aspx [
Since you have not troubleshooted much (like any control existence or runtime data assignment, etc is causing it), have a look at these similar issues discussed and resolved:
http://forums.asp.net/t/1560074.aspx[^]
http://forums.asp.net/t/1299518.aspx[^]

Make sure any integer value if present/used is having a valid value and not an empty string.


这篇关于调试后无法将数据插入数据库的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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