来自javascript的数据库连接 [英] database connection from javascript
本文介绍了来自javascript的数据库连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
hi ..
任何人都可以给我打电话,以使用javascript插入表,更新表的方式来连接sql数据库..急切地等待您的答复..
hi..
anyone can tel me the way to connect the sql database using javascript to insert the table,update the table.. eagerly waiting for ur replies..
推荐答案
您不应使用客户端javascript访问数据库......... [此处 [
Here you go
You shouldn''t use client javascript to access databases for.........[^]
Also
Remember that ActiveX objects must(Which you are using to connect the DB by javascript):
1. Will only work in Internet Explorer.
2. Must be installed on EACH client''s computer.
3. Must have the proper permissions for the browser to access them.
For more details here[^]
您不能直接从JavaScript连接到数据库.您必须使用PageMethod或其他AJAX方法来调用将建立数据库连接的服务器端代码
You can''t connect to a database directly from JavaScript. You must use something PageMethod or other AJAX methodology to call server-side code which would make the database connection
这篇关于来自javascript的数据库连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文