473,385 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How to retrieve data from oracle database to Visual Studio -2005 asp.net grid view?

how can I retrieve data from oracle database to Visual Studio -2005 asp.net grid view.

Expand|Select|Wrap|Line Numbers
  1. connection.Open()
  2.  
  3.  
  4. string sql = "select * from departments where department_id < 60"
  5. cmd = new OracleCommand(sql, conn)
  6. cmd.CommandType = CommandType.Text;
  7.  
  8. da = new OracleDataAdapter(cmd)
  9. cb = new OracleCommandBuilder(da)
  10. ds = new DataSet()
  11.  
  12. da.Fill(ds)
  13.  
  14. gridname.DataSource = ds.Tables[0]
  15.  
I use above coding but no data show in grid and also no error found.

Thanks,
MichaelTun
Oct 22 '10 #1
0 1388

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Nadav Popplewell | last post by:
Hi everybody, I've install Visual studio Team Edition for Testers on my computers, And I can't seem to find how to show the toolbox. The documenation says there should be a 'Toolbox' menuitem...
1
by: scott | last post by:
Hi, In visual studio 2005 I create a website project, create a new aspx page (web form), add a GridView (data populated from SQL 2000 db). I would like the user to have the ability to change...
0
by: innovasys | last post by:
TORQUAY, DEVON, UK - Innovasys announced the release of Document! X 5, the fifth version of the documentation solution of choice for developers using Microsoft Visual Studio or the .NET Framework....
1
by: Bishoy George | last post by:
Hi All, We used to see xml in visual studio 2003 under 2 tabs XML & Data; one for xml text and the other for Table Data View of xml. In Visual Studio 2005 that doesn't appear any more, only...
18
by: surfrat_ | last post by:
Hi, I am having the following problems in getting Microsoft Visual Studio 2005 Professional to link to an Access .mdb database. Please help me to sort this out. Problem 1: The Microsoft...
3
by: Rolf Welskes | last post by:
Hello, this is a hint only. If you make a custom control for example witch generates code <div......</div> and I put such a control in a page then in html-view of the aspx-file I could...
0
by: =?Utf-8?B?U2VhbjUwMQ==?= | last post by:
I'm trying to use a Web Service as a Data Source for a Windows Application in Visual Studio 2005. The Web Service returns a strongly typed DataSet, and works fine with web pages. I've added a web...
0
by: Steve Kershaw | last post by:
Hi, I'm working on Saturday trying to get this project out on time (I'm already late). I need to set up Visual Studio 2005 on another machine with Oracle Explorer installed. When Oracle...
0
by: Steve Kershaw | last post by:
Hi, I've had Oracle Explorer set up on my instance of Visual Studio 2005 so that when I click View and Oracle Explorer the Oracle Explorer toolbox is displayed. Now it doesn't work! When I click...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.