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 June 8th, 2006, 07:49 AM
Authorized User
 
Join Date: Dec 2005
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default ANY HELP WITH SQL??? ERROR

ANY HELP WITH SQL??? ERROR PLEASE GIVE ME A HINT.

Compiler Error Message: CS0117: 'System.Web.UI.WebControls.DropDownList' does not contain a definition for 'Text'

Source Error:

Line 27: string reg;
Line 28: reg = "INSERT INTO creditcard( [Card name], [Card type], [Expire date], [Card no:])";
Line 29: reg += " VALUES ('" + CardName.Text + "','" + CardType.Text + "','" + ExpiryDate.Text + "','" + CardNo.Text + "');";

 
Old June 8th, 2006, 09:13 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 599
Thanks: 6
Thanked 3 Times in 3 Posts
Default

It looks like you have one of these variables defined as a DropDownList. Which ever one it is you need to get the value by using for example:

CardName.SelectedValue

??






Similar Threads
Thread Thread Starter Forum Replies Last Post
SQL Server Reg. SQL Server does not exist error Arsi SQL Server 2000 1 June 11th, 2008 11:20 AM
error sql! hamai VS.NET 2002/2003 0 April 20th, 2007 04:14 PM
SQL Error. akhilhp ASP.NET 2.0 Basics 1 January 23rd, 2007 08:46 AM
SQL Error fs22 ASP.NET 2.0 Basics 1 August 2nd, 2006 01:07 AM
SQL ERROR IN C# divyak02 C# 5 December 11th, 2005 12:35 AM





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