Ajax Tabcontainer自动回发 [英] Ajax Tabcontainer AutoPostback

查看:50
本文介绍了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自动回发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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