Skip navigation
Currently Being Moderated

Opening File

Jul 9, 2007 3:31 AM

I have a list of documents displayed in a grid and want to be able to open the files (which are stored on the webserver). The files have different file types.
Any help on doing this will be appreciated
  • Currently Being Moderated
    Jul 9, 2007 5:27 AM   in reply to AidanGuy
    When you refer to a file, do you mean and PDF, Doc files etc?

    If so are they linked to a DB?
    Mark as:
  • Currently Being Moderated
    Jul 11, 2007 8:54 PM   in reply to AidanGuy
    Can't you put the file extension in the DB as another column? Then when you do the initial query of the files, send the extension column as well. You don't have to display the extensions in the grid, but the grid will hold the information none the less for each file. So when you click the file, merely append the extension on for it.

    IE something like

    In the grid's onChange() event handler:

    filename = MyGrid.selectedItem.FileName + "." + MyGrid.selectedItem.Extension;

    The syntax might vary depending on scripting language you are using in your particular code.
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points