连接到asp.net中的数据库 [英] connecting to database in asp.net

查看:78
本文介绍了连接到asp.net中的数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请,我正在开发使用数据库的网站数据,而我正在使用asp.net.我使用vb.net编码方法,并且可以工作,但是我不确定将aspx扩展名更改为.htm时是否能工作,或者是否存在将html页面连接到数据库的另一种方法.

我需要使用html时如何连接数据库的帮助.

please, i am developing a website data require using a database, where i am using asp.net. i use the vb.net coding method and it work, but i am not sure if it will work when i change the aspx extension to .htm, or is there another way of connecting html pages to database.

i need help on how to connect to database while using html.

推荐答案

HTML是静态页面,如果要使用数据库,则需要创建经典的ASP或PHP或jsp或.NET页面.


请检查以下链接以获取经典的ASP/数据库教程:
http://www.w3schools.com/asp/asp_ado.asp

.NET教程
http://www.w3schools.com/aspnet/aspnet_dbconnection.asp
HTML are static pages, if you want to use database then you need to create classic asp or php or jsp or .NET pages.


Please check the following link for classic asp/database tutorial:
http://www.w3schools.com/asp/asp_ado.asp

.NET tutorial
http://www.w3schools.com/aspnet/aspnet_dbconnection.asp


这篇关于连接到asp.net中的数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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