Welcome Guest Search | Active Topics | Sign In | Register

Editor, postback twice Options
Satrebla
Posted: Sunday, October 19, 2008 1:59:07 AM
Rank: Member
Groups: Member

Joined: 10/5/2008
Posts: 10
Hi everyone, really stuck on situation with 2 postbacks, after spending half of a day i finally found very interesting thing, when i have e.o. editor on a form and do soma action on simple asp.net control my page_load event is fired twice, one with ispostback=true, after that again but with ispostback=false. This is not how thing must to be....


Thanks for any posts.
eo_support
Posted: Sunday, October 19, 2008 5:17:04 AM
Rank: Administration
Groups: Administration

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

We are not aware of any such problem. Can you create a test page that reproduces the problem? Make sure it runs independently. We will be happy to take a look of that as soon as we have the test page.

Thanks!
Satrebla
Posted: Sunday, October 19, 2008 6:59:52 AM
Rank: Member
Groups: Member

Joined: 10/5/2008
Posts: 10
Here you are

Code: HTML/ASPX
<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<%@ 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>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" EnablePartialRendering="true" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel UpdateMode="Conditional" ID="UpdatePanel1" runat="server">
        <ContentTemplate>
        <asp:Label ID="lbl" runat="server"></asp:Label>
        <asp:TextBox ID="txt" runat="server"></asp:TextBox>
            <eo:Editor ID="Editor1" runat="server">
            </eo:Editor>
        </ContentTemplate>
        <Triggers>
        <asp:AsyncPostBackTrigger ControlID="bt" EventName="Click" />
        </Triggers>
        </asp:UpdatePanel>
        
        <asp:Button ID="bt" runat="server" Text="Enter" OnClick="btn_Click" />
    </div>
    </form>
</body>
</html>


Code: C#
using System;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
//when debuging here, i got 2 postbacks 1-st is true, 2-nd is false
        if (!Page.IsPostBack)
        {
            lbl.Text = "not a postback";
        }
    }

    protected void btn_Click(object sender, EventArgs e)
    {
        lbl.Text = txt.Text;
    }
    
}
eo_support
Posted: Sunday, October 19, 2008 1:54:14 PM
Rank: Administration
Groups: Administration

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

We run the page and tested it on IE 6, IE 7 and FireFox. Neither hit the "not a postback" case. We tested with build 2008.0.44 (6.0.44).

Can you check whether you are on the same version? Or see if you get the same result from another machine?

Thanks
Satrebla
Posted: Sunday, November 9, 2008 9:33:22 AM
Rank: Member
Groups: Member

Joined: 10/5/2008
Posts: 10
Downloaded latest version, the same, did you try on debug mode? Still got 2 postbacks, thats a headache!!!
eo_support
Posted: Sunday, November 9, 2008 5:19:42 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
We did. We do not see any such issues. Can you try it in a blank project?
Satrebla
Posted: Monday, November 10, 2008 12:04:43 AM
Rank: Member
Groups: Member

Joined: 10/5/2008
Posts: 10
actually that code above i posted was from blank project only 1 page, 1 update panel 1 button and 2 postbacks instead of 1 :)
eo_support
Posted: Monday, November 10, 2008 4:38:21 AM
Rank: Administration
Groups: Administration

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

We will need to take a look on your machine then. We can setup an online meeting so that you can share your desktop with us. Please let us know if you would like us to do that.

Thanks!
rickstep
Posted: Monday, June 8, 2009 11:34:45 AM
Rank: Newbie
Groups: Member

Joined: 6/8/2009
Posts: 5
I am also experiencing the double postback issue. Was this ever solved? Thanks,

Rick
eo_support
Posted: Monday, June 8, 2009 11:39:34 AM
Rank: Administration
Groups: Administration

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

I believe the issue has been resolved in our latest build. Which version are you currently running? See the following post for more information about how to find out the version number:

http://www.essentialobjects.com/forum/postst2942_How-to-find-out-EOWeb-Controls-build-number.aspx

Thanks!
rickstep
Posted: Monday, June 8, 2009 11:47:45 AM
Rank: Newbie
Groups: Member

Joined: 6/8/2009
Posts: 5
Great, I will check and post the version number as soon as I get back to the office this evening. Do you know where I can download the latest version?
eo_support
Posted: Monday, June 8, 2009 11:52:59 AM
Rank: Administration
Groups: Administration

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

You can always download the latest version from our download page (click Download from the main menu). Once you download the new version, you will need to:

