Cannot open database "XXX" requested by the login. The login failed
<p>i'm learning asp.net, i want to write a aspx to connect db, but got errors, the following is the aspx code</p>

<pre><code>&lt;script runat="server"&gt;

&lt;/script&gt;

&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head runat="server"&gt;
    &lt;title&gt;&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;form id="form1" runat="server"&gt;
    &lt;div&gt;

    &lt;/div&gt;
    &lt;asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="&lt;%$ ConnectionStrings:new_Ch11ConnectionString %&gt;" 
        ProviderName="&lt;%$ ConnectionStrings:new_Ch11ConnectionString.ProviderName %&gt;" 
        SelectCommand="SELECT [book_no], [book_name], [price] FROM [book]"&gt;
    &lt;/asp:SqlDataSource&gt;
    &lt;asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="book_no" DataSourceID="SqlDataSource1"&gt;
        &lt;Columns&gt;
            &lt;asp:BoundField DataField="book_no" HeaderText="book_no" InsertVisible="False" 
                ReadOnly="True" SortExpression="book_no" /&gt;
            &lt;asp:BoundField DataField="book_name" HeaderText="book_name" 
                SortExpression="book_name" /&gt;
        &lt;/Columns&gt;
    &lt;/asp:GridView&gt;

    &lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>the web.config</p>

<pre><code>&lt;?xml version="1.0"?&gt;
&lt;configuration&gt;
    &lt;connectionStrings&gt;
        &lt;add name="new_Ch11ConnectionString" connectionString="Data Source=RAY-PC\SQLEXPRESS;Initial Catalog=new_Ch11;Integrated Security=True;"
            providerName="System.Data.SqlClient"  /&gt;
    &lt;/connectionStrings&gt;
    &lt;system.web&gt;
        &lt;compilation debug="false" targetFramework="4.0" /&gt;
    &lt;/system.web&gt;
&lt;/configuration&gt;
</code></pre>

<p>i found a lot of solution on internet and tried. But not work!! Anyone can help?</p>
