If i want to delete pune from my record, I just want to press delete button, it should pop-up msgbox asking me to enter Mandal name, And when i enter mandal name: pune, then it shud check with the db whether the record exists, if yes then shud delete it otherwise it shud say:"no record exists".

My code is: here I used textbox, actually i want to use pop-up box.Iam getting error: object ref set not to instance of an object.