我的ObjectDataSource无法看到其自己的托管类的方法? [英] My ObjectDataSource cannot see its own hosting class´ Methods?
本文介绍了我的ObjectDataSource无法看到其自己的托管类的方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨.
我有一个想要用ObjectDataSource填充的gridview.
问题是,当我在VS2010中使用向导时,在向导的第二阶段中找不到刚创建的方法(并返回一个List).相反,我可以看到很多其他方法,可能是继承的方法.
这是怎么了?
非常感谢您的宝贵时间!
亲切的问候,
Lars
Hi.
I have a gridview I want to populate with an ObjectDataSource.
Problem is, when I use the wizard in VS2010, I cannot find the method I just created (and returns a List), in the second stage of the wizard. Instead I can see alot of others, probably inherited, methods.
What is wrong here?
Thanks alot for your time!
Kind regards,
Lars
推荐答案
您将其设置为公共静态方法吗?如果我想起来了(这已经有一段时间了),它必须显示在方法列表中.
Have you set is as a public static method? If I recall (and it''s been a while), that is required for it to display in the list of methods.
这篇关于我的ObjectDataSource无法看到其自己的托管类的方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文