summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/ActiveControls/ActiveFileUpload.page
diff options
context:
space:
mode:
authorctrlaltca@gmail.com <>2011-06-02 19:49:27 +0000
committerctrlaltca@gmail.com <>2011-06-02 19:49:27 +0000
commitcb90a05700b7ca6b621420598ff232aa2285310c (patch)
treedd18eb5af82decff38d18ec26d67fee1c6a8659d /demos/quickstart/protected/pages/ActiveControls/ActiveFileUpload.page
parent6394a6ffe3a9f3e4e698603b94503dc96f1e2652 (diff)
upported to trunk/ last doc changes, everything should be fine now
Diffstat (limited to 'demos/quickstart/protected/pages/ActiveControls/ActiveFileUpload.page')
-rw-r--r--demos/quickstart/protected/pages/ActiveControls/ActiveFileUpload.page33
1 files changed, 33 insertions, 0 deletions
diff --git a/demos/quickstart/protected/pages/ActiveControls/ActiveFileUpload.page b/demos/quickstart/protected/pages/ActiveControls/ActiveFileUpload.page
new file mode 100644
index 00000000..099e33f7
--- /dev/null
+++ b/demos/quickstart/protected/pages/ActiveControls/ActiveFileUpload.page
@@ -0,0 +1,33 @@
+<com:TContent ID="body" >
+
+<h1 id="156003">TActiveFileUpload</h1>
+<com:DocLink ClassPath="System.Web.UI.ActiveControls.TActiveFileUpload" />
+
+<p class="block-content">
+<tt>TActiveFileUpload</tt> displays a file upload field on a page. Upon postback,
+the text entered into the field will be treated as the name of the file
+that will be uploaded to the server. The property <tt>HasFile</tt>
+indicates whether the file upload is successful. If successful, the file
+may be obtained by calling<tt>saveAs</tt> to save it at a specified place.
+You can use <tt>FileName</tt>, <tt>FileType</tt>,
+<tt>FileSize</tt> to get the original client-side file name,
+the file mime type, and the file size information. If the upload is not
+successful, <tt>ErrorCode</tt> contains the error code
+describing the cause of failure.
+</p>
+
+<p class="block-content">
+TActiveFileUpload raises <tt>OnFileUpload</tt> event if a file is uploaded
+(whether it succeeds or not).
+</p>
+
+<p class="block-content">
+TActiveFileUpload actually does a postback in a hidden IFrame, and then does a callback.
+This callback then raises the <tt>OnFileUpload</tt> event. After the postback
+a status icon is displayed; either a green checkmark if the upload is successful,
+or a red x if there was an error.
+</p>
+
+<com:RunBar PagePath="ActiveControls.Samples.TActiveFileUpload.Home" />
+
+<div class="last-modified">$Id$</div></com:TContent> \ No newline at end of file