title: Getting value from a text field when button is clicked using aspnet mvc Razor in ext.net
body: <p>I'm having some issues referencing a component to get its value. I have a simple form with a numberfield and a button. To test I just want to output the value of the numberfield when the button is clicked</p>
  
  <p>I have a basic js function</p>
  
  <pre><code>var saveNewSats = function (component) {
  
      console.log(component.getValue());                                   
      };       
  </code></pre>
  
  <p>In razor I wire it together like this </p>
  
  <pre><code> X.Button()
   .Text("Save")
   .Listeners(l =&gt; l.Click.Handler = "saveNewSats(#{newSatsField});")
  </code></pre>
  
  <p>Where newSatsField is the html id of the numberfield. I tried to reference the field in multiple ways like App.newSatsField, but no luck. What is the correct syntax to get the value from the numberfield?</p>
  
  <p>Best regards</p>