VB.NET,获取网页以显示存储在数据库表中的数据 [英] VB.NET, get webpage to display data stored in a database table

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

问题描述

除了普通的HTML和CSS之外,我是所有形式的Web开发的完整而全面的初学者.请保持温柔,并用小词!! :-)

我最近安装了Microsoft的Visual Web Developer 2010 Express,目的是学习小型网站如何利用VB.NET和SQL Server Compact.

我想要实现的是一个小的页面,其中包含2或3个表单字段,我可以在其中输入文本.当我单击一个按钮时,此文本将存储到数据库的一个表中(到目前为止,我认为我已经取得了很多成就).

除了上面的内容(这是我正在努力的事情),我想在HTML下方包含2或3个段落,这些段落显示了我刚刚上传到数据库中的数据.

我目前不知道如何获取段落以查看数据库,提取数据并在网页上显示.

最终的想法是,我可以有一个网页,有人可以在其中输入数据,而另一个网页显示刚输入到数据库中的数据.几乎就像一个非常非常基本的CMS系统,该网页仅在表中显示了最新的数据条目.

请问有人愿意帮忙吗,因为我不知道如何实现这一目标!

非常感谢.

I am a complete and total beginner to web development in all forms other than mediocre HTML and CSS. Please be gentle and use small words!! :-)

I have recently installed Microsoft''s Visual Web Developer 2010 Express in order to have a go at learning how a small website might make use of VB.NET and SQL Server Compact.

What I''d like to achieve is a small single page with 2 or 3 form fields in which I can enter text. When I click a button this text is stored into a table in the database (this much I think I have achieved so far).

In addition to the above (and this is the bit I am struggling with), I''d like to have 2 or 3 paragraphs in the HTML below which display the data I''ve just uploaded to the database.

I currently have no idea how to get the paragraphs to look at the database, extract the data and display in on the webpage.

The end idea is that I can have one webpage where someone can input the data, and another webpage which displays the data that has just been entered to the database. Almost like a very VERY basic CMS system where the webpage only ever displayed the most recent entry of data in the table.

Would anyone be kind enough to help with this please because I''ve not got a clue how to achieve this!

Many thanks.

推荐答案

您可以从这里开始...

http://www.asp.net/web-forms/videos/aspnet-dynamic-data [ ^ ]

或者如果您需要使用任何电子书,请 ASP.NET Unleas 4.0 [^ ]是学习基础知识的好书
you can start from here...

http://www.asp.net/web-forms/videos/aspnet-dynamic-data[^]

or if you need to use any ebook then ASP.NET Unleas 4.0[^] is great book for learning basic things


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

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