Welcome Guest Search | Active Topics | Sign In | Register

AjaxUploader and CallbackPanel not working in firefox after upgrade Options
Paradox Engineering
Posted: Thursday, July 2, 2009 3:59:30 AM
Rank: Member
Groups: Member

Joined: 7/2/2009
Posts: 25
see this page:

running in debug mode is working fine on ie adn firefox.

running on the server, this page give two different results:

try this:

click PICK and then POSTBACK in firefox
click PICK and then POSTBACK in ie

in firefox it does a !postback, in second case it doesn't!!!!

only with eo.web control inside (even not using them). if i comment controls, everything is working fine

(ps with the older version i was using, it was working fine. i bought the package but the key is not valid for older control..)

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="test_uploader.aspx.cs" Inherits="test_uploader" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="EO.Web" Namespace="EO.Web" TagPrefix="eo" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script type="text/javascript">

function ok()
{
document.location.href = document.location.href;
}
</script>
</head>
<body>
<form id="form1" runat="server">

<div>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<cc1:ModalPopupExtender ID="modal" runat="server" TargetControlID="upload_button" BackgroundCssClass="modalBackground" PopupControlID="Panel1" DropShadow="true" OkControlID="okbutton" OnOkScript="ok()" CancelControlID="cancelbutton">
</cc1:ModalPopupExtender>

<asp:Panel ID="Panel1" runat="server" CssClass="modalPopup" Style="Display:none;">

<eo:CallbackPanel runat="server" id="CallbackPanel1" Triggers="{ControlID:AJAXUploader1;Parameter:}">
<eo:ajaxuploader id="AJAXUploader1" runat="server" Width="200px" TempFileLocation="~/temp_upload_root" MaxDataSize="1000000"
Rows="1" AutoPostBack="True" OnFileUploaded="AJAXUploader1_FileUploaded" FinalFileLocation="~/File_upload_root">
</eo:ajaxuploader>
</eo:CallbackPanel>

<asp:LinkButton ID="okbutton" runat="server" CssClass="gestione" Text="ok"></asp:LinkButton>&nbsp;<asp:LinkButton ID="cancelbutton" CssClass="gestione" runat="server" Text="cancel"></asp:LinkButton>
</asp:Panel>

<asp:Button ID="upload_button" runat="server" Text="upload"/>
<asp:Button ID="bottone" runat="server" Text="postback" OnClick="butun" />
<asp:Button ID="Button1" runat="server" Text="pick" OnClick="pick" />
<asp:Label ID="postback" runat="server"></asp:Label>

</div>
</form>
</body>
</html>

and code behind:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class test_uploader : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!this.IsPostBack)
{
Session["file"] = "SessionNoPostback";
postback.Text += "-- no postback --";
}
else
{
postback.Text += "-- postback --";
}
}

protected void butun(object sender, EventArgs e)
{
postback.Text += "-- ButtonStd --";
if (Session["file"] != null)
{
this.postback.Text += Session["file"].ToString();
}
}

protected void AJAXUploader1_FileUploaded(object sender, EventArgs e)
{
postback.Text += "-- uploaded --";
Session["file"] = "file";
}

protected void pick(object sender, EventArgs e)
{
postback.Text += "-- pick --";
Session["file"] = "FILEUPLOADED";
}


}


eo_support
Posted: Friday, July 3, 2009 7:21:52 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

We tested this on multiple servers and the result is always the same for both browsers: -- no postback ---- postback ---- pick ---- postback ---- ButtonStd --FILEUPLOADED. Do you have the page online so that we can try again and see if it will be different?

Thanks!
Paradox Engineering
Posted: Saturday, July 4, 2009 9:43:11 AM
Rank: Member
Groups: Member

Joined: 7/2/2009
Posts: 25
here:

http://geomapper.pdxeng.ch/uploader/test_uploader.aspx

simply click PICK and then POSTBACK first in ie and then in mozilla (the code is the one above). thanks a lot for support.
eo_support
Posted: Saturday, July 4, 2009 9:53:04 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

We do see the difference in this version. However the code above does not seem to match the page. Can you provide the following?

1. The exact source code of your test_uploader.aspx;
2. The exact IE and FireFox output during your test;

Also it would be very helpful if you can give us FTP access to your server so that we can upload test files/code in order to get to the bottom of this issue.

