如何在没有刷新页面的情况下获取数据 [英] how to get data wthout refreshing page

查看:329
本文介绍了如何在没有刷新页面的情况下获取数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在开发一个asp.net网站应用程序.我有两个aspx页面.
在第一页中,我有一个gridview.在单击gridview时,它将在文本框中显示文本.
在第一页中,我使用
在新窗口中打开第二页

Hi,

I am working on an asp.net website application. I have two aspx pages.
In first page I have a gridview. On click the gridview it displays the text in the textbox.
From the first page I am opening the second page in the new window using

window.open("second.aspx");


但是打开第二页时出现的问题是,第一页完全刷新,这意味着在文本框中数据已全部清除.
我需要打开第二页而不刷新第一页.
有人可以帮助我吗?


but the problem while opening the second page is, that the first page is totally refreshing, means in the textbox the data is totally clearing.
I need to open the second page without refreshing the first page.
Can anybody help me?

推荐答案

您可以使用Ajax回调来重新加载页面.

请参阅以下链接以获取更多信息.
http://msdn.microsoft.com/en-us/magazine/cc748662.aspx [ ^ ]


HTH
You can reload your page using ajax call back.

Refer following links for more information.
http://msdn.microsoft.com/en-us/magazine/cc748662.aspx[^]


HTH


通过使用具有某种JQuery风格的AJAX!
点击此链接. ASP.NET中的JQuery魔术,简化了AJAX [ ^ ]
By using AJAX with some flavor of JQuery!
Follow this link. Magic of JQuery in ASP.NET, Simplifying AJAX[^]


window.open(" second.aspx);返回false;

这应该对您有帮助!
window.open("second.aspx"); return false;

This should help you!!


这篇关于如何在没有刷新页面的情况下获取数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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