Click here to Skip to main content
15,910,009 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
private void BindGrid()
   {
       try
       {
           objPresenterCorporateprofile = new CorporateProfilePresenter(this);
           GetcorporateDetails_All = objPresenterCorporateprofile.Bind(GetcorporateDetails_All);
           IEnumerable CorporateDetailsData = objPresenterCorporateprofile.GetCorporateDetatils();
           gridCorporateProfile.DataSource = CorporateDetailsData;
           gridCorporateProfile.DataBind();
       }
       catch (Exception ex)
       {
           ex.Message.DefaultIfEmpty();
       }
   }
Posted
Updated 10-Sep-13 2:28am
v3
Comments
thatraja 10-Sep-13 8:14am    
:'( Include the exception message in your question & some more details.
santoshroyal 10-Sep-13 8:27am    
in inner exception it is showing null value sir

1 solution

The error message you quote is pretty specific: it says that there is a problem, and that the details of what caused it are in the inner exception - which means a problem was caught, and wrapped in another exceptio for passing up to your code.
So, look at the inner exception and it should give you the details you need to look at!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900