FW: [Mono-devel-list] Session and Application Variables in XSP

Cezar Nasui cezar.nasui at polymtl.ca
Fri Oct 10 13:01:26 EDT 2003


Hi Gonzalo,

I further tested the Session and Applcation variables bug before adding it
to bugzilla and I have good news and bad news.
I'll start with the good news :
Session and Application variables are both working.
The problem is if you declare variable ouside the Page_Load() method and try
to give them a value inside the Page_Load it won't work, it's like ASP.NET
sees the inside variable (with the same name) as a total new one.
I'll try to explain better with an example.

test.aspx
---
<%@ Page Language="C#" %>
<script runat="server">

	String str = "test";
	private void Page_Load(){
	    str = "inside Page_Load";
	}
</script>
<html>
<head></head>
<body>
	<p>str value :
	 <% Response.Write(str); %>
</body>
</html>
----
running this page will return
	str value : test
instead of "inside Page_Load" as I image it should, and as it works under
Windows with WebMatrix / IIS.

Should I add this to the bugzilla instead??

As I develop an application with a web interface using mono / ASP.NET /XSP
it seems I'll be testing some of these parts (UI.HtmlControls,
UI.WebControls, WebServices). Are there some old recurring tests I could
modify and run or should I make my own?

Cezar

-----Original Message-----
From: Gonzalo Paniagua Javier [mailto:gonzalo at ximian.com]
Sent: Thursday, October 09, 2003 9:39 PM
To: Mono Development
Subject: RE: [Mono-devel-list] Session and Application Variables in XSP


> And Reply to my message :-)
> I add the code maybe a more trained eye could see the mistake
>

There's no mistake. Can you file a bug report in bugzilla attaching the
test case?

-Gonzalo


_______________________________________________
Mono-devel-list mailing list
Mono-devel-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.524 / Virus Database: 321 - Release Date: 10/6/2003

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.524 / Virus Database: 321 - Release Date: 10/6/2003

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.524 / Virus Database: 321 - Release Date: 10/6/2003




More information about the Mono-devel-list mailing list