Welcome Guest Search | Active Topics | Sign In | Register

Is there a way to hide the TextBox from the InputPlaceHolder and have a one button auto uploader? Options
Kesah
Posted: Wednesday, March 11, 2009 11:05:30 AM
Rank: Member
Groups: Member

Joined: 2/19/2009
Posts: 12
Is there a way to hide the textbox portion of the uploader completely? I tried hiding it by setting the display attribute to none in the CSS of the rendered control.


I just want to have one button that says "Browse for Report" and show the progress bar. An Image link button would be nice, but I can be happy with a standard HTML button.


1. In FireFox, this works fine. The input box is hidden, the browse button works fine.
2. In IE, it looks ok, but the button doesn't work, an invisible area to the right responds to the click to browse. I figured its your work around to dealing with the FileUpload scenario in asp.net.


<eo:AJAXUploader runat="server" id="auImageMedia" CssClass="file-upload"
TempFileLocation="~/temp" MaxDataSize="1000" Width="100%"
AllowedExtension=".jpg|.jpeg|.gif|.bmp|.png|.txt|.rtf|.doc|.docx|.ppt|.pptx|.xls|.xlsx"
MaxFileCount="1"
AutoUpload="true"
AutoPostBack="true"
PostedFileLabelFormat="{posted_file_name}"
onfileuploaded="auImageMedia_FileUploaded"

>
<LayoutTemplate>
<table style="width:500px !important;">
<tr>
<td valign="top">
<%-- these are controls required for upload but not required to be displayed --%>
<asp:PlaceHolder id="PostedFilesPlaceHolder" runat="server" Visible="false">Posted Files Place Holder </asp:PlaceHolder>
<asp:Button id="DeleteButton" runat="server" Text="Delete Selected Files" Visible="false"></asp:Button>
<asp:Button id="UploadButton" runat="server" Text="Upload" Visible="false"></asp:Button>
</td>


<td valign="top">
<asp:PlaceHolder id="InputPlaceHolder" runat="server" >Input Box Place Holder</asp:PlaceHolder>
</td>
<td valign="top">
<eo:ProgressBar id="ProgressBar" runat="server" ControlSkinID="None" Height="20px" Width="250" BorderColor="#336699"
BorderStyle="Solid" BorderWidth="1px" IndicatorColor="151, 198, 232"></eo:ProgressBar>
</td>
</table>
</LayoutTemplate>
</eo:AJAXUploader>

eo_support
Posted: Wednesday, March 11, 2009 11:17:22 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Yes. You will need to do it this way:

http://demo.essentialobjects.com/Default.aspx?path=AJAXUploader\uploader_toolbar

The sample shows this feature with an Editor, but you do not have to use it with an Editor. The feature works with the ToolBar control, which is free. You can switch to the "Remark" section to see how this feature works.

Thanks!



You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.