register-login user jquery> ashx> C# [英] register-login user jquery > ashx > c#

查看:84
本文介绍了register-login user jquery> ashx> C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

之前我通常使用asp.net登录和注册控件来管理用户。



但是现在我想写一个不同视图的客户端登录,所以就像其他信息我决定收集用户名和密码,制作一个json字符串,并传递给ashx处理程序,但现在我不确定以这种方式发送密码是安全的:





before now i usually use asp.net login and register control to manage users.

but now i want to write a client side login with diffrent view, so just like other information i decided to collect user name and password, make a json string, and pass to ashx handler, but now i am not sure it is safe to send password in this way:


var pass = $('#psw').val();

    $.ajax({
        url: "login.ashx",
        data: { "password": pass },
        success: function (result) {
        },
        error:{
        }
        });





我的问题是:什么是最佳解决方案?

是否有完整的c#,vb和jquery教程?



my question is: what is best solution?
is there a complete tutorial in c#, vb and jquery?

推荐答案

' #psw')。val ();
('#psw').val();


.ajax({
url: login .ashx
数据:{ 密码:pass},
成功:功能(结果){
},
错误:{
}
});
.ajax({ url: "login.ashx", data: { "password": pass }, success: function (result) { }, error:{ } });





我的问题是:什么是最佳解决方案?

有c#,vb和jquery的完整教程?



my question is: what is best solution?
is there a complete tutorial in c#, vb and jquery?


确保您的网站使用SSL / TLS * https *



make sure your site uses SSL/TLS *https*

<pre>var pass =


这篇关于register-login user jquery&gt; ashx&gt; C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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