Hi All,
I have added an Image control in aspx file and on runtime its ImageUrl property getting decided.
Ex:
string imageName = Label1.text;
Image1.ImageUrl = @"C:\folder\" + imageName + ".jpg";
But on running the page, image is not getting displayed.
I have checked the Image1.ImageUrl value during runtime is correct.
Any suggestions?
Thanks
Loading
Suthish NairPosted Feb 12, 2011, 1:42 PM
Contains application data files including .mdf database files, XML files, and other data store files.
The App_Data folder is used by ASP.NET to store an application's local database, such as the database for maintaining membership and role information.
So you cant' store other files in App_Folder.
Create an image folder outside App_Folder, store images in it.
night sailorPosted Feb 12, 2011, 2:20 PM
Thanks.
Suthish NairPosted Feb 12, 2011, 2:14 PM
refer attachment..
night sailorPosted Feb 12, 2011, 1:59 PM
i am doing like this :
string image = Label1.Text;
Image1.ImageUrl = @"~/App_Data/image/" + image + ".jpg";
night sailorPosted Feb 12, 2011, 1:36 PM
Suthish NairPosted Feb 12, 2011, 1:34 PM