title: Call converted input from another cls.cs file
body: <p>I have a aspx, aspx.cs and cls.cs file.</p>
  
  <p>cls.cs file :</p>
  
  <pre><code>  public void convertphone(string phone,out DataTable dt)
          {
              string strSql;
  
  
              strSql = " select convert || substr('" + phone + "', 22, 11) ";
             strSql +=   " AS Converted from phoneconvert ";
              strSql +=  " where phone_partno = substr('" + phone + "', 1, 15) ";
  
  
  
              cls.GetDataTable(strSql, out dt);
  
  
  
          }
  </code></pre>
  
  <p>My aspx.cs file</p>
  
  <pre><code>protected void InvisButton_Click(object sender, EventArgs e)
  {
      string phone = Scancuba.Text;
      resultscan.Text = "";
  
      //bool result = Cls.convertphone(phone);
  
  Cls.convertphone(phone,out dt);
  
  
      if(result==true)
      {
          resultscan.Text = "Insert success " + phone;
          resultscan.Style.Add("background-color", "#90ee90");        
      }
  }
  
  </code></pre>
  
  <p>My problem is, when I insert an input, the query works and convert my input into the format that I want but in the display message, it display " Insert success (the original input that has not convert yet)".
  I know that it because I didn't pass the converted value, but I don't know how to code that.
  I'm extremely noob in asp.net but please guide me.. Thanks in advance.</p>