Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Matching end delimiter error

Status
Not open for further replies.

sthmpsn1

MIS
Sep 26, 2001
456
US
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=&quot;System.Data.sqlClient&quot; %>
<%@ import Namespace=&quot;System.Data&quot; %>
<%@ Page Language=&quot;vb&quot; Debug=&quot;true&quot; %>
<!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;>
<HTML>
<HEAD>
<title>Lets give it a try</title>
<script runat=&quot;server&quot;>
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.
&quot;SELECT * FROM Person&quot;, _
&quot;server=AM1ST_FS1;database=HRINFO;uid=sa;&quot;)
mySqlDataAdapter.Fill(myDataSet, &quot;Person&quot;)
PersonInfo.DataSource = myDataSet.Tables(&quot;Person&quot;)
PersonInfo.DataBind()
End Sub
</script>

</HEAD>
<body>
<form id=&quot;Form1&quot; method=&quot;post&quot; runat=&quot;server&quot;>
<h3>Editing Records in The DataGrid</h3>
<asp:DataGrid id=&quot;personInfo&quot; Runat=&quot;server&quot; />
</form>
</body>
</HTML>
 
Not sure for all the wrapping there. Try this and see if it works... just cleaning it up a bit, leaving less room for errors:

dim sql as new string(&quot;SELECT * FROM Person&quot;)
dim strCon as new string(&quot;server=AM1ST_FS1;database=HRINFO;uid=sa;&quot;)

dim mySqlDataAdapter as new sqlDataAdapter(sql,strCon)

hth :)
paul
penny1.gif
penny1.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top