[CLOSED] Update textfield value on a long running process

  1. #1

    [CLOSED] Update textfield value on a long running process

    Hi,

    I have an existing page where on clicking a button, some process is running which might take some time to complete.

    while the process is going on, we need to update an existing textfield value on the same page. As far as i understand, without an ajax postback i can not update the textfield value at server side code. No matter how many times i change the textfield text in that long running process, it just shows the last value in the textfield and the intermittent changes to the textbox field are not displayed.

    Is there a solution for this?

    One solution i can think of is convert the text field to a "Progress bar" and update it on an "Update" event. I want to know if there is any easier way or work around for the same?

    Regards,
  2. #2

    RE: [CLOSED] Update textfield value on a long running process

    Hi,

    It doesn't matter what you use TextField or ProgressBar. Just ASP.NET don't return anything while page cycle is not finished.
    You need to run your long task as task (ThreadPool.QueueUserWorkItem) and then periodically to poll the page about the status (for example, using TaskManager)

    Please see https://examples1.ext.net/#/Miscella...r_Side_Update/
    In that example we update ProgressBar but you can use TextField

Similar Threads

  1. [CLOSED] Update TextField by Ajax Combobox
    By Oliver in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: May 30, 2012, 12:30 AM
  2. [CLOSED] How to update LabelStyle for TextField inside a FormPanel
    By drkoh in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Dec 05, 2011, 2:01 PM
  3. Replies: 3
    Last Post: Oct 16, 2011, 5:46 PM
  4. [CLOSED] Browser Progress Bar is still in process...
    By speedstepmem3 in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jul 26, 2011, 10:21 AM
  5. Replies: 7
    Last Post: Feb 17, 2011, 11:45 AM

Posting Permissions