Re: Hide browse button for UploadPersistedFile control

  •  10-05-2008, 9:24 AM

    Re: Hide browse button for UploadPersistedFile control

    Here you go. It's the complete xml code for the user control:

    <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ImageUploader.ascx.cs" Inherits="CatenaLogic.Website.Controls.ImageUploader" %>

    <div class="imageUploader">
        <%-- Image --%>
        <asp:Image ID="imageUploaderImage" runat="server" CssClass="photo" />
       
        <%-- Controls --%>
        <div class="controls">
       
            <%-- Progress --%>
            <asp:Panel ID="imageUploaderProgress" runat="server" CssClass="progress" />
           
            <%-- Buttons --%>
            <asp:LinkButton ID="editButton" runat="server" CssClass="editButton" meta:resourcekey="editButtonResource" />
            <asp:LinkButton ID="cancelButton" runat="server" CssClass="cancelButton" meta:resourcekey="cancelButtonResource" />
            <asp:LinkButton ID="removeButton" runat="server" CssClass="removeButton" meta:resourcekey="removeButtonResource" />
       
        </div>
       
        <%-- Uploader --%>
        <CuteWebUI:UploadPersistedFile runat="server"  ID="imageUploader" UploadType="Auto" MultipleFilesUpload="false"
            CancelButtonID="cancelButton" InsertButtonID="editButton" ProgressCtrlID="imageUploaderProgress"   
            OnFileUploaded="imageUploader_FileUploaded" OnFileChanged="imageUploader_FileChanged">
            <ValidateOption AllowedFileExtensions="jpg,jpeg,gif,png" />
        </CuteWebUI:UploadPersistedFile>
    </div>

View Complete Thread