title: Filling a DropDownList with an AJAX response and getting the selected value on the server with ASP.NET WebForms
body: <p>I'm having trouble with this simple scenario.</p>
  
  <p>First, I'm using ASP.NET WebForms. </p>
  
  <p>I'm making an ajax call using jQuery after the user select a value on a first dropdown (select). This call will return me an array of values with which I fill a second DropDownList. After a postback, of course the DropDownList has no items.</p>
  
  <p>I have tried to re-fill the DropDownList in the Init event of the page, but the viewstate has not been processed and I need the selected value of the first DropDownList to get the correct values.</p>
  
  <p>I know that I could probably hack something with putting the selected value of the dropdown inside an hidden field and get it back later in the page cycle, but surely there is something I'm missing? A more easy way (no UpdatePanel solution please).</p>