简体   繁体   English

如何从另一个.aspx页面更新一个.aspx页面的div?

[英]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将充当EventEvent handler之间的通信通道。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何从aspx页面重定向到另一个aspx页面中的方法 - how to redirect from aspx page to a method in another aspx page 从另一个ASPX页面显示DIV? - Displaying DIV from another ASPX page? 如何将错误消息从一个aspx页面发送到另一aspx页面? - How to send error message from one aspx page to another aspx page? 如何将数据从Defaul.aspx发布到另一个aspx页 - How to post data from Defaul.aspx to another aspx page 在另一个页面中呈现一个aspx页面 - rendering an aspx page in another one 如何在特定的另一个 aspx 页面中加载一个 aspx 页面<div>标签</div><div id="text_translate"><p>我想用来自另一个 *.aspx 页面的内容更新页面的某个部分,从而避免只有一个(非常)长的代码页面。</p><p> 所以:如何在特定标签中的另一个 aspx 页面中加载一个 aspx 页面,而不必重新加载整个页面。</p></div> - How can I load an aspx page in another aspx page in a specific <div> tag 传递值<h4>从一个 aspx 页面标记到另一个 aspx 页面</h4> - Pass value of <h4>tag from one aspx page to another aspx page 我想将标签输出从一个页面转移到 aspx/aspx.cs 中的另一个页面 - I want to transfer the label output from one page to another page in aspx/aspx.cs 使用C#从.aspx的页面重定向到另一个.aspx页面 - Redirecting from one page of .aspx to another .aspx page using C# 从另一个aspx页面访问aspx页面中的控件属性 - Access a control's property in an aspx page from another aspx page
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM