Results 1 to 1 of 1

Thread: Update UI From TextBox Data + Page Load Event

Threaded View

  1. #1

    Thread Starter
    Wait... what? weirddemon's Avatar
    Join Date
    Jan 2009
    Location
    USA
    Posts
    3,826

    Update UI From TextBox Data + Page Load Event

    I'm updating the UI of my page when it loads with data from SQL. I have a method that pulls the data and returns a string.

    I then need to be able to click the button, update SQL, and update the UI with the new value.

    The problem is that each postback refreshes the page. So when I click the button, the new data is reverted back to the original value and then SQL is updated with the old data.

    Is there any way I can accomplish this in this manner?

    Edit: Never mind. Figured it out just after I posted this. I'm using the page PreRender event to load the initial data.
    Last edited by weirddemon; Jun 8th, 2012 at 09:06 AM.
    CodeBank contributions: Process Manager, Temp File Cleaner

    Quote Originally Posted by SJWhiteley
    "game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width