title: asp.net set textbox control in panel contol
body: <p>I want to set the textbox contol located in the panel control via code</p>
  
  <p>I know to retrieve the inputted value in the textbox control:</p>
  
  <pre><code>string myVal = Request.Form["txtResult"]; 
  </code></pre>
  
  <p>I want to set the txtResult.text = "some text";</p>
  
  <p>makeup snippet:</p>
  
  <pre><code>&lt;asp:Panel ID="Panel1" runat="server" Style="display: none" Width="233px"&gt;
         &lt;asp:TextBox ID="txtResult" runat="server" AutoPostBack="True"&gt;&lt;/asp:TextBox&gt;
     &lt;br /&gt;
     &lt;div align="center"&gt;
        &lt;asp:Button ID="OkButton" runat="server" Text="OK" /&gt;
        &lt;asp:Button ID="CancelButton" runat="server" Text="Cancel" /&gt;
     &lt;/div&gt;
     &lt;/asp:Panel&gt;
  </code></pre>
  
  <p>txtResult is not available within code, I tried to see if it is available in the page_load, it's not </p>
  
  <p>texReults was a typo, its txtResult, I updated the ID</p>
  
  <p>the intellisense does not recognize any cntr by the name txtResult </p>
  
  <p>its a new web application and the panel visibility=True</p>
  
  <p>maybee this wil help, above the snipet, I use ScriptManager from the AJAX Exstension</p>
  
  <p>I am aware of he Asnchronius affects, partial potback, etc.  </p>