Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
In social networking project find all friend email from one table and all friend email post show in gridview with email which is available in session
Posted
Comments
Richard C Bishop 2-May-13 14:52pm    
On the street drive down it and get some pizza for the rest of the people.
joshrduncan2012 2-May-13 15:42pm    
(Thumbs up) My +5.

1 solution

if(Session[email]!=null)
{
//typecast it to your datastructure or whatever you assigned into it
DataTable ds= (DataTable)Session[email];
da = new SqlDataAdapter("Select * from Table1", con);
da.Fill(ds1, "Record");
ds1.Merge(ds);
GridAllRecord.DataSource = ds1;
GridAllRecord.DataBind();

}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900