Data Controls :: List And View Files On FTP Server In Web Application?
Mar 29, 2013
I am building an asp.net application that connects to an FTP server. On this FTP sever if has several files with varying file extensions. The paths to these files are stored in a sql table. These paths are loaded in a listview.
On click of a button in the listview i want to take the path, detect the file extension and then load the file from the ftp server.
eg if the file is a PDF file then onlick the user must see a pdf file loaded.
I am trying to open different types of files that I have uploaded on my sql server database. I would like to display all the list of files in Gridview. When user click the link it should open download dialog box and should be able to open its particular applications such as word, excel, browsers etc.
I would like to implement filtering in a List view based on the value in a DropDownList, in a sort of 'postback' call, where the user selects dropdown values and clicks a Refresh button. I have figured out that I should use my ViewData for the model being listed, but how do I pass the selected values back to the Index override that takes filter parameters?
I have a web in ASP.NET+VB code and there is a folder named POLICY and there are pdf files in it. i want to display the list of files in a aspx file with hyperlink so that the files listed can be opened...
When I am creating Strongly Typed View I get lots of Classes in View Data Drop down. Classes like Automapper, ninject, Interface..., latebound... Due this its very hard to find my project classes. Is there any way to restrict dropdown to only display my project classes?
I have a List View lstViewAB , by the above code i m trying to find the text on the lblMobile for those which are checked (checkbox). But the problem is that the text of label lblMobile is fetched of 1,3,5 rows only and for 2,4,6 rows it shows text "".
I'm trying to create a list (customized grid) with data pulled from the database and display it to the user in a format that looks very much like a forum thread and replies or posts.Which each of these "posts" I require to have buttons specific to that particular column to edit, delete etc.
For this i am using row filter and filtering the values in the Dt and then i am binding the dt back to the ListView here i am getting the problem as "The data source does not support sorting". I am aware that i am changing the data source, but before binding the datasource manually to
i hav tried doing this to make the datasourceid null which i hav attached previously
lvSalesLayOut.DataSourceID = "";
But i am getting the error post me how to get this done programatically.