【发布时间】:2010-11-20 14:31:48
【问题描述】:
我只需要使用 asp.net 在文本框中打印数据库名称,我有这样的 .aspx 代码:
<asp:TextBox ID="TextBox1" runat="server" DataSourceID="SqlDataSource2" ></asp:TextBox>
<asp:SqlDataSource ID="SqlDataSource2" runat="server"
ConnectionString="<%$ ConnectionStrings:testConnectionString %>"
SelectCommand="SELECT DB_NAME() AS DataBaseName">
【问题讨论】:
-
欢迎来到堆栈溢出。访问常见问题解答 (stackoverflow.com/faq) 以查看有关此站点运行方式的详细信息。