1. Uninstall your previous version and reinstall the new version;
2. Update your application's reference so that it references the new EO.Web.dll other than the old one;
3. Rebuild your application;
4. If you already have a license, you will need to go to "My Orders" page to download a new license file for the new version. This is usually not necessary but we have just released 7.0 (7.0 = 2009, the previous version was 6.0 = 2008). The new version is backwards compatible but requires a new license file. You should be able to download the new license file for free if you have purchased your previous license within a year;

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

Thanks!
rickstep
Posted: Sunday, June 14, 2009 12:30:28 AM
Rank: Newbie
Groups: Member

Joined: 6/8/2009
Posts: 5
Hey Guys,

I have installed the new version of the .dll and I am still having the double postback issue.

Dll Version: 7.0.11.2

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 FileUploadTest : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
string testbreakpoint = "";
}

protected void TestFileUploaded(object sender, EventArgs e)
{
string x = "whatever";

EO.Web.AJAXPostedFile[] files = viewTestUploader.PostedFiles;

foreach (EO.Web.AJAXPostedFile file in files)
{
//Get the temp file name
string tempFileName = file.TempFileName;

//Create the final file name based on the original file name
string finalFileName = System.IO.Path.Combine(Server.MapPath("~/UploadedImages/"), file.ClientFileName);

//Move the file to the desired location
System.IO.File.Move(tempFileName, finalFileName);

}
}

}





MARKUP


<%@ Page Language="C#" AutoEventWireup="true" CodeFile="FileUploadTest.aspx.cs" Inherits="FileUploadTest" %>
<%@ Register TagPrefix="eo" Namespace="EO.Web" Assembly="EO.Web" %>
<!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>
</head>
<body>


<form id="form1" runat="server">
<asp:ScriptManager ID="viewScriptManager" runat="server"></asp:ScriptManager>


<div>


<asp:UpdatePanel ID="viewUPanel" runat="server"><ContentTemplate>

<eo:AJAXUploader ID="viewTestUploader" runat="server" AutoPostBack="true" AutoUpload="true" EnableViewState="true" TempFileLocation="~/UploaderTemp/" OnFileUploaded="TestFileUploaded"></eo:AJAXUploader>

<br />
<asp:Image ID="viewTestImage" runat="server" />

</ContentTemplate></asp:UpdatePanel>
</div>
</form>
</body>
</html>



ASHX

<%@ WebHandler Class="EO.Web.Runtime" %>



WEB CONFIG

<httpModules>
<add name="EOWebRuntime" type="EO.Web.Runtime,EO.Web"/>


<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></httpModules>




Any ideas?

Thanks,

Rick


eo_support
Posted: Sunday, June 14, 2009 8:10:39 AM
Rank: Administration
Groups: Administration

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

Thanks for the additional information. We will look into it and get back to you as soon as possible. (The original problem Satrebla was having was with the Editor control, not with the Uploader control. I believe that one has been fixed)

Thanks!
eo_support
Posted: Sunday, June 14, 2009 10:26:35 PM
Rank: Administration
Groups: Administration

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

We have confirmed that this is a bug and have posted a new build that fixed this issue. Please see your private message for download location for the new build.

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

Thanks!
rickstep
Posted: Monday, June 15, 2009 12:03:39 AM
Rank: Newbie
Groups: Member

Joined: 6/8/2009
Posts: 5
Hey Guys,

It worked and you don't know how thankful I am. This is the third ajax downloader control I have bought. The truth is, it is so far superior to the others in terms of both user experience and ease of implementation that I would have preferred it even with the bug. The fact that you guys fixed it over the weekend is just amazing to me after the trials I've been through even getting support to respond with the other companies.

You guys have a great product with great support. I will be recommending Essential Objects to all the programmers I know. Thanks for making my weekend!

Rick
Jan Rygh
Posted: Thursday, July 16, 2009 4:01:54 AM
Rank: Member
Groups: Member

Joined: 2/9/2009
Posts: 23
Hi, I have the same problem. I just installed version 2009.0.16 but it did not reolve the problem. Did you put the fix in this release?
eo_support
Posted: Thursday, July 16, 2009 6:56:09 AM
Rank: Administration
Groups: Administration

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

I believe this build does include the fix. If you still have problem, then it might be a different but similar problem. In that case please provide a test page that can reproduce the problem and we will be happy to take a look.

Thanks!
Jan Rygh
Posted: Friday, July 17, 2009 9:55:17 AM
Rank: Member
Groups: Member

Joined: 2/9/2009
Posts: 23
Sorry, my fault. I had a double event of Page_Load due to som old .Net 1.1 code.
eo_support
Posted: Friday, July 17, 2009 9:57:09 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Cool. Glad that you found it out!


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.