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.
在 webpart 中,我加载了两个用户控件。我希望能够在另一个控件中触发事件时填充其中一个控件,必须在控件之间传递一个参数。
您可以让您的 Web 部件将这两个控件连接在一起,因此假设您的控件是生产者和消费者。
void on_Load() { producer.CustomEvent+=new EventHandler(consumer.HandleCustomEvent); }
这是更简单的解决方案之一,但它可能很脆弱。
我想要一个表单,在提交和验证后会打开一个包含结果的新选项卡。我使用该<h:form target="_blank"方法获取新选项卡,但它在新选项卡中显示验证错误。如果验证通过,我希望它只打开新选项卡。
<h:form target="_blank"
我的猜测是唯一真正的跨浏览器解决方案是在提交时进行一些 SJAX 验证,但我不确定是否有任何库可以