How to bind "OnDataBound" event of "DropDownList" in declarative syntax to a static method in some o
- by Puneet Dudeja
How to bind "OnDataBound" event of "DropDownList" in declarative syntax to a static method in some other class ?
e.g
<asp:DropDownList runat="server" id="d1" OnDataBound="SomeOtherClassThanThisPage.StaticMethod"></asp:DropDownList>
This will give the error, "Page does not contain a definition for SomeOtherClassThanThisPage.
Is this possible to do it like this or it be done in the Code Behind only ?