Click here to Skip to main content
15,893,622 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i used this code :

C#
SqlConnection con = new SqlConnection("Data Source=.;Initial Catalog=AnbarDB;Integrated Security=True");            SqlCommand com = new SqlCommand();
            SqlDataReader oldr;
            DataTable Table = new DataTable();
            con.Open();
            com.Connection = con;
            com.CommandText = "SELECT * FROM TKala";
            oldr = com.ExecuteReader();
            Table.Load(oldr);
            dataGridView1.DataSource = Table;


butt error :

pic_error[^]
Posted
Comments
OriginalGriff 7-Feb-15 10:03am    
Error messages in images in Persian are not a lot of help on an English language website!
And in future, don't post a picture of your error, post the text. That way, if we need to we can at least try feeding it into Google Translate...
/\jmot 7-Feb-15 10:15am    
شما وارد نشده اید و یا اجازه مشاهده این صفحه را ندارید. این موضوع می تواند به خاطر موارد ??
ican't read. :P
OriginalGriff 7-Feb-15 10:35am    
Google translate:
"You are not logged in or do not have permission to view this page. This could be the case?"
So was that message he posted, or the message you got? :laugh:

Can you please share the aspx or HTML code where you want to display the image in Gridview.I will help you .

Thanks Anup
 
Share this answer
 
 
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