Topbar
Topbar
Sign in
|
Join
|
Client Center
Home
Products
Client Center
Contact
Purchase
Support forums
»
Products
»
Ajax Uploader
»
Re: Reset Files Uploaded Grid
Reset Files Uploaded Grid
Last post 12-12-2011, 2:48 AM by
Kenneth
. 1 replies.
Sort Posts:
Oldest to newest
Newest to oldest
Previous
Next
12-09-2011, 2:17 PM
71915
mremigio
Joined on 01-25-2011
Posts 9
Reset Files Uploaded Grid
Reply
Quote
Hello:
How do I Reset the "Files Uploaded Grid".
The grid looks something like this:
---------------------------------------
| Files
--------------------------------------
| closeout_userguide.pdf (5.0 MG)
Thank you,
Mila
MRemigio
12-12-2011, 2:48 AM
71961
in reply to
71915
Kenneth
Joined on 02-13-2008
Posts 3,886
Re: Reset Files Uploaded Grid
Reply
Quote
Hi mremigio,
If you mean clean the uploader attachment, please try the example below.
<%@ Page Language="C#" %>
<%@ Register TagPrefix="CuteWebUI" Namespace="CuteWebUI" Assembly="CuteWebUI.AjaxUploader" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
protected void btn_Clean_Click(object sender, EventArgs e)
{
for (int i = uploader1.Items.Count - 1; i >= 0; i--)
{
uploader1.Items[i].Remove();
}
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>example</title>
</head>
<body>
<form id="form1" runat="server">
<CuteWebUI:UploadAttachments ID="uploader1" runat="server">
</CuteWebUI:UploadAttachments>
<asp:Button ID="btn_Clean" runat="server" Text="Clean" OnClick="btn_Clean_Click" />
</form>
</body>
</html>
Regards,
Ken