473,385 Members | 1,333 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.

VB to C# issue

Hi,

im converting a VB web app to a C#.

i have problem with the following line

ds.Tables[0].Rows[ind].Item["taskid"]

ERROR - 'System.Data.DataRow' does not contain a definition for 'Item'

whats the alternate that i can use?

please let me know
Thanks
Sep 12 '06 #1
4 2694
Arvi wrote:
i have problem with the following line

ds.Tables[0].Rows[ind].Item["taskid"]

ERROR - 'System.Data.DataRow' does not contain a definition for 'Item'

whats the alternate that i can use?
Try this:
ds.Tables[0].Rows[ind]["taskid"]

--
David Hogue
Sep 12 '06 #2
"Arvi" <ar**@cti.comwrote in message
news:eS**************@TK2MSFTNGP04.phx.gbl...
Hi,

im converting a VB web app to a C#.

i have problem with the following line

ds.Tables[0].Rows[ind].Item["taskid"]

ERROR - 'System.Data.DataRow' does not contain a definition for 'Item'

whats the alternate that i can use?

please let me know
without trying it I would presume you just drop the .Item

ds.Tables[0].Rows[ind]["taskid"]
>

Thanks


Sep 12 '06 #3
Arvi,

In addition to the others in VB.Net you can drop that "item" as well, it is
the default property.

Cor

"Arvi" <ar**@cti.comschreef in bericht
news:eS**************@TK2MSFTNGP04.phx.gbl...
Hi,

im converting a VB web app to a C#.

i have problem with the following line

ds.Tables[0].Rows[ind].Item["taskid"]

ERROR - 'System.Data.DataRow' does not contain a definition for 'Item'

whats the alternate that i can use?

please let me know
Thanks


Sep 13 '06 #4
Thanks a lot.
"Cor Ligthert [MVP]" <no************@planet.nlwrote in message
news:Oq**************@TK2MSFTNGP05.phx.gbl...
Arvi,

In addition to the others in VB.Net you can drop that "item" as well, it
is the default property.

Cor

"Arvi" <ar**@cti.comschreef in bericht
news:eS**************@TK2MSFTNGP04.phx.gbl...
>Hi,

im converting a VB web app to a C#.

i have problem with the following line

ds.Tables[0].Rows[ind].Item["taskid"]

ERROR - 'System.Data.DataRow' does not contain a definition for 'Item'

whats the alternate that i can use?

please let me know
Thanks



Sep 14 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Paul Mateer | last post by:
Hi, I have been running some queries against a table in a my database and have noted an odd (at least it seems odd to me) performance issue. The table has approximately 5 million rows and...
7
by: George Hester | last post by:
Please take a look at this google artcle: http://groups.google.com/groups?hl=en&lr=&frame=right&th=55d6f4b50f5f9382&seekm=411f370d%241%40olaf.komtel.net#link9 The op was having trouble with...
2
by: Anthony Cuttitta Jr. | last post by:
We have an application that outputs several different graphs from data downloaded from our AS400. The application has worked without (this) issue for several months now, but just recently, the...
0
by: Kevin Spencer | last post by:
Hi all, I am working on a service that uploads METAR weather information to the National Weather Service FTP site. The service I'm authoring is hosted on a Windows 200 server, and the NWS FTP...
2
by: Ben Rush | last post by:
Hello World, Okay, I have spent the day browsing the newsgroups and reading up on article after article concerning ViewState corruption and so forth, and I have a couple questions. We...
5
by: Robert | last post by:
I have a series of web applications (configured as separate applications) on a server. There is a main application at the root and then several virtual directories that are independant...
0
by: Charles Leonard | last post by:
I am having yet another issue with Windows Server 2003. This time, the web service (a file import web service) appears to run except for one odd message: "ActiveX component can't create object". ...
4
by: Paul | last post by:
Hi, I've been struggling with this today, I'm developing a DotNet2.0 website in C# that needs to call a long running data query. Obviously this is a good candidate for an Asynchronous call, so...
1
by: AlekseyUS | last post by:
Hi, I'm a little stuck, I basically need to copy all the information within a specific file in Temp and append it to a file in another location. I'm not having any problems with smaller size...
13
by: SAL | last post by:
Hello, I'm trying to include a popup in the ItemTemplate of a gridview row. The ItemTemplate for the field contains a textbox and when the user clicks in the textbox I want a popup panel to show...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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: 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...

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.