Updatepanel cannot work at mono2.6.4

mojoPortal is no longer supported on mono. This forum is here for archival purposes.

This thread is closed to new posts. You must sign in to post in the forums.
6/8/2010 9:09:49 PM
Gravatar
Total Posts 5

Updatepanel cannot work at mono2.6.4

My site http://www.imono.cc use mojoPortal CMS build, run very well, only the UpdatePanel to update () error, just comment it, how to solve this problem?UpdatePanel to work in mono2.6.4 ?

6/9/2010 5:46:40 AM
Gravatar
Total Posts 18439

Re: Updatepanel cannot work at mono2.6.4

Hi,

The same bug has been there for at least the last 3 versions of Mono. Problem is that Mono gives null reference exceptions on controls declared inside and updatepanel. I think I have mentioned this bug before to my friend on the Mono team but I guess it needs to be reported again.

Best,

Joe

6/9/2010 9:43:16 PM
Gravatar
Total Posts 5

Re: Updatepanel cannot work at mono2.6.4

Thanks joe,

mojoPortal is great!

My site use mojoPortal 2.3.3.6, I tested it in Debian(mono2.4.3-2.6.4), FreeBSD(mono2.6.3) can be good on the run, except outside the UpdatePanel.

1/14/2011 7:06:39 PM
Gravatar
Total Posts 5

Re: Updatepanel cannot work at mono2.6.4

In mono2.8.2, UpdatePanel works properly.
 

1/16/2011 8:01:06 PM
Gravatar
Total Posts 5

Re: Updatepanel cannot work at mono2.6.4

Problems remain.

1/21/2011 7:00:59 PM
Gravatar
Total Posts 5

Re: Updatepanel cannot work at mono2.6.4

Tested UpdatePanel run.


Default.aspx:

---------------------------------------------------------------------------------------------------------------------------------------------------------------

<%@ Page Language="C#" Inherits="monoTest.Default" CodeBehind="Default.aspx.cs" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html>

<head runat="server">

<title>Default</title>

</head>

<body>

<form id="form1" runat="server">

<asp:ScriptManager id="ScriptManager1" runat="server">

</asp:ScriptManager>

<asp:UpdatePanel id="UpdatePanel1" runat="server" UpdateMode="Conditional">

<ContentTemplate>

<asp:TextBox id="TextBox1" runat="server"></asp:TextBox>

</ContentTemplate>

<Triggers>

<asp:AsyncPostBackTrigger runat="server" ControlID="button1" EventName="Click" />

</Triggers>

</asp:UpdatePanel>

<asp:Button id="button1" runat="server" Text="Click me!" OnClick="button1Clicked" />

</form>

</body>

</html>

--------------------------------------------------------------------------------------------------------------------------------------------------

Default.aspx.cs:

-------------------------------------------------------------------------

using System;

using System.Configuration;

using System.Collections;

using System.Web;

using System.Web.Security;

using System.Web.UI;

using System.Web.UI.WebControls;

using System.Web.UI.WebControls.WebParts;

using System.Web.UI.HtmlControls;

using System.Collections.Generic;

using System.Net;

 

namespace monoTest

{

 

public partial class Default : System.Web.UI.Page

{

 

public virtual void button1Clicked (object sender, EventArgs args)

{

 

TextBox box=TextBox1;

if(box.Text=="aaaaa")

{

box.Text="bbbbb";

}

else

{

box.Text="aaaaa";

}

 

}

}

}

---------------------------------------------------------------------

 

You must sign in to post in the forums. This thread is closed to new posts.