|Dart Home | PowerWEB TextBox for ASP.NET | Custom Development||Reply | PowerWEB TextBox for ASP.NET Topics | Forums|
|Author||Forum: PowerWEB TextBox for ASP.NET|
Topic: Saving ViewState in PowerWEB Textbox
From: Fayetteville, NY USA
Member Since: 07/03/07
|posted October 31, 2007 11:32 AM
I have noticed that the contents of the PowerWEB textbox are lost on webpages if the user clicks the back button and then returns to the page with the forward button. The contents of regular textboxes are not lost.
Is there a way to save the contents of the PowerWEB textbox in the same way that regular textbox data is saved? I see that all the default "viewstate" properties are set to true with a new textbox.
This is important since I want to be able to use the back button if there is a temporary interruption in internet service and I receive a "page not found" message. If I can just click "back" and then have all my info that would be great.
|K M Drake
From: Utica, NY USA
Member Since: 07/14/00
|posted October 31, 2007 5:11 PM
Standard textboxes are cached by the browser.
Unfortunately, spans and divs, which comprise the HtmlBox, are not.
You might be able to implement something with the AutoSaveInterval and AutoSave event.
It looks like this event will continue to fire even after browsing to other pages and returning.
You could use the event to periodically save the HtmlBox.Text (to a database, file, etc).
Perhaps another element that is "cleaned" when the browser leaves the page could be used as an indicator of when to load, instead of save.
Also, this would not be perfect, as the contents could change between the last save and the navigation to the new page.
|Reply | PowerWEB TextBox for ASP.NET Topics | Forums|
|This site is powered by PowerTCP WebServer for ActiveX|