My download/view section usually contains documents and pdf. How can I view the document using the web browser so that user will just view it and no need for download because when I click on the link a download dialog box appears. Thanks
What type of document are you talking about?
Whatever type it is, if it has a MIME type registered, use a Content-Type: [man]header[/man] to tell the client what sort of document it is, and let it decide what is then the most appropriate.