Click here to Skip to main content
15,890,609 members
Home / Discussions / C#
   

C#

 
AnswerRe: Socket Sample Pin
led mike4-May-06 11:27
led mike4-May-06 11:27 
AnswerRe: Socket Sample Pin
Ravi Bhavnani4-May-06 11:46
professionalRavi Bhavnani4-May-06 11:46 
QuestionHow to send email using C#.NET v1.0 Pin
SumitBiswasBabai4-May-06 11:01
SumitBiswasBabai4-May-06 11:01 
AnswerRe: How to send email using C#.NET v1.0 Pin
led mike4-May-06 12:14
led mike4-May-06 12:14 
AnswerRe: How to send email using C#.NET v1.0 Pin
BillWoodruff5-May-06 0:19
professionalBillWoodruff5-May-06 0:19 
QuestionIStillImage app freeze ? Pin
Christian Graus4-May-06 10:30
protectorChristian Graus4-May-06 10:30 
AnswerRe: IStillImage app freeze ? Pin
leppie5-May-06 0:44
leppie5-May-06 0:44 
QuestionSql-question Pin
JelleM4-May-06 10:21
JelleM4-May-06 10:21 
Hello,

With following code i can filter (with the GetSodas sql-query) data out of my database, and get the total of records which can be found.

int totaal = aanbodTableAdapter.CountSodas().Value;

So far so good.
Now, I want to get 1 single record (which i filter by the id) out of the GetSodas-query.
I tried this:

button1.Text = aanbodTableAdapter.GetSodas().FindByid(1).description;

But I get an error:

<br />
System.NullReferenceException was unhandled<br />
Message="Object reference not set to an instance of an object."<br />


What do I do wrong?
Thanks!
AnswerRe: Sql-guestion Pin
Christian Graus4-May-06 10:32
protectorChristian Graus4-May-06 10:32 
GeneralRe: Sql-guestion Pin
JelleM4-May-06 10:59
JelleM4-May-06 10:59 
GeneralRe: Sql-guestion Pin
Christian Graus4-May-06 11:01
protectorChristian Graus4-May-06 11:01 
GeneralRe: Sql-guestion Pin
JelleM4-May-06 11:37
JelleM4-May-06 11:37 
GeneralRe: Sql-guestion Pin
Christian Graus4-May-06 11:43
protectorChristian Graus4-May-06 11:43 
GeneralRe: Sql-guestion Pin
JelleM4-May-06 11:52
JelleM4-May-06 11:52 
GeneralRe: Sql-guestion Pin
Christian Graus4-May-06 12:04
protectorChristian Graus4-May-06 12:04 
GeneralRe: Sql-guestion Pin
JelleM5-May-06 0:24
JelleM5-May-06 0:24 
GeneralRe: Sql-guestion Pin
Drew McGhie5-May-06 3:42
Drew McGhie5-May-06 3:42 
GeneralRe: Sql-guestion Pin
JelleM8-May-06 22:52
JelleM8-May-06 22:52 
GeneralRe: Sql-guestion Pin
led mike4-May-06 11:53
led mike4-May-06 11:53 
QuestionHiding Properties at Design Time Pin
SnoopyJ4-May-06 10:16
SnoopyJ4-May-06 10:16 
AnswerRe: Hiding Properties at Design Time Pin
Josh Smith4-May-06 10:52
Josh Smith4-May-06 10:52 
Questionpassing Form as refernce to called from dynamically Pin
abhinish4-May-06 9:39
abhinish4-May-06 9:39 
AnswerRe: passing Form as refernce to called from dynamically Pin
led mike4-May-06 9:51
led mike4-May-06 9:51 
AnswerRe: passing Form as refernce to called from dynamically Pin
Josh Smith4-May-06 9:56
Josh Smith4-May-06 9:56 
QuestionPrint Visio Document with C#.NET ????? Pin
nicolas santana4-May-06 9:17
nicolas santana4-May-06 9:17 

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.