System.Web.HttpResponse.Write C# (CSharp) Method

Write() public method

public Write ( char ch ) : void
ch char
return void
		public void Write (char ch)
		{
			TextWriter writer = Output;
#if NET_4_0
			// Emulating .NET
			if (writer == null)
				throw new NullReferenceException (".NET 4.0 emulation. A null value was found where an object was required.");
#endif
			writer.Write (ch);
		}

Same methods

HttpResponse::Write ( char buffer, int index, int count ) : void
HttpResponse::Write ( object obj ) : void
HttpResponse::Write ( string s ) : void

Usage Example

 private void ReplyError(HttpStatusCode statusCode, string text, HttpResponse response)
 {
     response.StatusCode = (int)statusCode;
     response.ContentType = "text/html";
     response.Write(String.Format("<html><title>MovieInfo : ERROR</title><body><p>{0}</p></body></html>", text));
     for (int i = 0; i < 85; ++i) response.Write("&nbsp;");
 }
All Usage Examples Of System.Web.HttpResponse::Write