How to disable passing of HTTP header "Expect: 100-continue" using HttpWebRequest in .NET Framework in C#?
По умолчанию, при выполнении веб-запроса, используя класс HttpWebRequest, .NET Framework добавляет HTTP заголовок (HTTP header) "Expect: 100-continue". Для того, чтобы запретить формирование этого заголовка нужно сделать следующее:
As default when You use HttpWebRequest class to execute web-requests it appends HTTP header "Expect: 100-continue" to it's headers collection. To disable passing of HTTP header "Expect: 100-continue" using HttpWebRequest You can do following:
Wednesday, March 25, 2009
How to place DateTimePicker onto ToolStrip control in Windows Forms .NET application?
To place DateTimePicker onto ToolStrip control in Windows Forms .NET application you had to do following:
DateTimePicker dateTimePcr = new DateTimePicker();
toolStrip1.Items.Add(new ToolStripControlHost(dateTimePcr));
DateTimePicker dateTimePcr = new DateTimePicker();
toolStrip1.Items.Add(new ToolStripControlHost(dateTimePcr));
Ярлыки:
.NET,
C#,
DateTimePicker,
Forms,
ToolStrip,
ToolStripControlHost,
Windows
Tuesday, March 3, 2009
How to enabling Gzip and Deflate HTTP Compression in ASP.NET pages
If your ASP.NET web application doesn't already contain a Global.asax file, create a new one using notepad. Then insert following code in it:
<%@ Application Language="C#" %>
<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="System.IO.Compression" %>
Ярлыки:
ASP.NET,
compression,
Deflate,
encoding,
Global.asax,
GZip,
HTTP
Subscribe to:
Posts (Atom)