guys lease help...i dont have data adapter in my toolbox under data...kindly tell me wat to do
i am missing a data adapter option from my toolbox
Started by elizabethmwashuma, May 26 2010 01:03 AM
9 replies to this topic
#1
Posted 26 May 2010 - 01:03 AM
|
|
|
#2
Posted 26 May 2010 - 03:36 AM
Huh DataAdapter ? :p
what are you using Visual Studio 2008 ? what sort of project are you working on Windows / ASP.NET ?
ASP.NET does not come with data adapter control.You need to create dataadapter's via Code.
Windows forms,then try resetting the toolbox once.
Right Click ToolBox --> [Reset ToolBox]
what are you using Visual Studio 2008 ? what sort of project are you working on Windows / ASP.NET ?
ASP.NET does not come with data adapter control.You need to create dataadapter's via Code.
Windows forms,then try resetting the toolbox once.
Right Click ToolBox --> [Reset ToolBox]
#3
Posted 26 May 2010 - 10:16 PM
i am using visual studio 2005...ma trying to connect c# to access database but am having errors....object string not set to an instance of an object...ok thats problem number two but then my toolbox does not contain an oledb adapter, oledb connection .....how else will i connect the database to my application...am using ms access 2007...kindly help
regards
mwashuma
regards
mwashuma
#4
Posted 27 May 2010 - 02:40 AM
Visual Studio 2005 doesn't have the .NET Framework 3.5, and some components might be missing. I suggest using Visual C# Express 2008 or 2010. I am not sure on my answer, but you can try right-clicking on the toolbox and selecting "Choose Items". In the window that appears, search for your data adapter.
Are you a newbie programmer trying to learn C#? Check out my small tutorial: Visual C# Programming Basics
#5
Posted 27 May 2010 - 02:43 AM
OK this is what you need to do to get the OleDbAdapter back into the ToolBox.
1.Right Click in 'General' in Tool Box
2.Select 'Choose Items'
3.Wait for some time ,have a coffee
4.A dialog box is shown.
Select '.NET Framework Components' in the Tab
In the 'Filter' Textbox type 'Ole' now you will have 'OleDBDataAdapter' listed last in the above listview.
5.Put a Checkmark & click OK.
you are done
1.Right Click in 'General' in Tool Box
2.Select 'Choose Items'
3.Wait for some time ,have a coffee
4.A dialog box is shown.
Select '.NET Framework Components' in the Tab
In the 'Filter' Textbox type 'Ole' now you will have 'OleDBDataAdapter' listed last in the above listview.
5.Put a Checkmark & click OK.
you are done
#6
Posted 27 May 2010 - 02:46 AM
Keep in mind that you might need .NET Framework 3.5 though.
Are you a newbie programmer trying to learn C#? Check out my small tutorial: Visual C# Programming Basics
#7
Posted 27 May 2010 - 02:47 AM
GokuaJmes's answer is good and more explicit indeed.
Are you a newbie programmer trying to learn C#? Check out my small tutorial: Visual C# Programming Basics
#8
Posted 27 May 2010 - 02:47 AM
Good luck with the project!
Are you a newbie programmer trying to learn C#? Check out my small tutorial: Visual C# Programming Basics
#9
Posted 27 May 2010 - 04:23 AM
hey you are the best...it worked.....VRY GREATFULL..................to the second problem, i cannot use the data adapter,i.e. when i create a new connection and i test the connection, i get invalid authorization specification.
wat do i do.....am trying to connect csharp to access database...kindly show me the steps especially on the design form. i also need help in knowing what to code ...am getting errors. unhandled exception especially object reference not set to an instance of an object, or System.InvalidCastException: Specified cast is not valid....please assist
regards
mwashuma
wat do i do.....am trying to connect csharp to access database...kindly show me the steps especially on the design form. i also need help in knowing what to code ...am getting errors. unhandled exception especially object reference not set to an instance of an object, or System.InvalidCastException: Specified cast is not valid....please assist
regards
mwashuma
#10
Posted 27 May 2010 - 05:15 AM
"object reference not set to an instance of an object"
This happens if you have an array and tried to get a value from an index that doesn't exist. Like, you have an array: string[] myArray = new string[5]; Obviously myArray[6] won't work.
On the design form, go to your dataGridView and click on DataSource. Select your database once you get there.
"System.InvalidCastException: Specified cast is not valid"
No idea, please past troublesome code.
This happens if you have an array and tried to get a value from an index that doesn't exist. Like, you have an array: string[] myArray = new string[5]; Obviously myArray[6] won't work.
On the design form, go to your dataGridView and click on DataSource. Select your database once you get there.
"System.InvalidCastException: Specified cast is not valid"
No idea, please past troublesome code.
Are you a newbie programmer trying to learn C#? Check out my small tutorial: Visual C# Programming Basics


Sign In
Create Account


Back to top









