title: asp.net DataBinding - Method - From Code Behind
body: <p>the below ASPX code is ok :</p>
  
  <pre><code> &lt;asp:Label ID="lblShowInRPV1" runat="server"  
         Text="&lt;%# Method() %&gt;"&gt;&lt;/asp:Label&gt;
  </code></pre>
  
  <p>is it possible to pass some parameters (from aspx code) to Method()?</p>
  
  <p>in the other hand can u fix Below databinding for me ? (That Is Incorrect)</p>
  
  <pre><code> &lt;asp:Label ID="lblShowInRPV1" runat="server" 
        Text="&lt;%# Method(Eval("ID")) %&gt;"&gt;&lt;/asp:Label&gt;
  </code></pre>
  
  <p>the method in code behind is like this :</p>
  
  <pre><code>    protected string Method(int ID)
      {
  string s= string.Empty;
  //STUFF
  return s;
      }
  </code></pre>
  
  <p>the ID Will Be Shown In My Grid And I want To Pass It To Method()...</p>
  
  <p>how can i do that?</p>
  
  <p>thanks in future advance</p>
  
  <p>best regards</p>