向导和UpdatePanel [英] Wizard and UpdatePanel

查看:85
本文介绍了向导和UpdatePanel的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,



我在UserControl中有一个向导(不是CreateUserWizard)。该向导已放置在UpdatePanel中。当这个UserControl被网页或其他Usercontrol调用时,会返回以下错误:



扩展程序不能与控件不同的UpdatePanel当从控件中删除UpdatePanel时,当然,每次回发都会刷新调用控件的网页,如果是用户控件,则会刷新。| $ $


,此UserControl调用的UserControl和向导将同时显示。例如,如果网页调用用户控件#1,则用户控件#1和用户控件#2(向导)都将显示,因为向导已由用户控件#1注册。因此,在进入UserControl#1之前必须关闭向导或Usercontrol#2。



想知道是否有办法在更新面板中包含向导当调用向导的网页或用户控件已经有更新面板时?





任何帮助都表示赞赏。

Hello,

I have a Wizard (not CreateUserWizard) in a UserControl. The wizard has been placed in an UpdatePanel. When this UserControl is invoked by a web page or another Usercontrol, the following error is returned:

"An extender can't be in a different UpdatePanel than the control it extends."

When the UpdatePanel is removed from the control, of course, the web page that invokes the control is refreshed with each postback and in the case of a usercontrol, both the UserControl and wizard that is called by this UserControl will show simultaneously. For instance, if a web page calls User Control #1, both User Control #1 and User Control #2 (the wizard) will show since the wizard is registered by User Control #1. As a result, the wizard or Usercontrol #2 has to be closed before to getting to UserControl #1.

Wondering if there's a way to include the Wizard in an updatepanel when either a web page or usercontrol that calls the wizard already has an updatepanel?


Any help is appreciated.

推荐答案

这篇关于向导和UpdatePanel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