将日期从updatepanel1发送到updatepanel2作为超链接 [英] send date from updatepanel1 to updatepanel2 as hyperlink

查看:55
本文介绍了将日期从updatepanel1发送到updatepanel2作为超链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个包含2个updatepanel和3个字段集的页面,因为我将在此页面上进行部分刷新.
主菜单位于updatepanel1的字段集,子菜单位于updatepanel2的文件集.
我想将数据从updatepanel1的字段集发送到updatepanel2的其他字段集,但是我想使在updatepanel2处接收到的所有数据都作为超链接,因为它们是子菜单.
然后通过单击这些超链接子菜单中的任何一个刷新第三字段集并显示此子菜单的详细信息.
您能否帮助我解决这个问题,特别是在第二个字段集以超链接形式接收数据时.
感谢您的考虑.

I have create one page including 2 updatepanel and 3 fieldset because I''m going to have partial refreshing at this page.
the main menu located at the fieldset at updatepanel1 and sub-menu located at filedset at updatepanel2.
I want to send the data from fieldset at the updatepanel1 to other fieldset at the updatepanel2, but i want to make all the data which have received at the updatepanel2 as hyperlink, because these are sub-menus.
then by click at the any of these hyperlinks sub-menu refresh the third fieldset and show the details of this sub-menu.
could you please help me to over come this problem, specially for receiving the data as hyperlink at the second fieldset.
Appreciate your consideration.

推荐答案

您可以在updatepanel1和updatepanel2之间编写触发器,如下所示:
You can write trigger between updatepanel1 and updatepanel2 as:
<form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
    <asp:UpdatePanel runat="server" id="UpdatePanel" updatemode="Conditional">
    <Triggers>
        <asp:AsyncPostBackTrigger controlid="UpdateButton2" eventname="Click" />
    </Triggers>


这篇关于将日期从updatepanel1发送到updatepanel2作为超链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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