title: asp.net jquery loading values on page after post back
body: <p>Im currently trying to use a jQuery plugin:
  <a href="http://loopj.com/2009/04/25/jquery-plugin-tokenizing-autocomplete-text-entry/" rel="nofollow">jQuery Autocomplete Tokenizer</a>
  Now after posting back the page, I want to re-load the values back into the textbox for whatever items had been entered.</p>
  
  <p>Now the jQuery on the page is like below:</p>
  
  <pre><code>$(document).ready(function () {
          $("#&lt;%=txtPeople.ClientID %&gt;").tokenInput("Handler.ashx", {
              hintText: "Type in a name",
              noResultsText: "No results",
              searchingText: "Searching...",
              prePopulateFromInput: true  
              },
              prePopulate:  **Here is where I want to add JSON listing the items that should be populated**
          });
      });
  </code></pre>
  
  <p>If I add the JSON below within the prepopulate it loads the values the first time the form loads (And after any postbacks, so I need a way to make this a variable, that I can feed into the javascript on the page, and also have it updated by any client side changes)</p>
  
  <pre><code>[{"id":1,"name":"Ben"},{"id":2,"name":"Bernard"},{"id":3,"name":"Joe Bentley"}]
  </code></pre>
  
  <p>Can anyone point me in the right direction or give any references that may help? thanks</p>