I have a temp table and i want to map data from it like we can in sql e.g "Select name from tablName where name=@name" . I want to do same thing in asp.net(vb.net) code behind. Thanks in advance.
I asked how to use select statement in code behind. so i got answer is:-
string sqlFilter = "Id = '" + userid + "'";
DataRow[] data = dt.Select(sqlFilter);
@Ram Singh: Suppose your temp table is like bellow one
Create Table #temp( Name varchar(250) )
your select query will be like this
Select Name from #temp WHERE Name = @name
reader.GetString("Name") Name will be the column name in temporary table - R.D. 2012-04-04 07:34