[英]How to send data windows form application to website
i am creating an windows application in c#. 我正在C#中创建Windows应用程序 。 in this application i am creating an feed back form for client feedback.
在此应用程序中,我正在创建用于反馈客户反馈的表单。 now i want to submit all data this feedback form to my on site.
现在,我想将此反馈表的所有数据提交到我的网站。
The the puzzle is that my website is in PHP . 困惑的是, 我的网站使用PHP 。
should i go with this combination? 我应该搭配这种组合吗?
i min c# app and PHP website and sent data via url and grab it on site using GET method, or i need to create a separate website in asp for this action and if you say YES the please tell me . 我创建了c#应用程序和PHP网站,并通过url发送了数据,并使用GET方法在网站上抓取了它,或者我需要为此操作在asp中创建一个单独的网站,如果您说是,请告诉我。
how to do this action in ASP 如何在ASP中执行此操作
thanks 谢谢
You can simple send a Get/Post-Request to your PHP-Page: Generate HTTP Requests using c# 您可以简单地将Get / Post-Request发送到您的PHP页面: 使用c#生成HTTP请求
and then Read the data via: $Get or $Post. 然后通过以下方式读取数据:$ Get或$ Post。
You can do the same with ASP.Net, via QueryString: 您可以通过QueryString对ASP.Net进行相同的操作:
string cParam = Request.QueryString["param"];
Your Website language doesn't really matter as long as you code to get the proper form values. 您的网站语言并不重要,只要您进行编码以获取适当的表单值即可。 You can use a GET or a POST as well based on type and quantity of data sent across.
您还可以根据发送的数据的类型和数量使用GET或POST。
You can HTTPRequest and HTTPResponse classes to send response to the Website. 您可以使用HTTPRequest和HTTPResponse类将响应发送到网站。
I just got the answer . 我才得到答案。 This question may already have an answer here
这个问题可能已经在这里有了答案
pass string from C# Windows Form Application to php webpage 将字符串从C#Windows窗体应用程序传递到php网页
使用相同数据库,并从窗口应用程序放置数据并从Web应用程序获取数据
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.