将 Access 数据库中的数据提取到 bootstrap 设计的面板中

Fetching data from Access Database into bootstrap designed panel

好的,事情是这样的。

<div class="thumbnail">
    <br />
    <legend><a href="#" style="text-decoration: none">*** VALUE ***</a></legend>
    <img src="http://lorempixel.com/200/200/abstract" alt="">
        <div class="caption">
        <h3>3rd September</h3>
        <p>
            Lorem ipsum dolor sit amet, consequatur ducimus. Necessitatibus, eaque laborum laudantium.
            Adipisci, explicabo, asperiores!
        </p>
        <p>
            First 255 character are written and others are put into...  
            <a data-toggle="modal" data-target="#modalpostexplore">View More</a>
        </p>
        <br />
        <p class="text-muted">
            #hash1 #hash2 #hash3 
            <a href="#" class="btn btn-danger btn-xs pull-right" role="button">
                <i class="glyphicon glyphicon-heart"></i>
            </a>
        </p>
    </div>
</div>

这是我用来显示我的提要的面板。 (这是一个实验性的社交网站) 我想做的是, 您如何将数据库连接到网站,以便我可以使用上面显示的 value 获取值?

我试过了,但我还在学习,所以我不能做太多。 任何帮助将不胜感激。 此外,整个模板将在发布新帖子时重复多次。我应该如何使用中继功能?

我建议使用 html class 中的追加方法,这里有一个很好的例子 http://www.aspsnippets.com/Articles/Display-data-from-database-in-HTML-table-in-ASPNet.aspx

好的。我知道了。 在您创建的面板上设置一个中继器。 然后在中继器属性中与数据库建立连接。

使用 <%#Eval("FIELD NAME")%> 应用文本。

看看这个视频: https://www.youtube.com/watch?v=in7-KEtyCpg