473,412 Members | 2,027 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,412 software developers and data experts.

3-Tier

public List<clsData.clsSchedulesData> GetProvidersList()
{
List<clsData.clsSchedulesData> Listproviders = new List<clsData.clsSchedulesData>();
DataSet ds = new DataSet();
string str = "select OrderId,CustomerId,EmployeeId,ShipName,ShipAddress ,ShipCity,ShipRegion,ShipCountry from Orders";
SqlDataAdapter da = new SqlDataAdapter(str,objHelper.GetConnection());
da.Fill(ds, "Orders");
if (ds.Tables["Orders"].Rows.Count > 0)
{
foreach(DataRow dr in ds.Tables["Orders"].Rows)
{
Listproviders.Add(dr["OrderId"].ToString());
//Listproviders.Add(dr["OrderId"].ToString());
//Listproviders.Add(ds.Tables["Orders"].Rows[0][0].ToString());
//Listproviders.Add(ds.Tables["Orders"].Rows[0][1].ToString());
//Listproviders.Add(ds.Tables["Orders"].Rows[0][2].ToString());
//Listproviders.Add(ds.Tables["Orders"].Rows[0][3].ToString());
//Listproviders.Add(ds.Tables["Orders"].Rows[0][4].ToString());
//Listproviders.Add(ds.Tables["Orders"].Rows[0][5].ToString());
//Listproviders.Add(ds.Tables["Orders"].Rows[0][6].ToString());
//Listproviders.Add(ds.Tables["Orders"].Rows[0][7].ToString());
}
}
return Listproviders;
}



I am getting error in this.May i know the reason?Can anybody help me
Oct 23 '07 #1
1 1036
kenobewan
4,871 Expert 4TB
What line and error are you receiving? I don't see this.May ;).
Oct 23 '07 #2

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

Similar topics

4
by: Peter Kaptein | last post by:
I am building websites using Databases and COM for 3tier apps. Currently I have to tell my COM object where the database is located either 1) Hardcoded in the DLL 2) Via my ASP call How do...
0
by: penglish1 | last post by:
Hi, I'm trying to get xmlrpc working with usernames and passwords and having some issues. This is on Linux (WBEL3.0R1). First of all with python 2.2.3 which comes with WBEL the following...
0
by: Takeshi | last post by:
Hi All, I am impressed with the aesthetic (UI) appeal of DotNet, but not by much else, like it's new fangled languages etc... I have a legacy C++ 3tier application, which uses C++ DLLs. I would...
8
by: M O J O | last post by:
Hi, I'm creating an CRM solution for my company. I want to split up the solution into several classlibraries, so I dont need to build the entire solution every time I run my project. First...
1
by: sups sups via .NET 247 | last post by:
Hi.. I have two tables one called State and the other called City. State City State_ID City_ID State_Name City_Nm State_ID and so on.. I have created 2 datagrids.
6
by: D Hass [MCP] | last post by:
Are there specific steps to optimizing and ASP.NET site versus other technologies? I have heard a lot of differing views and would like to obtain some concrete data. I have Googled Search Engine...
2
by: riga | last post by:
Hi, I was given an ASP.NET (C#) application to modify. The code looks really strange. It's supposed to do simple things but it has Facade/BusinessRules/Common/DataAccess layers. For example,...
4
by: alex | last post by:
I'm setting up a c# client/server application in a 3tier system. Everything from the business objects down through the DAL is stateless. This seems to work great for clustering but the...
19
by: Bryan | last post by:
Hi, I work for a company that is heading towards an FDA approved development process. We have always used C++ in a windows environment, and we have more than 6 years of code, applications and...
1
by: יוני גולדברג | last post by:
Hi, I've developed few asp 1.1 application, now I'm about to develop my first asp2.0 appliation. I'm afraid to use old techniques so I want to focus and learn the best Asp2.0 techniques. How do...
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...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.