本文介绍了检查表中是否存在数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
我有logout.aspx页,当有人单击注销时,它将在数据库中检查用户是否输入了时间,否则将引发错误.
我想要使用javascript进行SQL查询.
有人可以帮我吗.
Hi
I have logout.aspx page in which when someone clicks the logout then it will check in database whether time is entered by the user and if not it will throw an error.
I want sql query for this using javascript.
can somebody help me in this.
推荐答案
在WebService.aspx页中创建CheckLogout 网络方法,然后返回结果
Create a CheckLogout web method in WebService.aspx page and return result
[System.Web.Services.WebMethod]
public static String CheckLogout()
{
// return result
}
这篇关于检查表中是否存在数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!