|
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> <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"; }
}
|
|
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!
|
|
Rank: Member Groups: Member
Joined: 7/2/2009 Posts: 25
|
here: http://geomapper.pdxeng.ch/uploader/test_uploader.aspxsimply click PICK and then POSTBACK first in ie and then in mozilla (the code is the one above). thanks a lot for support.
|
|
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!
|
|
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"; }
}
|
|
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> <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>
|
|
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
|
|
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
|
|
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!
|
|
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
|
|