"Could not load" parse error

N

.Net Sports

I'm trying to build a datagrid project in vs.net, and getting an error
that doesnt make sense:
\\\\\\\\\\\\\\

Could not load type 'SportsMProject.btresults2a'.

Source Error:

Line 1: <%@ Import Namespace="System.Data.SqlClient"%>
Line 2: <%@ Import Namespace="System.Data"%>
Line 3: <%@ Page language="c#" AutoEventWireup="true"
CodeBehind="btresults2a.aspx.cs" Inherits="SportsMProject.btresults2a"
%>
\\\\\\\\\\\\\\\\\\

my page directives are all correct, namespaces are correct, and looking
in my vs.net Task List/Build Error screen, I get :
C:\SportsMSolution\SportsMProject\btresults2a.aspx.cs(92): A local
variable named 'objConn' cannot be declared in this scope because it
would give a different meaning to 'objConn', which is already used in a
'parent or current' scope to denote something else

....but I'm declaring my connection variable just like everything else
??????????????
..netsports
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,781
Messages
2,569,615
Members
45,301
Latest member
BuyPureganics

Latest Threads

Top