How to bind "OnDataBound" event of "DropDownList" in declarative syntax to a static method in some o
Posted
by Puneet Dudeja
on Stack Overflow
See other posts from Stack Overflow
or by Puneet Dudeja
Published on 2010-06-16T08:13:15Z
Indexed on
2010/06/16
8:42 UTC
Read the original article
Hit count: 346
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 ?
© Stack Overflow or respective owner