The function
DSet
returns a dataset...
public DataSet DSet(string Stxt)
so when you use it here
public int txtsrch(string txtsrch)
{
try
{
return cfdal.DSet(txtsrch);
}
you are getting the error because you want txtsrch to return an
int
Given that you later use
search_grid.DataSource = cfbal.txtsrch(stxt);
I'm guessing you really don't want to return an
int
from txtsrch!
Try
public DataSet txtsrch(string txtsrch)
instead