I need help with this error. I am new to .net..Thanks all.
Compiler Error Message: CS1002: ; expected
Source Error:
Line 4:
Line 5: <script runat="server">
Line 6: sub Page_Load
Line 7: dim dbconn,sql,dbcomm;
Line 8: dbconn=new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;data source=" & server.mappath("s.mdb"))
The problem is your project is setup as a C# project, and you are trying to use VB.NET to code in. C#, unlike VB does not end lines of code on hard returns, but rather ends lines of code using ;.
Bookmarks