i m uploading the photo using file upload control.
now if i want to delete that photo from photo folder how can i do that?
can anyone help?
View Complete Post
We are using a third party wsp in our solution which directly adds the web parts into the web application store rather than the web part gallery(References to them are present
in IIS site's wpcatalog directory). We want to remove these web part files so that the users will not be able to add these web parts to pages directly. Or any other modification so that users will not be able to add these directly. Is there a way we can
do this programmatically?
I'm searching an answer to this question on the web for 2 weeks unsuccessfully.
I'm sure I'm not the only one to wondering about that!
I have two web projects MVC2: a FrontOffice and a BackOffice.
The user has to be able to upload some image in the BackOffice, which will be display on the FrontOffice and vice versa.
How can I share an image folder between these two projects?
Has the folder to be necessary in the solution or can it be somewhere else on the server?
My team and I are working with TFS.
I want to create an image folder in which we can write and read from frontoffice and backoffice.
But I don't want to have to do a "get latest version" everytime
someone is adding an image in the folder. I would like to create a
folder on the server we can access from the backoffice AND the
frontoffice with reading and writing rights in real
I'm not sure to be very clear...
I have a gridview on my page which is bound to an objectdatasource that gets Data from an Images Table in my database.
The delete button is enabled and I have this code in my DAL.
DELETE FROM [Images] WHERE (([ImageId] = @ImageId))
Instead of deleting just 1 image, I want to give a user the option to delete multiple images at once.
Any code showing how to do this in c sharp be grateful.
i have a image which i am picking from open file dialog now i want to save image in my project folder
please hep me
hi i m using fileupload concept and saving the files to a folder download.hw can i check the files names saved in that folder while site is hosted on webserver.is there any way to delete some of files from that folder runtime.
i am trying to use a fileopen dialog to select an image and copy it to my project folder .
i have used this code to do that.
OpenFileDialog ofd = new OpenFileDialog();
ofd.Filter = "All Image Files| *.*";
imgImagePath.Source=new BitmapImage(new Uri(ofd.FileName,UriKind.RelativeOrAbsolute));
FileStream fs = new FileStream(ofd.FileName,FileMode.Open,FileAccess.Read);
FileStream copyfs = new FileStream(@"../../Themes/Images", FileMode.CreateNew, FileAccess.Write);
The Error i am gettin is The so and so folder access is denied.
I have check that the folder is not read only. and its in d:
I am using grid view and on grid delete image click i remove product but i also want to remove image phisically from the folder.
i have deleted logically but i need code to delete from folder ?