更新面板设计项目的问题 [英] update panel problem for designing projects

查看:67
本文介绍了更新面板设计项目的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在做像亚马逊这样的在线购物项目。当我点击幻灯片图片按钮时,整页都有reloads.how来解决这类问题。



谢谢,

解决方案

在你的代码中尝试这个...将所有控件放在ContentTemplate中,这些控件正在调用事件并将它们注册到triger中





 <   asp:ScriptManager  < span class =code-attribute>   ID   =  ScriptManager1    runat   =   server >  
< / asp:ScriptManager >
< asp:UpdatePanel ID = UpdatePanel1 runat = server >
< ContentTemplate >
< asp:按钮 runat = 服务器 ID = update_Button 文本 = 生成随机数 宽度 = 187px

OnClick = update_Button_Click / >
< pre > < / ContentTemplate >
< ; / asp:UpdatePanel >
< 触发器 >
< asp:AsyncPostBackTrigger ControlID = update_Button EventName = 点击 / >

< / Triggers >


hi,
im doing a kind of online shopping project like amazon. when i click a slideshow image button the,whole page has reloads.how to solve this kind of problem.

thanks,

解决方案

Try this in your code...place you all the control inside the ContentTemplate which are invoking the event and register them into the triger


<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Button runat="server" ID="update_Button" Text="Generate Random Number" Width="187px"

OnClick="update_Button_Click" />
<pre></ContentTemplate>
</asp:UpdatePanel>
<Triggers>
        <asp:AsyncPostBackTrigger ControlID="update_Button" EventName="Click" />
      
    </Triggers>


这篇关于更新面板设计项目的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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