Posted on: 7/7/2015 11:14:24 AM | Views : 950

Hi,
I want to write a common function using hashtable and sql query.
following is my sample code
hashtable is coming from another page.
i have created the hashtable in a  page as
Hashtable hashtable = new Hashtable(); hashtable["table"] = "vchr"; hashtable["type"] = "Two"; hashtable["vchrid"] = "3012"; BAL obj=new BAL(); DataSet ds = obj.Getsearch(hashtable); I want to use this hashtable in another class file as
public DataSet Getsearch( Hashtable htable) { DataSet ds = new DataSet(); string tblname; foreach (DictionaryEntry d in htable) { tblname = d.Key + "=" + d.Value; } return ds ...

Go to the complete details ...