Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个用户控件,我在其中获取了两个表,现在我想将此用户控件添加到 aspx 页面。但有一个条件是我必须只显示一张表。我正在使用LoadControl("UC page url")加载。请帮助我做到这一点。谢谢,
LoadControl("UC page url")
通过在 aspx 页面中创建它的对象来加载用户控件。然后您可以通过访问用户控件的属性来检查您的条件并实现逻辑。