title: Returning multiple values to be used in jQuery from a WebMethod
body: <p>I have jquery using ajax/json to grab an elements ID and then hits:</p>
  
  <pre><code>[System.Web.Services.WebMethod]
  public static string EditPage(string nodeID)
  {
      DataTable dt = new DataTable();
      using (SqlConnection con = new SqlConnection(Global.conString))
      using (SqlCommand cmd = new SqlCommand("contentPageGetDetail", con))
      {
          cmd.Parameters.Add("@ID", SqlDbType.UniqueIdentifier).Value = Global.SafeSqlLiteral(nodeID, 1);
          cmd.CommandType = CommandType.StoredProcedure;
          cmd.ExecuteNonQuery();
          using (SqlDataAdapter da = new SqlDataAdapter(cmd))
          {
              da.Fill(dt);
          }
      }
      if (dt.Count &gt; 0)
      {
        string pageTitle = dt.Rows[0]["Title"].toString();
        string contentID = dt.Rows[0]["ContentID"].toString();
        return pageTitle, contentID, nodeID;
      }
      else
      {
        return "Failed";
      }
  }
  </code></pre>
  
  <p>When it's time to return I want to grab all content returned from the stored procedure back to the jquery method in the success section and set a hiddenfield, dropdown value, and a title in a textfield. </p>
  
  <p>In the jQuery I tried using "pageTitle" but it came up undefined. What do I need to do jQuery side to grab whats being returned and populate fields in my Web Form before showing the form?</p>