我只需要使用asp.net打印文本框中輸入數據庫名稱和我在.aspx代碼:SQL數據庫名稱ASP.net
<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">
歡迎使用堆棧溢出。訪問常見問題解答(http://stackoverflow.com/faq)查看該網站運行方式的詳細信息。 – 2010-11-20 14:35:54