posabsolute/jQuery-Validation-Engine — Issue #208: AjaxCall with Asp
Author: gakdoru
Created: 2011-11-16 12:28:35+00:00
State: open

Thank you for jquery validation engine.
I'm creating a project with classic ASP. All the examples that you provide about ajax is in php language. I'm giving you an example working with ajax in ASP language. I hope I'll help anyone.
Create a asp page without html tags. An paste this code.

<%
fieldValue = request.querystring("fieldValue")
fieldId = request.querystring("fieldId") 'txtfieldname
extraData = request.QueryString("extraData") ' for extra data validation. I'dont use it.
'IF you type gokay in textbox returns as alertTextOk Message.

if fieldValue <> "" Then

if fieldValue = "gokay" then
response.Write "["""& fieldId &""",true]"
Else
response.Write "["""& fieldId &""",false]"
End if
Else
response.Write "["""& fieldId &""",false]"
End if
%>