Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by [EMAIL PROTECTED]

http://bugzilla.ximian.com/show_bug.cgi?id=77314

--- shadow/77314        2006-01-20 06:08:49.000000000 -0500
+++ shadow/77314.tmp.10586      2006-01-20 06:08:49.000000000 -0500
@@ -0,0 +1,140 @@
+Bug#: 77314
+Product: Mono: Class Libraries
+Version: 1.1
+OS: SUSE 9.2
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.Web
+AssignedTo: [EMAIL PROTECTED]                            
+ReportedBy: [EMAIL PROTECTED]               
+QAContact: [EMAIL PROTECTED]
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: System.Web.HttpResponse.Suppresscontent = true does not suppress 
response
+
+Please fill in this template when reporting a bug, unless you know what you 
+are doing.
+Description of Problem:
+HttpResponse.SuppressContent behaves different in .Net 
+and Mono. While .Net sends no response when using 
+HttpResponse.SuppressContent = true Mono sends an empty HTML page like 
+this:
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 
+<HTML><HEAD> <META http-equiv=Content-Type content="text/html; 
+charset=iso-8859-2"></HEAD> <BODY></BODY></HTML>
+ 
+Steps to reproduce the problem:
+1.
+
+I built my web app on a Windows XP machine with Visual Studio and copied to 
+a Linux machine with mono 1.1.13.
+
+an example aspx file is:
+<%@ Page language="c#" Codebehind="WebForm1.aspx.cs" 
+AutoEventWireup="false" Inherits="MonoCharsetTest.WebForm1" %>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
+<HTML>
+       <HEAD>
+               <title>WebForm1</title>
+               <meta name="GENERATOR" Content="Microsoft Visual Studio 7.0">
+               <meta name="CODE_LANGUAGE" Content="C#">
+               <meta name="vs_defaultClientScript" content="JavaScript">
+               <meta name="vs_targetSchema" content="http://schemas.microsoft.
+com/intellisense/ie5">
+       </HEAD>
+       <body>
+               <form id="Form1" method="post" runat="server">
+                       <INPUT id="Button1" type="button" value="Button" 
+name="Button1" runat="server">
+               </form>
+       </body>
+</HTML>
+
+an example code behind cs file is:
+using System;
+using System.Collections;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Web;
+using System.Web.SessionState;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using System.Web.UI.HtmlControls;
+
+namespace MonoCharsetTest
+{
+       /// <summary>
+       /// Summary description for WebForm1.
+       /// </summary>
+       public class WebForm1 : System.Web.UI.Page
+       {
+               protected System.Web.UI.HtmlControls.HtmlInputButton Button1;
+       
+               private void Page_Load(object sender, System.EventArgs e)
+               {
+                       // Put user code to initialize the page here
+               }
+
+               #region Web Form Designer generated code
+               override protected void OnInit(EventArgs e)
+               {
+                       //
+                       // CODEGEN: This call is required by the ASP.NET Web 
Form 
+Designer.
+                       //
+                       InitializeComponent();
+                       base.OnInit(e);
+               }
+               
+               /// <summary>
+               /// Required method for Designer support - do not modify
+               /// the contents of this method with the code editor.
+               /// </summary>
+               private void InitializeComponent()
+               {    
+                       this.Button1.ServerClick += new 
System.EventHandler(this.
+Button1_ServerClick);
+                       this.Load += new System.EventHandler(this.Page_Load);
+
+               }
+               #endregion
+
+               private void Button1_ServerClick(object sender, System.
+EventArgs e)
+               {
+                       Response.SuppressContent = true;
+               }
+       }
+}
+
+ 
+2. 
+
+Run the aspx page from a browser and press "Button"!
+
+
+Actual Results:
+
+Mono does not suppress the response which is an empty HTML page:
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<HTML><HEAD>
+<META http-equiv=Content-Type content="text/html; charset=iso-8859-2"></
+HEAD>
+<BODY></BODY></HTML>
+
+Expected Results:
+
+The browser should wait for the answer which never arrives. :-)
+
+How often does this happen? 
+
+Allways.
+
+Additional Information:
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to