How to bind "OnDataBound" event of "DropDownList" in declarative syntax to a static method in some other class?
<p>How to bind "OnDataBound" event of "DropDownList" in declarative syntax to a static method in some other class ?</p>

<p>e.g</p>

<pre><code>&lt;asp:DropDownList runat="server" id="d1" OnDataBound="SomeOtherClassThanThisPage.StaticMethod"&gt;&lt;/asp:DropDownList&gt;
</code></pre>

<p>This will give the error, "Page does not contain a definition for SomeOtherClassThanThisPage.</p>

<p>Is this possible to do it like this or it be done in the Code Behind only ?</p>
