FreeTextBox

The no. 1 free ASP.NET HTML Editor.
Welcome to FreeTextBox Sign in | Join | Help
in Search

Loosing content on post-back

Last post 09-02-2008, 8:25 PM by JJJB. 44 replies.
Page 2 of 3 (45 items)   < Previous 1 2 3 Next >
Sort Posts: Previous Next
  •  05-19-2005, 10:04 AM 4118 in reply to 3872

    Re: Loosing content on post-back

     rfull wrote:
    same problem .. it happens on a form with drop down boxes and multiple select boxes .. and it only happens on certain records within my database.

    more likely to occur on a complex table based page

    the occurance rate on our application is approx  1 in 20 pages

    all content lost after postback

    On the problem pages the control does not load properly, the html edit is locked, you cannot edit in html mode .. it looks ok in regular mode ,so the user thinks all is ok.. presses submit and it is gone

    same problems reported with ie and firefox

    i think it is related to the data and the loading of the data into the control .. the problem records will never save no matter how many times you repeat.

  •  05-21-2005, 9:19 PM 4154 in reply to 3772

    Re: Loosing content on post-back

    Are any of the online wysiwyg editors working in DNN? Which is the best one?

    I've been trying to get FTB working in my site (not DNN) since January and it still is not ready for the retail level. There still seem to be some showstopper bugs and it's been hard for me to sell a CMS solution with any of the free editors. I may go with one of the expensive commercial ones just to get by for the interim.


  •  07-17-2005, 10:44 AM 4495 in reply to 3660

    Re: Loosing content on post-back

    I workaround the problem adding a javascript code to the OK button:

    OKButton.Attributes.Add( "onclick", document.forms['Form1'].FreeTextBox1.Focus = true; return true;" );

    -EnricoG

  •  08-04-2005, 8:38 AM 4601 in reply to 3660

    Re: Loosing content on post-back

    Has the loosing content on post-back problem been fixed or does anybody have a solution?

    Denson

  •  08-19-2005, 8:25 AM 4669 in reply to 4601

    Re: Loosing content on post-back

    Will there ever be a real solution to this problem?

    Denson
  •  08-30-2005, 7:53 AM 4706 in reply to 3660

    Re: Loosing content on post-back

    I dont know if this will solve anyones problem but it solved mine.

    I was creating everything in the code behind and I am not using the tags at all.
    I was having problems getting the content to postback to server and couldnt figure out why this is. I kinda of stumbled on the solution while adding another control to the page. It gave me an error telling me the control needed to be inside a form tag with runat server. Freetextbox never gives you this error but it still needs to be inside the form tag.

    I was using


    this.Controls.Add(myFreeTextBox);
     

    to add the control to the page... now I am using


    this.form1.Controls.Add(myFreeTextBox);
     

    now everything works perfectly and data is getting to the server on postback. I am also using ASP.net 2.0

    ~Matt

  •  10-20-2005, 7:53 AM 5030 in reply to 4706

    Re: Loosing content on post-back

    Hi I'm also having this issue, I'm making the FTB within a Web Control, that works fine until I post back and the content has gone, everything else on debug is as it should be. Has anyone found any solutions?

    Thanks

    Tim
  •  10-20-2005, 1:39 PM 5033 in reply to 5030

    Re: Loosing content on post-back

    I've also hit the bug - ftbInstance.Text property is empty on postback when ftb is nested in another control. I'd guess it has something to do with the ClientID string and some leaky javascript.

    This is pretty basic asp.net usage that a mature product should support.

  •  10-20-2005, 4:09 PM 5035 in reply to 5033

    Re: Loosing content on post-back

    Here's a workaround, albeit a kludge:

    FreeTextBox ftb = (FreeTextBox) myContainingControl.FindControl("myFreeTextBoxID");

    string myHtml = Page.Request.Form[ftb.ClientID];

  •  10-21-2005, 12:03 AM 5036 in reply to 3660

    Re: Loosing content on post-back

    The last workaround is great. It also fixes the same problem when trying to populate the control from DB or file.
  •  02-08-2006, 3:09 PM 5714 in reply to 3720

    Re: Loosing content on post-back

    I had a similar problem.

    Under normal condition, freetextbox was working ok. But when giving the focus to freetextbox while it's loading it's icons made the text disappear when posting back to the server.

    So I've tried to understand why the control on the home page of freetextbox hasn't that problem. And I've found a solution to this issue. Our applications used a linkbutton to make the update (that was the only difference with the ftb on the home page of ftb). Sound weird but changing it to a common submit button solved the problem.

    After some headaches and a lot of talking we learned that the linkbutton used some javascript and that it wasn't as tied to html as a common button would.

    Can someone confirm this?
  •  04-10-2006, 5:45 PM 6220 in reply to 3720

    Re: Loosing content on post-back

    Has this ever been solved??
  •  04-11-2006, 1:52 AM 6231 in reply to 6220

    Re: Loosing content on post-back

    I saw that this problem occurs if i'm using smartNavigation on my page (asp.net page).
    I think that the javascripts create these problems ... there must be some conflicts...
  •  06-11-2006, 4:36 AM 6695 in reply to 6231

    Re: Loosing content on post-back

    I don't have the solution to this problem;
    but it is definately related to the speed with wich FTB loads and initialises.
    In my scenario I have 2 FTB controls on my page and some linkbuttons.
    After the first postback the FTB control has to be reinitialised and if while this is still processing a link button is clicked, then a javascript error is fired saying that it could not find the ftb object.
    To avoid the javascript error I have to be patient and wait that some text shows in the FTB control before clicking on the linkbutton. I had a similar problem in the past and i was able to solve it by using the document.onreadystatechange and testing the readystatechange to be complete before doing anything else with the page.

  •  07-17-2006, 4:49 PM 6928 in reply to 6695

    Re: Loosing content on post-back

    here's a suggestion;  if the problem is related to the speed at which FTB loads within your pages, add a javascript timeout at the absolute BOTTOM of your page, then refocus to your form.

    <

    script language ='javascript' type ='text/javascript'>

    setTimeout("setfocus()",50);

    </

    script >

    function setfocus {$(txtTitle).focus();}

    where the $(txt.title) is the getElementByID replacement.

Page 2 of 3 (45 items)   < Previous 1 2 3 Next >
View as RSS news feed in XML
www.freetextbox.com