Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > ASP.NET 4 General Discussion
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
ASP.NET 4 General Discussion For ASP.NET 4 discussions not relating to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 4 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 18th, 2012, 08:10 AM
Registered User
Points: 23, Level: 1
Points: 23, Level: 1 Points: 23, Level: 1 Points: 23, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Lagos, Lagos, Nigeria.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to dababy Send a message via Yahoo to dababy
Default CS0103: The name 'greencom' does not exist in the current context

I need help below is my snippet and my err msg.

sqlds1.InsertCommandType = SqlDataSourceCommandType.Text;
sqlds1.InsertCommand = "insert into Network (States,LGA,Glo,MTN,Airtel,Etisalat,Multilinks,Sta rcomms,Visafone,Zoom_mobile,Remarks)values(@countr yList,@stateList,@greencom,@mtngsm,@airtel,@etisal at,@multilinks,@starcomms,@visafone,@zoomm,@remark s)";
sqlds1.InsertParameters.Add("countryList", countryList.Text);
sqlds1.InsertParameters.Add("stateList", stateList.Text);
sqlds1.InsertParameters.Add("greencom", greencom.Text);
sqlds1.InsertParameters.Add("mtngsm", mtngsm.Text);
sqlds1.InsertParameters.Add("airtel", aritel.Text);
sqlds1.InsertParameters.Add("etisalat", etisalat.Text);
sqlds1.InsertParameters.Add("multilinks", multilinks.Text);
sqlds1.InsertParameters.Add("starcomms", starcomms.Text);
sqlds1.InsertParameters.Add("visafone", visafone.Text);
sqlds1.InsertParameters.Add("zoomm", zoomm.Text);
sqlds1.InsertParameters.Add("remarks", remarks.Text);
sqlds1.Insert();


Above is my snippets but its giving me compile Err. CS0103: The name 'greencom' does not exist in the current context
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
The name 'ErrorMessage' does not exist in the current context ken evans BOOK: Beginning ASP.NET 4 : in C# and VB 9 November 3rd, 2010 06:48 AM
The name 'ErrorMessage' does not exist in the current context ken evans BOOK: Beginning ASP.NET 4 : in C# and VB 0 November 2nd, 2010 11:07 AM
The name 'Request' does not exist in the current context janilane BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 2 July 13th, 2010 05:46 PM
The name 'partOneStep' does not exist in the current context pallone ASP.NET 3.5 Basics 11 March 4th, 2009 05:30 AM
The name 'txtOperande1' does not exist in the current context stevemcd999 BOOK: Beginning C# 3.0 : An Introduction to Object Oriented Programming ISBN: 978-0-470-26129-3 3 February 25th, 2009 11:58 PM



All times are GMT -4. The time now is 02:36 PM.


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