title: Populate ASP dropdownlist containing languages
body: <p>I'm using Winforms, C#.</p>
  <p>Running the latest CefSharp.</p>
  <p>I'm trying to populate a dropdownlist, the website is made in ASP.net. I've tried it by simply modifying the value of the &quot;Valuecontrol input&quot;, but this doesnt seem the be recognized as a input from the website, as you can see down below its the code.</p>
  <p>There are two parts of code that belong together, below is the &quot;Input Name&quot;</p>
  <pre><code>&lt;input name=&quot;ctl00$MainContent$tcModal$fd1b3735de9b4347a6a46e58310aab4a$8796dda4a9954a2eabf941375403b1b7_ValueControl&quot; type=&quot;text&quot; class=&quot;rcbInput radPreventDecorate&quot; id=&quot;ctl00_MainContent_tcModal_fd1b3735de9b4347a6a46e58310aab4a_8796dda4a9954a2eabf941375403b1b7_ValueControl_Input&quot; value=&quot;&lt;Default&gt;&quot; readonly=&quot;readonly&quot; autocomplete=&quot;off&quot;&gt;
  </code></pre>
  <p>And here is the &quot;input ID&quot;:</p>
  <pre><code>&lt;input id=&quot;ctl00_MainContent_tcModal_5b3f462a46784a108cb31d3cfbbf71e7_f383f3809de14ac89ba9304b6922377d_ValueControl_ClientState&quot; name=&quot;ctl00_MainContent_tcModal_5b3f462a46784a108cb31d3cfbbf71e7_f383f3809de14ac89ba9304b6922377d_ValueControl_ClientState&quot; type=&quot;hidden&quot; autocomplete=&quot;off&quot;&gt;
  </code></pre>
  <p>As soon as a select a language from the dropdown list there some code added to &quot;Input ID&quot;, as seen below.</p>
  <pre><code>&lt;input id=&quot;ctl00_MainContent_tcModal_5b3f462a46784a108cb31d3cfbbf71e7_f383f3809de14ac89ba9304b6922377d_ValueControl_ClientState&quot; name=&quot;ctl00_MainContent_tcModal_5b3f462a46784a108cb31d3cfbbf71e7_f383f3809de14ac89ba9304b6922377d_ValueControl_ClientState&quot; type=&quot;hidden&quot; autocomplete=&quot;off&quot; value=&quot;{&amp;quot;logEntries&amp;quot;:[],&amp;quot;value&amp;quot;:&amp;quot;Argentinian Spanish&amp;quot;,&amp;quot;text&amp;quot;:&amp;quot;Argentinian Spanish&amp;quot;,&amp;quot;enabled&amp;quot;:true,&amp;quot;checkedIndices&amp;quot;:[],&amp;quot;checkedItemsTextOverflows&amp;quot;:false}&quot;&gt;
  </code></pre>
  <p>So i've tried to modify the added part of code, but with no succes.</p>
  <p>See my code:</p>
  <pre><code>document.getElementById(document.evaluate(&quot;/html/body/form/div[5]/div/div/div[2]/div/div/div[1]/div/div[2]/div/table/tbody/tr[1]/td[2]/div/input&quot;, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue.id).value = '{&quot;logEntries&quot;:[],&quot;value&quot;:&quot;Bulgarian&quot;,&quot;text&quot;:&quot;Bulgarian&quot;,&quot;enabled&quot;:true,&quot;checkedIndices&quot;:[],&quot;checkedItemsTextOverflows&quot;:false}'
  </code></pre>
  <p><a href="https://i.stack.imgur.com/Q6JzK.png" rel="nofollow noreferrer">Raw code</a></p>
  <p>Is there any other way i could do this?</p>