This code below is about AJAX. Where I need to put this code? .aspx?
I'm trying to put in .aspx...But become error..
<%
Dim sql, conn, rs, x
response.expires=-1
sql="SELECT * FROM CUSTOMERS WHERE CUSTOMERID="
sql=sql & "'" & request.querystring("q") & "'"set conn=Server.CreateObject("ADODB.Connection")
conn.Provider="Microsoft.Jet.OLEDB.4.0"
conn.Open(Server.Mappath("/db/northwind.mdb"))
set rs = Server.CreateObject("ADODB.recordset")
rs.Open sql, connresponse.write("<table>")
do until rs.EOF
for each x in rs.Fields
response.write("<tr><td><b>" & x.name & "</b></td>")
response.write("<td>" & x.value & "</td></tr>")
next
rs.MoveNext
loopresponse.write("</table>")
%>
To be honest..I'm new generation about programming..So, help me please..
Hi,
I suggest you learn fromhttp://www.asp.net/ajax/.
Good luck!
No comments:
Post a Comment