开发者

UserControl's and databound values

I have a User Control, which is in a templatefield on a GridView. I pass in about 6-7 properties to it, all of are bound from the data source. Here is my markup:

<uc1:GridMenu ID="gm1" runat="server" Total='<%# Bind("Total") %>' ....

Haven开发者_JAVA百科't copied it all as it's rather long but you can see how I'm passing the properties in. The problem is however, all the properties end up as null when they're passed through, even though I'm certainly binding the correct things. Am I doing something wrong?


Have you set the Bindable attribute to your Total property?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