1
Answer

'System.NullReferenceException'

ley nah

ley nah

7y
119
1
string sqlA = @"UPDATE Meeting SET date = '{1}',
attendees_pax = {2},
start_time = {3},
end_time = {4},
room_id = {5}
WHERE meeting_id = {0}";
int rowsAffected = DBUtl.ExecSQL(sqlA,
TxtMeetingID.Text,
TxtDate.Text,
DrpPax.SelectedValue,
DrpTimeIn.SelectedValue,
DrpTimeOut.SelectedValue,
DrpRoom.SelectedValue);
I cannot get this to update because of  "
An exception of type 'System.NullReferenceException' occurred in System.dll but was not handled in user code
Additional information: Object reference not set to an instance of an object."
Please help me ! i need it asap! 
Answers (1)
1
Hiten Pandya

Hiten Pandya

NA 318 1.5k 7y
Have you cheked that you get all the values from textbox and dropdown because this error is generate because values are not coming in one of them.