I have Locations column in my site. In database there is separate tables for ,
- Country
- State
- city
- Region
These all table id's are stored into Locations table then Location Table Id is referred to CandidatepreferredLocation.
My problem is, i want to show what location candidates stored.
Eg:
Location: Country, state, city,Region like that.
In the above, if city is null means it shows "object reference not set to an object."
So I use code like following,
still showing same error. i don't know. Any one suggest me?