Click here to Skip to main content
16,016,067 members
Home / Discussions / C#
   

C#

 
GeneralRe: run .net app in all systems Pin
Heath Stewart21-Oct-04 13:42
protectorHeath Stewart21-Oct-04 13:42 
Generaldatagrid column sorting Pin
ddelapasse21-Oct-04 4:35
ddelapasse21-Oct-04 4:35 
GeneralAdd-In VS .NET 2003 ToolTip on Words in Editor Pin
Nxsis21-Oct-04 3:46
Nxsis21-Oct-04 3:46 
GeneralRe: Add-In VS .NET 2003 ToolTip on Words in Editor Pin
Heath Stewart21-Oct-04 7:20
protectorHeath Stewart21-Oct-04 7:20 
GeneralRe: Add-In VS .NET 2003 ToolTip on Words in Editor Pin
Anonymous21-Oct-04 7:48
Anonymous21-Oct-04 7:48 
Generalupdating a database Pin
steve_rm21-Oct-04 2:58
steve_rm21-Oct-04 2:58 
GeneralRe: updating a database Pin
Hugo Hallman21-Oct-04 3:03
Hugo Hallman21-Oct-04 3:03 
GeneralRe: updating a database Pin
Colin Angus Mackay21-Oct-04 3:11
Colin Angus Mackay21-Oct-04 3:11 
This should really be posted in the ADO.NET forum[^], but I'll try an answer it anyway.

Without knowing more about your data model, I'm guessing that you have no student whose Id is an empty (zero length) string (This is not the same as NULL). And when you update the table the row is trying to relate itself to a student with an empty string ID.

If my guess is correct: You should set StudentID in the BOOK table to be nullable. If the student is to be cleared you should set the value of the column to be DBNull.Value.


Do you want to know more?


Vogon Building and Loan advise that your planet is at risk if you do not keep up repayments on any mortgage secured upon it. Please remember that the force of gravity can go up as well as down.
GeneralRe: updating a database Pin
steve_rm21-Oct-04 3:53
steve_rm21-Oct-04 3:53 
GeneralRe: updating a database Pin
Colin Angus Mackay21-Oct-04 5:02
Colin Angus Mackay21-Oct-04 5:02 
QuestionHigh performance buffer pooling? Pin
Hugo Hallman21-Oct-04 2:40
Hugo Hallman21-Oct-04 2:40 
AnswerRe: High performance buffer pooling? Pin
Heath Stewart21-Oct-04 7:41
protectorHeath Stewart21-Oct-04 7:41 
GeneralScrollBar Problem Pin
ee9903521-Oct-04 2:07
ee9903521-Oct-04 2:07 
GeneralRe: ScrollBar Problem Pin
Heath Stewart21-Oct-04 7:26
protectorHeath Stewart21-Oct-04 7:26 
GeneralRe: ScrollBar Problem Pin
ee9903521-Oct-04 8:46
ee9903521-Oct-04 8:46 
GeneralRe: ScrollBar Problem Pin
Heath Stewart21-Oct-04 9:07
protectorHeath Stewart21-Oct-04 9:07 
GeneralChanging the Form icon Pin
Tony D. Abel21-Oct-04 2:03
Tony D. Abel21-Oct-04 2:03 
GeneralRe: Changing the Form icon Pin
perlmunger21-Oct-04 7:16
perlmunger21-Oct-04 7:16 
GeneralRe: Changing the Form icon Pin
Tony D. Abel22-Oct-04 5:36
Tony D. Abel22-Oct-04 5:36 
GeneralRegister Window Message Pin
ppp00121-Oct-04 1:42
ppp00121-Oct-04 1:42 
QuestionHow to find the window handle of MessageWindow instance of C# compact framework? Pin
ting66821-Oct-04 1:41
ting66821-Oct-04 1:41 
Generalcreate COM in c# Pin
ppp00121-Oct-04 1:32
ppp00121-Oct-04 1:32 
GeneralRe: create COM in c# Pin
perlmunger21-Oct-04 7:02
perlmunger21-Oct-04 7:02 
QuestionHow to convert a string to int ? Pin
Andres Coder21-Oct-04 0:39
Andres Coder21-Oct-04 0:39 
AnswerRe: How to convert a string to int ? Pin
Xiangyang Liu 刘向阳21-Oct-04 0:49
Xiangyang Liu 刘向阳21-Oct-04 0:49 

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.