如何避免在asp.net中重新加载页面 [英] How to avoid reload of page in asp.net

查看:82
本文介绍了如何避免在asp.net中重新加载页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我在一个网页上工作,处理在一个区域上创建多个图像(考虑到有一面墙,我需要放置多个对象在地板上。

如何在每下一次按钮点击的墙壁区域放置多个图像???

点击单击按钮,图像出现但点击在另一个按钮上,墙区域中的图像消失(即发生页面加载事件)

如何避免这种情况?因为我必须在前面放置另一张图片。



请帮忙!

Hi,

I am working on a web page that deals with creating multiple images on a area (considering there is a wall and I need to place multiple objects on the floor).
How do I place multiple images on the wall area "on every next button click"??
On single button click the image appears but on clicking on another button the image in the wall area disappears (that is a page load event taking place)
How do I avoid this? as I have to place another image next to the earlier.

Kindly help!

推荐答案

使用AJAX处理这种情况。
Use AJAX to handle this scenario.


如何在Asp.net中避免页面刷新? [ ^ ]

如何在单击按钮时停止重新加载页面? [ ^ ]

没有页面刷新的图像交换 [ ^ ]

使用ASP.NET 4.0和C#转发图像 [ ^ ]

此外你可以使用ajaxcontroltoolkit的模态弹出扩展器打开图像



希望它对你有所帮助!



开心编码! :)
How to AVOID Page Refresh in Asp.net ?[^]
How to stop to reload page when click the button?[^]
Image Swap Without Page Refresh[^]
Rotating Images with ASP.NET 4.0 and C#[^]
Further you can use modal popup extender of ajaxcontroltoolkit to open the image

hope it helped you!

happy coding! :)






1.)通过使用[WebMethod]可以避免页面刷新。



2.)使用updatepanel
Hi,

1.) by using [WebMethod] you can avoid page refresh.

2.)by using updatepanel


这篇关于如何避免在asp.net中重新加载页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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