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

Please help - .Net problem

Edb
Hi Everyone,
I have been researching this for days. Brain is
simply without any excitement on this.

I have a Login page in .Net. It does see my Username and
Password in SQL and transfers me to the next page.

I need to grab 2 fields (FirstName / Lastname) based on
the Username and Password and place it into a Label.

The Label name is lbl_manager and thought this was going
to work but it does not.

lbl_manager.text = ds.Tables("Return_Set").Rows(0).Item
("BD_Mgr_Fname") & ds.Tables("Return_Set").Rows(0).Item
("BD_Mgr_lname")

I get this error "Object refernce not set to an instance
of an object".

Please help :)
thx,
Ed
Jul 21 '05 #1
1 1209
Check the spelling of your table names and columns. Using named columns
probably isn't the best way to go about this..but you need help not a
lecture.

Debug.Assert the fields first, it'll blow up I'm guessing. It's got to be
on the tablename or Column reference. Also, try
Debug.Assert(ds.Tables.Count > 0) and see if the assertion works. Looks
like something wasn't instantiated.

Edb..post the whole snippet if this doesn't work, but if you are sure this
is the line throwing the exception...the datatable and/or column reference
is the most likely culprit.

HTH,

Bill
"Edb" <m1**@dm2000.com> wrote in message
news:67****************************@phx.gbl...
Hi Everyone,
I have been researching this for days. Brain is
simply without any excitement on this.

I have a Login page in .Net. It does see my Username and
Password in SQL and transfers me to the next page.

I need to grab 2 fields (FirstName / Lastname) based on
the Username and Password and place it into a Label.

The Label name is lbl_manager and thought this was going
to work but it does not.

lbl_manager.text = ds.Tables("Return_Set").Rows(0).Item
("BD_Mgr_Fname") & ds.Tables("Return_Set").Rows(0).Item
("BD_Mgr_lname")

I get this error "Object refernce not set to an instance
of an object".

Please help :)
thx,
Ed

Jul 21 '05 #2

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

Similar topics

21
by: Applebrownbetty | last post by:
Hi, I've run into a problem with IE 6 vs. Mozilla when displaying a completely CSS positioned page, and was wondering if any resident CSS guru might quickly be able to find the problem(s). Thank...
0
by: Kurt Watson | last post by:
I’m having a different kind of problem with Hotmail when I sign in it says, "Web Browser Software Limitations Your Current Software Will Limit Your Ability to Use Hotmail You are using a web...
4
by: pshindle | last post by:
DB2 Team - I just downloaded and unzipped the new Fixpack 9 for DB2 ESE V8 for Windows (FP9_WR21350_ESE.exe). I then burned the unzipped Fixpack files to a CD. I proceded to install this...
23
by: Jason | last post by:
Hi, I was wondering if any could point me to an example or give me ideas on how to dynamically create a form based on a database table? So, I would have a table designed to tell my application...
2
by: Carlo, MCP | last post by:
Hi, Sorry for posting twice, but I hope in your comprehension. Please help me! I'm troubling from months with a serious serialization problem that I'm not able to solve. I try to describe as...
1
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
1
by: funfair | last post by:
HI,EVERY ONE first problem, i have create a database in access 2003 it worked fine untill i have format my laptop . now im working on office 2003 on windows xp and i have norton 2006 but im...
1
by: oldgent | last post by:
I am having a problem installing the starter kits. I have reinstalled VS 2005, think that might be the problem. I then installed both 'Personal Website" and the "Club Website" starter kits. I...
1
PEB
by: PEB | last post by:
POSTING GUIDELINES Please follow these guidelines when posting questions Post your question in a relevant forum Do NOT PM questions to individual experts - This is not fair on them and...
2
by: violeta123 | last post by:
I am stuck! Please help It might be difficult to explain the problem via email, but I will try. I have a Win 2003 Enterprise server running with the only purpose of a membership web site...
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: 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...
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...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...

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.