I am working with my first ASP.NET program. This is actually a tutorial on dotnetjunkies. I am getting a Matching end delimiter " not found in connection option value. I am not sure what this means. What am I missing? I have indicated which line below
<%@ import Namespace="System.Data.sqlClient" %>
<%@ import Namespace="System.Data" %>
<%@ Page Language="vb" Debug="true" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>Lets give it a try</title>
<script runat="server">
Public Sub Page_Load(Source as Object, E As EventArgs)
if Not Page.IsPostBack Then
BindData()
End If
End Sub
Public Sub BindData()
Dim myDataSet as New DataSet
Dim mySqlDataAdapter as SqlDataAdapter
mySqlDataAdapter = New SqlDataAdapter( _ 'Error message in this line.
"SELECT * FROM Person", _
"server=AM1ST_FS1;database=HRINFO;uid=sa;"
mySqlDataAdapter.Fill(myDataSet, "Person"
PersonInfo.DataSource = myDataSet.Tables("Person"
PersonInfo.DataBind()
End Sub
</script>
</HEAD>
<body>
<form id="Form1" method="post" runat="server">
<h3>Editing Records in The DataGrid</h3>
<aspataGrid id="personInfo" Runat="server" />
</form>
</body>
</HTML>
<%@ import Namespace="System.Data.sqlClient" %>
<%@ import Namespace="System.Data" %>
<%@ Page Language="vb" Debug="true" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>Lets give it a try</title>
<script runat="server">
Public Sub Page_Load(Source as Object, E As EventArgs)
if Not Page.IsPostBack Then
BindData()
End If
End Sub
Public Sub BindData()
Dim myDataSet as New DataSet
Dim mySqlDataAdapter as SqlDataAdapter
mySqlDataAdapter = New SqlDataAdapter( _ 'Error message in this line.
"SELECT * FROM Person", _
"server=AM1ST_FS1;database=HRINFO;uid=sa;"
mySqlDataAdapter.Fill(myDataSet, "Person"
PersonInfo.DataSource = myDataSet.Tables("Person"
PersonInfo.DataBind()
End Sub
</script>
</HEAD>
<body>
<form id="Form1" method="post" runat="server">
<h3>Editing Records in The DataGrid</h3>
<aspataGrid id="personInfo" Runat="server" />
</form>
</body>
</HTML>