J
jason
Hello,
I have a script written in c# that is returning the following error:
Compiler Error Message: CS0246: The type or namespace name 'SqldbType'
could not be found (are you missing a using directive or an assembly
reference?)
It is failing on:
oCmd.Parameters.Add("@FirstName", SqldbType.VarChar, 30).Value =
DBNull.Value;
and here are the headers of the aspx file (code is inline):
<%@ Page language="c#" AutoEventWireup="true" debug=true %>
<%@ import Namespace="System" %>
<%@ import Namespace="System.Data" %>
<%@ import Namespace="System.Data.SqlClient" %>
<%@ import Namespace="System.Configuration" %>
<%@ import Namespace="System.Web" %>
Any ideas what might be causing this error?
I have a script written in c# that is returning the following error:
Compiler Error Message: CS0246: The type or namespace name 'SqldbType'
could not be found (are you missing a using directive or an assembly
reference?)
It is failing on:
oCmd.Parameters.Add("@FirstName", SqldbType.VarChar, 30).Value =
DBNull.Value;
and here are the headers of the aspx file (code is inline):
<%@ Page language="c#" AutoEventWireup="true" debug=true %>
<%@ import Namespace="System" %>
<%@ import Namespace="System.Data" %>
<%@ import Namespace="System.Data.SqlClient" %>
<%@ import Namespace="System.Configuration" %>
<%@ import Namespace="System.Web" %>
Any ideas what might be causing this error?