Click here to Skip to main content
15,895,848 members
Home / Discussions / Database
   

Database

 
GeneralRe: self referencing table SELECT issue Pin
Harvey Saayman17-Feb-08 19:00
Harvey Saayman17-Feb-08 19:00 
GeneralString concatentaion on update query Pin
si_6915-Feb-08 1:16
si_6915-Feb-08 1:16 
GeneralRe: String concatentaion on update query Pin
Joe15-Feb-08 1:23
Joe15-Feb-08 1:23 
GeneralRe: String concatentaion on update query Pin
seta_yas17-Feb-08 18:19
seta_yas17-Feb-08 18:19 
Generalmonitor sql db connections Pin
Harvey Saayman14-Feb-08 22:24
Harvey Saayman14-Feb-08 22:24 
GeneralRe: monitor sql db connections Pin
Mike Dimmick14-Feb-08 23:59
Mike Dimmick14-Feb-08 23:59 
GeneralRe: monitor sql db connections Pin
Harvey Saayman15-Feb-08 0:12
Harvey Saayman15-Feb-08 0:12 
GeneralFreaky reader Error [Solved] Pin
Harvey Saayman14-Feb-08 22:22
Harvey Saayman14-Feb-08 22:22 
hi guys

this is strange, hav a look at the following code...

for (int i = 0; i < reader.FieldCount; i++)
{
   MessageBox.Show("" + reader[i].ToString());
}

txtName.Text = reader[1].ToString();
txtPassword.Text = reader[2].ToString();
txtConfirmPassword.Text = reader[3].ToString();


the messagebox displays the correct data, but when i get to txtName.Text = reader[1].ToString() i get a null reference exception.

what is up with that?

Thanx

[Sollution]

all that was happening in a 2nd constructor of the form. i never did InitializeComponent();!!!

so the null reference was the text box that hasnt been created yet Blush | :O

Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
think BIG and kick ASS
you.suck = (you.passion != Programming)

modified on Friday, February 15, 2008 4:57 AM

GeneralHelp with the Following View Pin
Vimalsoft(Pty) Ltd14-Feb-08 19:52
professionalVimalsoft(Pty) Ltd14-Feb-08 19:52 
Generalwith,or & Pin
neoghy14-Feb-08 19:44
neoghy14-Feb-08 19:44 
Questionchecking the type Pin
Sonia Gupta14-Feb-08 19:30
Sonia Gupta14-Feb-08 19:30 
GeneralRe: checking the type Pin
GuyThiebaut14-Feb-08 22:07
professionalGuyThiebaut14-Feb-08 22:07 
GeneralIs there a way to extract a value/result when you exec a sql string Pin
littleGreenDude14-Feb-08 9:08
littleGreenDude14-Feb-08 9:08 
GeneralRe: Is there a way to extract a value/result when you exec a sql string Pin
Christian Graus14-Feb-08 13:12
protectorChristian Graus14-Feb-08 13:12 
GeneralRe: Is there a way to extract a value/result when you exec a sql string Pin
andyharman14-Feb-08 21:54
professionalandyharman14-Feb-08 21:54 
GeneralBCPutility - Unable to open BCP host data-file Pin
#realJSOP14-Feb-08 6:34
mve#realJSOP14-Feb-08 6:34 
GeneralRe: BCPutility - Unable to open BCP host data-file Pin
Mike Dimmick14-Feb-08 12:44
Mike Dimmick14-Feb-08 12:44 
GeneralRe: BCPutility - Unable to open BCP host data-file Pin
#realJSOP16-Feb-08 0:24
mve#realJSOP16-Feb-08 0:24 
GeneralUsing xp_cmdshell [SOLVED] Pin
#realJSOP14-Feb-08 4:53
mve#realJSOP14-Feb-08 4:53 
GeneralOne to Many Atomic Update Pin
Brady Kelly14-Feb-08 1:32
Brady Kelly14-Feb-08 1:32 
QuestionUpdate a datatable to database Pin
Bluebamboo14-Feb-08 1:02
Bluebamboo14-Feb-08 1:02 
GeneralRe: Update a datatable to database Pin
Joe14-Feb-08 1:27
Joe14-Feb-08 1:27 
GeneralRe: Update a datatable to database Pin
Bluebamboo14-Feb-08 4:32
Bluebamboo14-Feb-08 4:32 
GeneralRe: Update a datatable to database Pin
Joe14-Feb-08 5:30
Joe14-Feb-08 5:30 
GeneralRe: Update a datatable to database Pin
Bluebamboo14-Feb-08 8:41
Bluebamboo14-Feb-08 8:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.