I have a small dilemma and I hope someone can point me in the correct direction. I have a current web form, written in JSP, in which a user searches a library of files (PDF, Excel, Word, etc.). Once the results appear a user should be able to click on a link and open (in another window, not showing the Address of the file (URL)) the file in it's associated program (such as Adobe Acrobat opening a PDF file, Excel opening an .XLS file, etc.). I am doing my first C# project and am not sure which .NET namespaces to use. If someone can point me in the direction, send a link to an example, I would be most grateful. Also, I am not sure what this function would be called, so I hope I am posing this question in the correct place. Thank you in advance.

ASP.NET form using C# question from a youngling
mikeroberts23
Leung
You'll create a new ASP.NET web site project. You will then edit either default.aspx or create a new web page (ASPX) to display the UI for your form. The codebehind page is where you'll place the server side code to handle the user interaction. I suspect that you'll provide a text box and a search button on your form. When the user clicks search you'll run whatever query you need to on the server and display the results in a GridView. In the grid you'll provide the user either a button/link to view the file or perhaps make the file's name a hyperlink. This hyperlink will open a new window that contains the file. You'll actually have to stream the file contents across, being sure to set the content type up correctly. Presumably you're already doing this in JSP so the code will be similar.
For more information search MSDN and Goggle for getting started with ASP.NET, gridview and opening files in ASPX. I also recommend that you work through the ASP.NET tutorials available in MSDN before going too far in your project.
Michael Taylor - 11/15/06