Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 8th, 2005, 10:45 AM
Authorized User
 
Join Date: Apr 2005
Posts: 73
Thanks: 0
Thanked 0 Times in 0 Posts
Default Compiler Error BC30456

I'm experiencing the following compiler error:

Compiler Error Message: BC30456: 'Data' is not a member of 'String'.

Source Error:
Line 168: dbParam_system.ParameterName = "@System"
Line 169: dbParam_system.Value = system
Line 170: dbParam_system.DbType = System.Data.DbType.String
Line 171: dbCommand.Parameters.Add(dbParam_system)
Line 172:

I've tried to resolve the error, and I have googled away to no avail, could someone please help me?
As always any help is greatly appriciated.

D

 
Old November 8th, 2005, 05:54 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

Could this be your problem?:
dbParam_system.Value = system

Is system a variable you declared? Probably not a good idea since it is a reserved word.



 
Old November 9th, 2005, 06:13 AM
Authorized User
 
Join Date: Apr 2005
Posts: 73
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks jbenson001,
that was my problem, having a reserved word and a varible the same name

Doh..

 
Old November 9th, 2005, 11:30 AM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

No problem, glad it helped you...

Jim






Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiler Error Message: BC30456: 'dgproducts_editc sunitha50 ASP.NET 2.0 Basics 0 February 27th, 2007 12:43 PM
old compiler seems to work but still is 1 error stevecist ASP.NET 1.0 and 1.1 Basics 1 January 24th, 2007 06:59 PM
Compiler Error Message: BC30456: crmpicco ASP.NET 2.0 Basics 3 November 30th, 2006 07:40 AM
Compiler Error Message: BC30456 yaip All Other Wrox Books 6 October 12th, 2006 02:56 PM
error BC30456 Raalnan5 ASP.NET 1.0 and 1.1 Basics 0 May 11th, 2006 01:11 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.