如何在Asp.Net C#中刷新特定部分 [英] How to refresh a particular portion in Asp.Net C#

查看:83
本文介绍了如何在Asp.Net C#中刷新特定部分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的网页上创建了一个发票系统,但问题是每当我在发票中放入任何项目刷新页面并进入页面顶部然后我向下滚动并再次放下一个项目。即使在添加项目后,我怎么才能坚持发票部分?

I have created a invoice system in my web page but the problem is whenever i put any items in the invoice its refresh the page and goes top of the page then I have scroll down and put next item again. How can I stuck to that invoice section only even after adding items ?

推荐答案

使用UpdatePanel [ ^ ]



例如:

http://www.aspdotnet-suresh.com/2012/05/ajax-updapanel-control -with-triggers.html [ ^ ]

http:// www.devmanuals.com/tutorials/ms/aspdotnet/updatepanel.html [ ^ ]
Use UpdatePanel [^]

Eg:
http://www.aspdotnet-suresh.com/2012/05/ajax-updapanel-control-with-triggers.html[^]
http://www.devmanuals.com/tutorials/ms/aspdotnet/updatepanel.html[^]


更新小组 [ ^ ]会帮助你。

根据MSDN,

更新面板:允许部分呈现页面的部分回发。



http:/ /www.asp.net/Ajax/Documentation/Live/overview/UpdatePanelOverview.aspx [ ^ ]

http://www.asp.net/web-forms/tutorials/aspnet-ajax/understanding-asp-net-ajax-updatepanel-triggers [ ^ ]

http://ajax.net-tutorials.com/controls/updatepanel-control/ [ ^ ]

http://www.aspdotnet-suresh.com/2012/05/ajax-updapanel-control-with-triggers.html [ ^ ]

http:/ /www.dotnetjalps.com/2010/04/playing-with-update-panel-in-aspnet.html [ ^ ]



-KR
Update Panel[^] would help you out.
As per MSDN,
Update Panel : Enables sections of a page to be partially rendered without a postback.

http://www.asp.net/Ajax/Documentation/Live/overview/UpdatePanelOverview.aspx[^]
http://www.asp.net/web-forms/tutorials/aspnet-ajax/understanding-asp-net-ajax-updatepanel-triggers[^]
http://ajax.net-tutorials.com/controls/updatepanel-control/[^]
http://www.aspdotnet-suresh.com/2012/05/ajax-updapanel-control-with-triggers.html[^]
http://www.dotnetjalps.com/2010/04/playing-with-update-panel-in-aspnet.html[^]

-KR


您好,



使用更新面板内的所有项目。



Hi,

use all items inside the updatepanel.

<asp:updatepanel id="upnl" runat="server">
        <contenttemplate>  
        Enter your code hear
        </contenttemplate>
    </asp:updatepanel>


这篇关于如何在Asp.Net C#中刷新特定部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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