title: Input field to populate GridView
body: <p>I have the following code which defined my input field and my button:</p>
  
  <pre><code>&lt;p&gt;
  &lt;asp:TextBox ID="input" runat="server"&gt;&lt;/asp:TextBox&gt;
  &amp;nbsp;&lt;asp:Button ID="submit" runat="server" OnClick="submit_Click" Text="Button" /&gt;
  &lt;/p&gt;
  &lt;p&gt;
  &lt;asp:GridView ID="searchDisplay" runat="server" OnSelectedIndexChanged="searchDisplay_SelectedIndexChanged"&gt;
  &lt;/asp:GridView&gt;
  &lt;/p&gt;
  </code></pre>
  
  <p>I added the a Click event to my Button once pressed it should invoke the following method:</p>
  
  <pre><code>protected void submit_Click(object sender, EventArgs e)
  {
     String keyword = input.Text;            // Gets text inputed
     List&lt;T&gt; = service.getTitles(keyword);   // Two problems here
  }
  </code></pre>
  
  <p>I have 2 problems i need to solve:</p>
  
  <p>1) <code>List</code> should be defined as <code>List&lt;Publication&gt;</code> however type Publication is not part of this solution so i dont know how to correctly bind the data that WCF service returns to it. I tried E, T, and ? as parameters to List but all i get are errors.</p>
  
  <p>Solved<br>
  <em>2) I have a WCF service runing in another VS2012 instance how and in the first one i have it refrenced with keyword <code>"service"</code> why can't i access it's methods. I have a method in my WCF service that returns <code>List&lt;Publication&gt;</code> i tried writing <code>List&lt;?&gt; data = service.getTitles(keyword);</code> however this gives an error that the following is a type not valid in current context</em></p>