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

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 1207
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
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: 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: 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:
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
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: 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...

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.