Hi guys im testing out an asp.net script as im a newbie and am still learning. I’m running this on dreamweaver. Whenever i run the page. I get this error.
I’m actually trying to replicate this http://quickstarts.asp.net/QuickStartv20/util/srcview.aspx?path=~/aspnet/samples/data/GridViewBoundFields.src
with my own sql table and database.
<%@ Page Language="C#" %>
<html>
<head id="Head1" runat="server">
<title>GridView Bound Fields</title>
</head>
<body>
<form id="form1" runat="server">
<asp:GridView ID="GridView1" DataSourceID="SqlDataSource1" AutoGenerateColumns="False"
runat="server">
<Columns>
<asp:BoundField HeaderText="Course" DataField="Course" />
</Columns>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
SelectCommand="SELECT Course FROM tmdsi"
ConnectionString="<%$ ConnectionStrings: test%>" />
</form>
</body>
</html>
and my web config file is
<configuration>
<connectionStrings>
<add name="test"
connectionString="Server=myipaddress; port=3306;Integrated Security=True;
Database=test;User=test; Password=test;"
providerName="System.Data.SqlClient" />
</connectionStrings>
</configuration>

You have to give port separated by comma, read more about connection strings here
Change
To
Also change the CutomError mode to OFF to see what error exactly you are getting.