[英]How to update div of one .aspx page from another .aspx page?
I am new to asp.net and working through a problem set that has two .aspx pages. 我是asp.net的新手,并且处理了一个有两个.aspx页面的问题集。
Events.aspx: Events.aspx:
This is where the site-admin updates the upcoming events and webinars with the help of already available panel like, title of the event,date, information, etc. 这是网站管理员在已经可用的面板的帮助下更新即将举办的活动和网络研讨会,例如活动标题,日期,信息等。
index.aspx: 的Index.aspx:
It is my homepage that has a div section on the sidebar where I want those updated events from the Events.aspx to be reflected. 我的主页在侧边栏上有一个div部分,我想要反映来自Events.aspx的更新事件。 It will show only the top four upcoming events. 它只会显示前四个即将举行的活动。
They will be sorted according to the latest upcoming events to the later ones. 它们将根据最近即将发生的事件进行分类。
In the future when these events are updated, only the top four upcoming events will be displayed. 在将来更新这些事件时,将仅显示前四个即将发生的事件。
How to go about it? 怎么去呢? Any help would be awesome. 任何帮助都是极好的。
You can achieve this by using Simple Events and delegate concept. 您可以通过使用简单事件和委托概念来实现此目的。 Publish event from your Event.aspx
and you can subscribe that in your Index.aspx
page. 从Event.aspx
发布事件,您可以在Index.aspx
页面中订阅它。 Delegate
will be act as a communication channel between Event
and Event handler
. Delegate
将充当Event
和Event handler
之间的通信通道。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.