登录代码是否对AJAX UpdatePanel有害? [英] Is AJAX UpdatePanel dangerous for Login codes?

查看:63
本文介绍了登录代码是否对AJAX UpdatePanel有害?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Ajax控件工具箱的Modal弹出式扩展程序让用户登录到站点.

我已将modalpopup包含在更新面板中.输入用户名和密码后,在弹出窗口中单击登录"按钮时,将触发该事件,该事件具有身份验证代码以检索用户名和密码并与输入的用户名和密码进行比较.并且据此,用户将被登录,否则将不会发生任何事情.

我想知道是否应该为此目的使用ajax或使用不带ajax的完整回发??????

我曾在Google上搜索并发现某个地方的updatepanels很危险,对此表示怀疑.

请帮助并指导我

:confused:

.....................

I am using a Modal popup extender of Ajax control toolkit for users to login to the site.

I have included the modalpopup in update panel. On clicking login button in the popup after entering username and password, the event is fired which has authentication code to retrieve the username and password and compare with that entered. And according to that, the user will be logged in or else nothing will happen.

I want to know whether I should use ajax for this authentication purpose or use complete postback without ajax???

I have this doubt as I have googled and found somewhere that updatepanels are dangerous.

Please help and guide me

:confused:

.....................

推荐答案

更新面板很危险
实际上,更新面板易于使用和配置.您提到您已经对此问题进行了调查,所以我认为您已经获得了有关更新面板的一些基本信息(缺点和优势).

好吧,如果您可以使用JQuery或其他任何客户端脚本语言来解决您的问题,那么,

如果我误会了,请随时纠正我.
updatepanels are dangerous
Actually, update panel is easy to use and configure. You mentioned that you already goggled regarding this issue, so I think you acquired some basic information regarding update panel(disadvantage and advantage).

Well, if you can manage your problem using JQuery or any other client side scripting language that will be plus.

If i misunderstand, please feel free to correct me.


这篇关于登录代码是否对AJAX UpdatePanel有害?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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