Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (edited)

I thought I am skilled enough to resolve any null_exception, but damn me, i don't know how to repair this one.

 

Check the attachment

Edited by PROKA
Development & Research Department @ Elven Soft
Posted

Well, when I click the button, I get a '/Null Exception Bug'.

 

The app is more complex, it takes data from an sql server and it writes data to the sql server, but I took that part away . That's my only problem, the button throwing a null exception .

 

I have created an user control, and put some of it on the form. To work easier with them, I created an array, Which I initialize in the load page event. When loading data from the sql server it works perfectly ( also in the page-load event ), but when clicking the button, the array = Nothing

Development & Research Department @ Elven Soft
Posted (edited)

Yes but if I re-initialize them, I lose the properties . For example, If I type something in the textbox, it won't matter it will take the text from the 'original' control ( "" ) :(

 

 

 

----------------------------------------------------

Later Edit :

Ok, I solved the problem, using a collection and some little tricks, and the page works corectly now, but I'm still interested in one issue : How can I prevent a postback when clicking a button ? ( sorry if the Q is too dummy, I'm quite new to aspn )

Edited by PROKA
Development & Research Department @ Elven Soft

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...