使用c#将弹出记录保存在数据库中 [英] save the popup record in database using c#

查看:135
本文介绍了使用c#将弹出记录保存在数据库中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

本课程资料是否有效Dropdownlist1(差)

本课程实用有效Dropdownlist2(差)




当用户从dropdownlist1中选择穷人时,弹出屏幕将会打开。

弹出屏幕如下。





Negativ_Feedback



textbox

提交(按钮)


$ b上面文本框中的$ b用户输入原因并单击提交按钮。我想在数据库中保存如下记录。



表格结构如下

类型原因


数据库中的
我想保存下拉列表名称和评论。





我想在表格中输出如下。



类型原因

Dropdownlist1课程资料不是有效的。

Was this course material is effective Dropdownlist1 (Poor)
was this course practical is effective Dropdownlist2 (poor)


When user select the poor from the dropdownlist1 the pop screen will open.
popup screen as follows.


Negativ_Feedback

textbox
Submit (Button)

in the above textbox user types the reason and click the submit button.i want to save the record as follows in database.

Table structure as follows
Type reason

in database i want to save the dropdownlist name and comments.


I want the output as follows in table.

Type reason
Dropdownlist1 the course material is not effective one.

推荐答案

参考:

http://www.aspforums.net/Threads/264807/Save-Form-Data-to-database-using-AJAX- Modal-Popup-in-ASPNet / [ ^ ]

这可能会有所帮助。
Refer:
http://www.aspforums.net/Threads/264807/Save-Form-Data-to-database-using-AJAX-Modal-Popup-in-ASPNet/[^]
This may help.


你好,



创建一个Web服务并使用AJAX调用它来保存记录。您可以参考以下CP文章,了解有关在C中创建Web服务的更多信息。

Hello,

Create a web service and call it using AJAX to save the record. You can refer to below CP article's to know more about creating web services in C#

  • Create RESTful WCF Service API: Step By Step Guide[^]
  • Restful Crud Operation on a WCF Service[^]
  • Web Services, a simple approach[^]
  • Simple Web Service using WCF (Windows Communication Framework)[^]
  • Implementing a Basic Hello World WCF Service[^]


.ajax({
url:your_service_url,
类型:' POST'
数据: { type TYPE reason REASON TEXT},
complete: function (XMLHttpRequest,textStatus){
if error == textStatus)
alert( 无法完成您的请求! );
},
成功:功能n (data,txtStatus,jqXHR){
// 你的代码在这里
}
});
.ajax({ url:your_service_url, type: 'POST', data: {"type":"TYPE", "reason":"REASON TEXT"}, complete: function(XMLHttpRequest, textStatus) { if ("error" == textStatus) alert("Unable to complete your request!"); }, success: function(data, txtStatus, jqXHR) { // YOUR CODE GOES HERE } });



问候,


Regards,


这篇关于使用c#将弹出记录保存在数据库中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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