Ajax Tabcontainer自动回发

编程入门 行业动态 更新时间:2024-10-28 10:21:22
本文介绍了Ajax Tabcontainer自动回发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我在Web应用程序中使用AJAX选项卡控件.从选项卡上的选项卡更改为其他选项卡时,我将数据绑定到网格和下拉列表控件.执行此操作时,选项卡控件将消失.我试图使用更新面板来解决这个问题.如果设置为false,我将设置属性AutoPostBack = true,则无法将数据绑定到那些控件.谁能指导我. 问候, Jeevan.

Hi, I am using AJAX tab control in my web application. While changing from on tab to the other I am binding the data to the Grid and Dropdown controls. when it is performing this action tab control will be disappearing. I tried to solve that using update panel. I set the property AutoPostBack=true if i set false i am not able to bind the data to those controls. Can any one please guide me. Regards, Jeevan.

推荐答案

嗨.. 您说您正在使用更新面板,并且可以具有PostBack. 然后为了使ajax控件具有异步回发,请按如下所示在内联代码中添加触发器.根据您的要求进行设置. Hi .. You Said you are using update panel and can able have PostBack. Then for the ajax controls in order to have asynchronous postback add trigger in inline codeas shown.make it as per your requirements. <asp:UpdatePanel ID ="UpdatePanel1" runat ="server" > <ContentTemplate > <asp:Button ID="Button1" runat="server" Text="SAVE" OnClick ="btnuploadphoto_click" /> </ContentTemplate> <Triggers > <asp:PostBackTrigger ControlID ="btnuploadphoto" /> </Triggers> </asp:UpdatePanel>

我在更新面板中放置了一个示例按钮.

I have taken a sample button inthe update panel.

:((:sigh::laugh::):laugh:; P:sigh::((:-O:confused:X | :(( :sigh: :laugh: :) :laugh: ;P :sigh: :(( :-O :confused: X|

您缺少事件名称属性,亲爱的 you missing eventname property dear <triggers> <asp:postbacktrigger controlid="btnuploadphoto" eventname="Click" xmlns:asp="#unknown" /> </triggers>

更多推荐

Ajax Tabcontainer自动回发

本文发布于:2023-11-25 01:08:58,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1627695.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Ajax   Tabcontainer

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!