Click here to Skip to main content
15,912,897 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
!!! An Error Occured While getting Data From Hdr_AccountType.Procedure or function 'sproc_Ins_PhotoSettingsDetailses' expects parameter '@Startdate', which was not supplied.

Line 307:            catch (Exception ex)
Line 308:            {
Line 309:                throw new ApplicationException(
Line 310:                    "!!! An Error Occured While getting Data From Hdr_AccountType." + ex.Message);
Line 311:                lblError.Visible = true;
Posted
Updated 14-May-11 14:49pm
v2

While calling your stored procedure, are you passing in a date for the start date?
The exception handler is fine and will stop the application from crashing completely, however, IMO, you should look at why the actual error occur rather than simply handling it.
 
Share this answer
 
Comments
kannan 2 14-May-11 7:26am    
i cant understand i
am begineer
your stored procedure needs @Startdate

which is not supplied from your code behind Page check your @startDate value is coming or not
 
Share this answer
 
v2
Comments
Sandeep Mewara 14-May-11 11:46am    
Please avoid posting in bold. Thanks.

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