Q:

GridView - Search.  Error converting data type nvarchar to int

My GridView was fine, but then I added a search.  I'm having issues with it. 
I get the error, but I thought all of my variables had the correct data type:

Error converting data type nvarchar to int. 

What am I doing wrong? 

A:

You should use appropriate parameter types, for example
    <asp:Parameter DefaultValue="75" Name="EventId" Type="Int32" />

