Last post Apr 17, 2018 07:13 AM by Eric Du
Apr 12, 2018 01:17 PM|theaulait|LINK
I'm really new to ASP.Net and was handed an web application with a broken search function that pulls data from a SQL database. The person who wrote the application is no longer here.
From what I can see the session is active and the application loads on start. It's using AJAX to pull the data. All is fine with returning information from drop-downs, until an actual search is done on the text field. Then it returns an "object reference
not set to an instance of an object." error.
Any pointers would be really appreciated.
Apr 12, 2018 01:37 PM|jimmy69|LINK
welcome to asp net world, for your problem you need to debug , use perhpas F12
if the problem arrive when you click on a button, search after the button inside the code and follow the flow of the app ..
Perhpas, copy paste some code here we try to help you ...
Apr 17, 2018 07:13 AM|Eric Du|LINK
According to your description, i think this issue is caused by you want to use null data or can not access control, so caused this issue. You could check the following tutorial about this exception:
What is NullReferenceException? Object reference not set to an instance of an object:
I think you could use breakpoint to debug code then find which line caused this issue: