Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I have a php script that has variables like this:$devicetoken and $eventmessage. In c# using a http client how can I send up that information. I am not a strong php developer. Thanks for any help
The easiest way is passing them in the URL, e.g. the C# client opens an URL like http://www.example.com?devicetoken=123&eventmessage=Hello%20world!
More information in PHP's manual http://php.net/manual/en/reserved.variables.get.php
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
Actually, my requirement is, when a user type a URL in any browser like example.com?q=123 and hit go then my C# application will verify request and fetch the value of q.
any solution for this???
You will have to hook your application to somehow track all outgoing requests over port 80 and 443
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
How can i create HTML file on submit button click in c#,I don't know any syntax about this ,Please suggest me How to create Html page in C#
You might want to take a look at some beginner tutorials:
http://www.w3schools.com/aspnet/
http://www.asp.net/web-forms/tutorials
Try to use Generic Handler in web application ( http://www.codeproject.com/Articles/353260/ASP-NET-Advanced-Generic-Handler-ASHX )...
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
Is there any way I can find out my ASP.Net application running on IIS or locally on Visual studio using JavaScript?
You can use Request.Url.AbsoluteUri to get site url. Write it in hidden field and then use in javascript.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I am doing a project in modbus, i framed the request for reading coils in TCP,but i dont know how to do it for serialport can anyone help to frame this.
It seems you're using C#. In this case, I suggest you to use the nmodbus library.
It's open source and allows you to perform any Modbus operation via both TCP and serial protocol.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
How to send/receive a HTTP request (it is good to give me a link)
http://msdn.microsoft.com/en-us/library/debx8sh9.aspx
Do you know what i typed into Google?
"c# .net send web request"
And this was the first result.
The simplest option is the System.Net.WebClient class, but that isn't always powerful enough to do what you need.