Author: lahsiv2004 | Posted on: 9/28/2010 6:02:36 AM | Views : 399

Hello Everyone,
I am working on a web based application wherein I have a created 2 dropdown lists for the user to select. If the user does not select any value from any or both of the dropdown lists, they should see a message- 'Please a select a value for trade code' or 'Please a select a value for direction'. Instead I am getting this development error:
'Procedure or function 'usp_AdminPageCustomerGroupingSearch' expects parameter '@tradecode', which was not supplied.'
As I am still novice to asp.net or C#, I am unable to find the correct code to catch this error and display the relevant message to the user. Could someone please help me with this ? The following is the slice of the C# code which is related to the dropdown list:
private
{
 v ...

Go to the complete details ...