发布时,数据不会保存到db中 [英] data is not saving into db when published

查看:85
本文介绍了发布时,数据不会保存到db中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





通过jquery post()绑定模型并使用实体框架保存到db。



当我在本地服务器上运行我的应用程序时,它正在保存。虽然在webserver中发布的数据没有保存到db中,但它只是在执行错误范围。



例如

$ .post(my modeldata )

.success(提醒(已保存);)

.error(提醒(未保存);)


$ b本地主机收到$ b --->提醒(已保存)

在网络服务器中获取---->提醒(未保存)



任何人都建议我

Hi,

Am binding model through jquery post() and saving into db using entity framework.

when am running my app in local server,it is saving. while published in webserver data is not saving into db,and it is executing error scope only.

eg
$.post(my modeldata)
.success(alert(saved);)
.error(alert(not saved);)

in localhost am getting ---> alert(saved)
in webserver am getting ----> alert(not saved)

any one suggest me

推荐答案

.post(我的模式数据)

.success(alert(已保存);)

.error(警报(未保存);)



in localhost am getting --->提醒(已保存)

在网络服务器中获取---->提醒(未保存)



任何人建议我
.post(my modeldata)
.success(alert(saved);)
.error(alert(not saved);)

in localhost am getting ---> alert(saved)
in webserver am getting ----> alert(not saved)

any one suggest me


尝试使用Firebug并查看正确的错误。并且还要再次检查你是否给出了适当的参考(如果你已经介绍了捆绑,还要检查你是否已正确捆绑)

快乐编码

享受SD的
Try it with Firebug and see the proper Error. And also check again if you have given proper reference (also check if you have bundled properly or not if you have introduced Bundling)
Happy coding
Enjoy SD's


这篇关于发布时,数据不会保存到db中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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