The problem will lie with the line
Session.Add("searchterm", txtSearch.Text.Trim());
You need to do something like this because Session values can't be string.Empty.
if( !string.IsNullOrEmpty(txtSearch.Text.Trim()) )
{
Session.Add("searchterm", txtSearch.Text.Trim());
}
else
{
}