How to Assign an image to Image control at Run time in ASP.NET
-
plz help me in this : Image.ImageUrl = GetImagePathFromDB(); // D:/Images/box/1.jpg My Web application resides in C:/ directory and i want to assign the image at run time from D:/ as give the path. how to assign this 01.jpg at run time using the above code. This is not working. Please help me , this is urgent.
-
plz help me in this : Image.ImageUrl = GetImagePathFromDB(); // D:/Images/box/1.jpg My Web application resides in C:/ directory and i want to assign the image at run time from D:/ as give the path. how to assign this 01.jpg at run time using the above code. This is not working. Please help me , this is urgent.
the image u try to assign to the image control must be within some directory of ur application. It goes to show that ur lacking the basic concepts of how a web application works. You gotta understand that its not a desktop app that u can access virtually anything on ur whole PC.
Rocky My Blog
-
plz help me in this : Image.ImageUrl = GetImagePathFromDB(); // D:/Images/box/1.jpg My Web application resides in C:/ directory and i want to assign the image at run time from D:/ as give the path. how to assign this 01.jpg at run time using the above code. This is not working. Please help me , this is urgent.
Copy the images to your application directory then use ~/Imagefolder/imagename. "~/" will take you to the root directory of your application.
Mohammad Al Hoss Development To Me Is A Pleasure more than a Job