从数据库中获取数据并存储在aspx页的html表中 [英] fetch data from database and store in html table at aspx page

查看:90
本文介绍了从数据库中获取数据并存储在aspx页的html表中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在aspx页面上创建了一个表,我想从sql数据库中获取数据并将其存储在表中,因为它没有id

i have created a table at aspx page and i want to fetch data from sql database and store in table how i will do this because it does not have id

推荐答案

我已经在aspx页面上创建了一个表,我想从sql数据库中获取数据并将其存储在表中,因为它没有id,所以我将如何做到这一点
有什么问题?如果需要,您需要一个ID来唯一标识一行,这样就可以按原样检索数据.

使用连接字符串 [ ^ ],然后获取数据.关于数据通信,请阅读此处:使用ADO.NET访问数据 [ ^ ]
i have created a table at aspx page and i want to fetch data from sql database and store in table how i will do this because it does not have id
What''s the problem? You need an ID for unique identification of a row if needed, as such it''s fine for retrieving data as is.

Connect DB by using a Connection String[^] and then get data. Regarding the data communication read here: Accessing data with ADO.NET[^]


这篇关于从数据库中获取数据并存储在aspx页的html表中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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