i was working on the radiobuttonlist and my database is in access i am facing a problem. in all other pages i was using the DataFile="C:\web\AUTH.mdb" code now in this one the code is not working
VB
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
Dim connectString As String = "ConnectionStrings:C:\web\AUTH.mdb"
If Not IsPostBack Then
AccessDataSource1.SelectCommand = "select pnumber,name,course from pdata"
GridView1.DataBind()
End If
End SubASPX
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="AccessDataSource1" </span>
DataMember="DefaultView" CellPadding="4" ForeColor="#333333"
GridLines="None" AllowSorting="True" style="font-size: small"><FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /><RowStyle BackColor="#F7F6F3" ForeColor="#333333" /><PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" /><SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" /><HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /><EditRowStyle BackColor="#999999" /><AlternatingRowStyle BackColor="White" ForeColor="#284775" /></asp:GridView><asp:AccessDataSource ID="AccessDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:C:\web\AUTH.mdb%>"></asp:AccessDataSource>eror comes that
The connection name 'The connection name 'C:\web\EME_AUTH.mdb' was not found in the applications configuration or the connection string is empty.' was not found in the applications configuration or the connection string is empty.