Is there any telerik control to delete these file from SQL DB? - c#

I am working on a web Project using ASP.NET,C# and Telerik control.
I am using Telerik control telerik:RadAsyncUpload to upload multipe files
After clicking submit button I am saving that files in Database in bytes format.
When I want to Update this record...I am fetching that files from database and showing links for that file.
So that when I will click on link, file will get downloaded.
Is there any telerik control to delete these file?

You can use the File Explorer Control from Telerik, some samples you can find here:
File Explorer
Also you can use a custom "File Content Provider" for the communication with your database, a sample implementation you find here: Custom File Content Provider and here you will find the documentation.
Another way would be to create a button (next to your download link) which fire your delete method :-), maybe simpler if you only need to delete these files.

Related

Download PDF from SQL Server database

I have searched for answers and it seems everything is asp.net and webforms.
I'm trying to find an entity/MVC solution I have to assume they are similar.
I have a database which has the info for the file stored in SQL Server datatype Image. I already have all the code to attach to files to the right people as needed. The only thing I am missing is how to build the Download link.
The HTML View will look like this.
The information about the document will be in a table containing information like document name, type etc. It will also have a Download link. Once they click this link I would like to have the file served to them for download.
This is the part that escapes me when doing it in MVC. I have the document in a model incoming_file is the column that contains the document.
How do I force the download of everything in incoming_file when they click Download?

Auto Fill Webform through Word doc in Asp.net

hey i'm working on project in which I have webform which includes some editfields. I don't want to enter the data manually into that editfield. what I want is to extract data from a word document and fill that editfields. But the catch is, through which MS doc I fill the editfield?
Suppose We have a bunch of lectures uploaded on some page. so what should I do to retrieve the data from a particular document?
Is it necessary to open the MS-doc file first?
or I should download the file first?
If I goes with option 1 when should I have to use some library? what opens the file within browser, retrieve the data and the a pop-up message appears "the data has been retrieved now you can close the file". and next I can fill the form with that data.
or should I goes with the 2 Option when an individual hit the download button then the file will be stored into the local machine. how can I keep the track that which ms-file is downloaded or stored into the local machine?and is it necessary to open that file for retrieving the data again?
These are my point of views that how I can implement that module. So I need your suggestions? Is this the right way to achieve this goal or should I follow the other path? and which libraries are required to achieve this task or any tutorial similar to this problem ?
Thanks in Advance
I would suggest considering a third option: since the Word document files exist on the server, the cleanest place to pre-populate a form would be by extracting data from the document while it is on the server and filling in the form's fields before sending it down to the user in a codebehind. Trying to extract data on the client side from a recently-downloaded file via an application other than the browser seems ripe for kludgy-ness. Articles such as http://support.microsoft.com/kb/257757 should help get you started in the right direction.
For extracting data from ms word document using free .net word component and fill data to webform,
extract data,
Document doc = new Document();
doc.LoadFromFile("YouDocOrDocx.Docx");
string content = doc.GetText();

How to have a tree view automatically populated when different .mdb files are loaded in c#?

I am currently working on a project, it is a c# winform app that can open any .mdb file read and display the records and make changes to it and save the changes again. For this I am using OLEDb libraries.
Now my question is, I would like a tree view to be populated with the data from the the .mdb file that I have opened.
Is this possible?
My Google searches have only shown me examples of creating a tree view using a single .mdb file, but not have the ability to adapt to different .mdb files.
Please, any answer or indication to a possible answer will mean a lot to me.
I thank you for your help.

How do I upload multiple files using FileUploader?

How to go about uploading Multiple files(i have multiple files inside a folder) using file uploader by selecting target folder once in asp.net.if not using file uploader is there any other control for uploading file in asp.net?
You have several options to upload multiple files:
You can use a jQuery plugin, as described here.
You can use as many FileUpload controls as needed, as described here (videotutorial) and here.
But none that I can think of will allow you to select and entire "folder".
Hope it helps.
There is a good explanation of why this is not possible with standard .net controls on Velocity Reviews.
Here's more info on using Flash or Silverlight on StackOverflow. In summary, you can use something that allows multiple files to be uploaded (that the user manually selects) but you can't select a folder and have it upload each item in it, presumably because this breaks a law of the security gods.
You can use Radupload for multiple file upload.

drag and drop file upload asp.net or java

i would like the user to be able to drag and drop any file right onto the web form/control/whatever is in the browser and i would want the file to be automatically copied to a specific folder.
is this functionality possible with asp.net?
is there an easier, already existent tool that i can use to do this?
i would also need the feature of the user being able to drag and drop multiple files.
if there is an already existent java solution please let me know!!
please note that i need this to work with IE.
Nothing much to do with ASP.NET
There is a JQuery plugin you can use for drag-n-drop file upload:
JQuery DND File Upload
Take a look at HTML5 Drag and Drop Upload and File API Tutorial for IE (only works in IE9 though)
EDIT:
After a little bit of googling, I found Plupload very interesting. It provides HTML5 Drag and Drop file uploader for supported browsers.

Categories

Resources