将数据库中的内容显示在网页上而不使用标签和图像工具 [英] displaying contents from database onto the webpage without using labels and image tools

查看:75
本文介绍了将数据库中的内容显示在网页上而不使用标签和图像工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我是faizel,我是一名做网站应用程序的自由职业者。我只是c#的初学者,我正在做一个开源网站。所以我想要显示全部我已经存储到sql数据库中的东西,其中包括文本,以字节为单位的图像到我的网页上。现在我使用了标签和图像,我已经从数据库中分配了内容,如label.text = dt.rows [0] [0]。 toString()。在开源中你知道你不能做这样的事情,因为数据库可能有大量的内容无法使用上述方法显示。所以任何人都可以告诉我如何将数据库中的图像和文本动态显示到网页上喜欢facebook.Thank你提前和上帝保佑你

Hi Everybody,
I am faizel, and i am a freelancer doing an website applications.i am just a beginner in c# and i am doing an open source website.so i want to display all the things i have stored into sql database which includes text,images in bytes onto my webpage.right now i have used labels and images to which i have assigned contents from database like label.text=dt.rows[0][0].toString().In open source u know that you cannot do such thing because the database might have large no of contents which cannot be displayed using above method.So can anyone tell me how to display images and texts from database dynamically onto the webpage just like facebook.Thank you in advance and god bless you

推荐答案

一些快速启动你..

C#从数据库保存并加载图像 [ ^ ]

http://stackoverflow.com/questions/4417609/display-information-from-sql-db-to-asp-net-webpage [ ^ ]

http://www.asp.net/mvc/tutorials/older-versions/models-%28data%29/displaying-a-table-of-database-data-cs [ ^ ]
Some quick start for you..
C# Save and Load Image from Database[^]
http://stackoverflow.com/questions/4417609/display-information-from-sql-db-to-asp-net-webpage[^]
http://www.asp.net/mvc/tutorials/older-versions/models-%28data%29/displaying-a-table-of-database-data-cs[^]


看看这些

初学者指南通过C#唱歌SQL Server [ ^ ]



如何从C#连接到SQL数据库? [ ^ ]



SqlCommand - ExecuteNonQuery [ ^ ]
have a look at these
Beginners guide to accessing SQL Server through C#[^]

How do i connect to a SQL database from C#?[^]

SqlCommand - ExecuteNonQuery[^]


这篇关于将数据库中的内容显示在网页上而不使用标签和图像工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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