Hi,
I have many TextBOX in asp.net which accepts the value from user and stores it to SQL DB through SQL SERVER.. When the user does not enter the value in the textbox, Which means i can allow the null for that filed in the table, But if its integer variable it stores 0, thats because
int HostelFees ;
HostelFees = TextBox1.Text;
//function called to store the hostel fee
insertFee(hostelFees);
in Database it stores 0, which i dont want but it to be null..
I went through many documentations and understood only slightly about ISDBNULL, But still am confused regarding while inserting how i will insert null. :( and i am not using any stored procedure's.. infact in the function insertFee(hostelFees)
i just use command.ExecuteNonQuery to insert it
Please can anyone give me proper explation or link which i refer. Thank you,