Thanks!
Paradox Engineering
Posted: Saturday, July 4, 2009 11:09:05 AM
Rank: Member
Groups: Member

Joined: 7/2/2009
Posts: 25
hi, this is the .cs of this page:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class test_uploader : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!this.IsPostBack)
{
Session["file"] = "buonanotte";
postback.Text += "-- no postback --";
}
else
{
postback.Text += "-- postback --";
}
}

protected void butun(object sender, EventArgs e)
{
postback.Text += "-- butun --";
if (Session["file"] != null)
{
this.postback.Text += Session["file"].ToString();
}
}

protected void AJAXUploader1_FileUploaded(object sender, EventArgs e)
{
postback.Text += "-- uploaded --";
Session["file"] = "file";
}

protected void pick(object sender, EventArgs e)
{
postback.Text += "-- pick --";
Session["file"] = "presofile";
}


}
Paradox Engineering
Posted: Saturday, July 4, 2009 11:09:43 AM
Rank: Member
Groups: Member

Joined: 7/2/2009
Posts: 25
this is the .aspx

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="test_uploader.aspx.cs" Inherits="test_uploader" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="EO.Web" Namespace="EO.Web" TagPrefix="eo" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script type="text/javascript">

function ok()
{
document.location.href = document.location.href;
}
</script>
</head>
<body>
<form id="form1" runat="server">

<div>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<cc1:ModalPopupExtender ID="modal" runat="server" TargetControlID="upload_button" BackgroundCssClass="modalBackground" PopupControlID="Panel1" DropShadow="true" OkControlID="okbutton" OnOkScript="ok()" CancelControlID="cancelbutton">
</cc1:ModalPopupExtender>

<asp:Panel ID="Panel1" runat="server" CssClass="modalPopup" Style="Display:none;">

<eo:CallbackPanel runat="server" id="CallbackPanel1" Triggers="{ControlID:AJAXUploader1;Parameter:}">
<eo:ajaxuploader id="AJAXUploader1" runat="server" Width="200px" TempFileLocation="~/temp_upload_root" MaxDataSize="1000000"
Rows="1" AutoPostBack="True" OnFileUploaded="AJAXUploader1_FileUploaded" FinalFileLocation="~/File_upload_root">
</eo:ajaxuploader>
</eo:CallbackPanel>

<asp:LinkButton ID="okbutton" runat="server" CssClass="gestione" Text="ok"></asp:LinkButton>&nbsp;<asp:LinkButton ID="cancelbutton" CssClass="gestione" runat="server" Text="cancel"></asp:LinkButton>
</asp:Panel>

<asp:Button ID="upload_button" runat="server" Text="postback"/>
<asp:Button ID="bottone" runat="server" Text="postback" OnClick="butun" />
<asp:Button ID="Button1" runat="server" Text="pick" OnClick="pick" />
<asp:Label ID="postback" runat="server"></asp:Label>

</div>
</form>
</body>
</html>
Paradox Engineering
Posted: Saturday, July 4, 2009 11:10:22 AM
Rank: Member
Groups: Member

Joined: 7/2/2009
Posts: 25
but can't give ftp access because the server is under a very strict vpn :(

thanks a lot
Paradox Engineering
Posted: Saturday, July 4, 2009 11:12:39 AM
Rank: Member
Groups: Member

Joined: 7/2/2009
Posts: 25
FIREFOX OUTPUT: -- no postback ---- postback ---- pick ---- postback ---- butun --buonanotte

IE OUTPUT: -- no postback ---- postback ---- pick ---- postback ---- butun --presofile
eo_support
Posted: Sunday, July 5, 2009 2:18:13 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

We have posted a new build (2009.0.16) that should fix this issue. You can download the new build from our download page.

Please feel free to let us know if you still have problems.

Thanks!
Paradox Engineering
Posted: Monday, July 6, 2009 1:07:06 PM
Rank: Member
Groups: Member

Joined: 7/2/2009
Posts: 25
eo_support wrote:
Hi,

We have posted a new build (2009.0.16) that should fix this issue. You can download the new build from our download page.

Please feel free to let us know if you still have problems.

Thanks!


we made some tests and it seems to be ok now!!! thanks for the quick support. btw we'll test it again on various platforms.

Pdx Staff


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.