private void PostToUrl(string url, string parameters)
{
string URI = url;
string myParameters = parameters;//"param1=value1¶m2=value2¶m3=value3";
using (WebClient wc = new WebClient())
{
wc.Headers[HttpRequestHeader.ContentType] = "application/x-www-form-urlencoded";
string HtmlResult = wc.UploadString(URI, myParameters);
}
}
A blog about web application development mainly on backend side
Thursday, January 3, 2013
Simple Form post from Codebehind C#
Here is the sample code:
Subscribe to:
Post Comments (Atom)
What is DaemonSet in Kubernetes
A DaemonSet is a type of controller object that ensures that a specific pod runs on each node in the cluster. DaemonSets are useful for dep...
-
XmlDocument xdoc = new XmlDocument(); xdoc.Load(Server.MapPath("~/pp1.xml")); string PersonCount = xdoc.DocumentElement.SelectNode...
-
A DaemonSet is a type of controller object that ensures that a specific pod runs on each node in the cluster. DaemonSets are useful for dep...
-
Here is the code: <%@ Page Language="C#" CodeFile="~/listen.aspx.cs" Inherits="listenerTest.listen" %> ...
No comments:
Post a Comment