Solved But : Unable to get value Textbox by id in javascript
<p>I have text boxes and it has values let say. I am calling my javascript method on one of textbox 'onblur'. my function is:</p>

<pre><code>function CalculateExpectedProductPrice() {
  alert("hi i called");
  var originalPrice = document.getElementById('hdnSelectedProductPrice').value;

  var numberOfLicenses = document.getElementById('txtNumberOfLicense').value;
  var enteredAmount = document.getElementById('txtAmount').value;

  alert(originalPrice);
  alert(numberOfLicenses);
  alert(enteredAmount);

}
</code></pre>

<p>i am getting alert message as ""hi i called". but not further.</p>

<p>But some i am not getting values of these controls.</p>

<p>*<strong><em>Edited:</em>*</strong>  My HTML is : </p>

<pre><code>&lt;asp:HiddenField ID="hdnSelectedProductPrice" runat="server" /&gt;
&lt;asp:TextBox ID="txtAmount" runat="server" Width="250px"&gt;&lt;/asp:TextBox&gt;
&lt;asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional"&gt;
   &lt;ContentTemplate&gt;
      &lt;asp:TextBox ID="txtNumberOfLicense" runat="server" Width="35px" &gt;&lt;/asp:TextBox&gt;
   &lt;/ContentTemplate&gt;
   &lt;Triggers&gt;
      &lt;asp:AsyncPostBackTrigger ControlID="txtNumberOfLicense" EventName="" /&gt;
   &lt;/Triggers&gt;
&lt;/asp:UpdatePanel&gt;
</code></pre>

<p>Will there any impact master-content page . because script is in content page and html also on same content page.Also let me know you, I am using wizard control where as all these controls are resides on second step of wizard. will that make any impact ?</p>

<p><strong>Edited:</strong></p>

<p>I think wizard control making here matter. As i started my firebug and review the generated html it assign the Id dynamically to those controls which are inside the wizard. thats why javascript unable to find the expected control .
eg for txtAmount text box which is inside the wizard control getting name as :</p>

<pre><code>ctl00_ContentPlaceHolder1_Wizard1_txtAmount
</code></pre>

<p>but certainly i would not prefer to use this generated Id. So is there any remedy to find control inside the wizard control and get - set values ? </p>
