Click here to Skip to main content
12,894,930 members (58,028 online)

Response to: How To Show alert message when file already exists(When Browsing for a new file) in

Revision 2
File exists: System.IO.File.Exists. Showing: many methods are available; I would recommend this:
<p><% some_C#_expression_calculating_the_message_text %></p>
Note that the by existing file you can only mean some file in the file system of the host where the HTTP server works. Consequently, you can only calculate existence on the server part, which makes the "showing" easy: the content is returned in the HTTP response anyway.
Posted 3-Oct-12 19:38pm by Sergey Alexandrovich Kryukov.
Tags: ,

Advertise | Privacy | Mobile
Web02 | 2.8.170424.1 | Last Updated 5 Nov 2009
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid