使用数据处理程序和数据库连接登录页面 [英] Login Page using Data Handler and Database Connection

查看:62
本文介绍了使用数据处理程序和数据库连接登录页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用数据处理程序和数据库连接类创建一个登录页面..在ASP.Net和C#(MSSQL)中

How to create a Login page by using Data Handler and Database Connection class.. in ASP.Net & C#(MSSQL)

推荐答案

我猜你想要不要从ajax调用数据处理程序。

如果是这样的话:
数据处理程序中的
设置response.contenttype =application / json

从上下文接收用户名和密码

构建查询并检查结果



在回复中你可以写真/假或任何其他数据。

此回复将通过您的ajax电话接收。







如果你想要别的东西,写下你想要的东西。
I guess that you wan''t to call data handler from ajax.
if so:
in data handler set response.contenttype = "application/json"
from context receive the username and password
build query and check the result

in the response you can write "true/false" or any other data.
this response will be received using your ajax call.



If you ment to something else, write what exactly you want.


这篇关于使用数据处理程序和数据库连接登录页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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