会员登录,无需刷新页面 [英] Member Login without page refresh

查看:87
本文介绍了会员登录,无需刷新页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在asp.net上的一个电子商务网站上工作.我的问题是我使用了一个用户控件进行登录,并将该控件与所有页面链接在一起,以避免页面刷新.但是问题是,当我按下登录按钮时,要花很长时间才能登录.在这方面,任何人都可以帮助我.如果需要javascript,请向我详细说明该过程,因为我完全不了解javascript.预先感谢.

I am working on a e-commerce website in asp.net. My problem is that i have used a user control for login and linked that one with all the pages in order to avoid page refresh. But the problem is that when i am pressing the login button it is taking so much long time to log in. Can any one please help me in this regard. If javascript is required please elaborate me the process as i am totally blank about javascript. Thanks in advance.

推荐答案

尝试使用Ajax.将用户控件放在更新面板中,就可以了.
为了获得更好的性能,可以使用Json,但是它带来了安全性问题,您必须意识到这一点.

有关更多信息,请访问 http://msdn.microsoft.com/en-us/library/bb398780.aspx
Try using ajax. put you usercontrol inside an update panel, and thats it you are ready.
For better result in terms of performance Json could be used, but it brings security issues, you must be aware about it.

For more information visit http://msdn.microsoft.com/en-us/library/bb398780.aspx


这篇关于会员登录,无需刷新页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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