如何防止MasterPage回复 [英] How to prevent MasterPage post back

查看:38
本文介绍了如何防止MasterPage回复的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



简单地说,我在MasterPage中有一个控件,在内容中有另一个控件。

当内容中的控件发回时,MasterPage也运行

并返回发回。我希望控制这些回帖

发生在受尊重的区域,内容内或MasterPage内。什么

将是实现这一目标的最简单和最合理的方式? TIA。

Hi,
Simply put, I have a control in MasterPage and another in content.
When the control in content fires off post back, MasterPage also runs
and returns post back. I want to control these where post back
happens in respected area, within content or within MasterPage. What
will be the simplest and logical way to implement this? TIA.

推荐答案

发生回发时,Master Page

和内容页面的Init和Load事件将被触发。什么,何地,何时具体

是否要阻止代码被执行?直到你提供更多

详细信息,我不确定是否有人能够帮助你。

-

Nathan Sokalski
nj ******** @ hotmail.com
http://www.nathansokalski.com/


< go ******* @ gmail.comwrote in message

news:2c ********* ************************* @ l76g2000 hse.googlegroups.com ...
When a postback occurs, the Init and Load events for both the Master Page
and the Content Page will be triggered. What, where, and when specifically
is it that you want to prevent code from being executed? Until you give more
detail on what you are trying to do, I''m not sure if anyone will be able to
help you.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

<go*******@gmail.comwrote in message
news:2c**********************************@l76g2000 hse.googlegroups.com...



简单地说,我在MasterPage中有一个控件,在内容中有另一个控件。

当内容中的控件发回时,MasterPage也会运行

并返回回复。我希望控制这些回帖

发生在受尊重的区域,内容内或MasterPage内。什么

将是实现这一目标的最简单和最合理的方式? TIA。
Hi,
Simply put, I have a control in MasterPage and another in content.
When the control in content fires off post back, MasterPage also runs
and returns post back. I want to control these where post back
happens in respected area, within content or within MasterPage. What
will be the simplest and logical way to implement this? TIA.



主页面只是使用它的页面上的另一个控件,它的

不是单独的页面。


- 布鲁斯(sqlwork.com)

go******* @ gmail.com 写道:
the master page is just another control on the page that uses it, its
not a separate page.

-- bruce (sqlwork.com)

go*******@gmail.com wrote:



简单地说,我有一个在MasterPage中控制,在内容中控制另一个。

当内容中的控件触发后,MasterPage也会运行

并返回回发。我希望控制这些回帖

发生在受尊重的区域,内容内或MasterPage内。什么

将是实现这一目标的最简单和最合理的方式? TIA。
Hi,
Simply put, I have a control in MasterPage and another in content.
When the control in content fires off post back, MasterPage also runs
and returns post back. I want to control these where post back
happens in respected area, within content or within MasterPage. What
will be the simplest and logical way to implement this? TIA.


这也是一个好点,一个页面可以很好地解释内容和母版页之间的

关系是:

http://www.odetocode。 com / Articles / 450.aspx


-

Nathan Sokalski
nj ******** @ hotmail.com
http://www.nathansokalski.com/

" bruce barker" < no **** @ nospam.comwrote in message

news:et ************** @ TK2MSFTNGP05.phx.gbl ...
That is a good point as well, a page that gives a good explanation of the
relationship between Content and Master Pages is:

http://www.odetocode.com/Articles/450.aspx

--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

"bruce barker" <no****@nospam.comwrote in message
news:et**************@TK2MSFTNGP05.phx.gbl...

主页面只是使用它的页面上的另一个控件,它不是单独页面的

a。


- bruce(sqlwork.com)

去******* @ gmail。 com 写道:

>
简单地说,我在MasterPage中有一个控件,在内容中有另一个控件。
内容控件在发回后触发,MasterPage也运行
并返回发回。我希望控制这些回发地点发生在尊重区域内,内容内或MasterPage内。什么
将是实现这一目标的最简单和最合理的方式? TIA。
>Hi,
Simply put, I have a control in MasterPage and another in content.
When the control in content fires off post back, MasterPage also runs
and returns post back. I want to control these where post back
happens in respected area, within content or within MasterPage. What
will be the simplest and logical way to implement this? TIA.



这篇关于如何防止MasterPage回复的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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