Click here to Skip to main content
15,898,035 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a grid view that there are some rows in it that contain path of images in a folder.
In grid view selectedIndexChanged when click in each row, address of image is created and i show it in a image.
C#
int x = GridView4.SelectedIndex;
string y = GridView4.DataKeys[GridView4.SelectedIndex].Values["attachName"].ToString();
y = "~\\uploads\\"+EnvID_hf.Value + "\\" + y;
Image2.ImageUrl = y;        

it works for the first time when i click the gridview but after that nothing will happen in the page and if i click again on gridview there is no postback, and it seems to be stoped for working.
Of course it does not happen in IE but i want to use firefox and I have this problem.
Thanks in Advanced.
Posted
Updated 23-Apr-13 20:50pm
v2

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