Upload folder column in gridview

Last post 05-20-2008, 6:35 PM by Adam. 1 replies.
Sort Posts: Previous Next
  •  05-20-2008, 4:08 PM 40587

    Upload folder column in gridview

    Want to set the upload folder for pdf upload to a certain folder on the website..
    Is there a way to do that inline at <CE: Editor ...>?
    What is the syntax for setting the FilesGalleryPath inside the following <CE:Editor> component?
    Is there another way to get this effect?
    Thanks for any help.
     

    <asp:TemplateField HeaderText = "PDF file">

    <ItemTemplate>

    <asp:Label ID="PDFfilenameLabel" runat="server" Text='<%# Eval("PDFfilename") %>'></asp:Label>

    </ItemTemplate>

    <EditItemTemplate>

    <CE:Editor id="PDFfilename" EditorWysiwygModeCss="~/StyleSheets/example.css" ConfigurationPath="~/CuteSoft_Client/CuteEditor/Configuration/AutoConfigure/Adobe.config"

    AutoConfigure="None" Height=150 Width=300 ShowBottomBar="false" Text = '<%# Bind("PDFfilename") %>' runat = "Server" ></CE:Editor>

    </EditItemTemplate>

    </asp:TemplateField>

  •  05-20-2008, 6:35 PM 40591 in reply to 40587

    Re: Upload folder column in gridview

    mlc962,
     
    You need to use the followng code:
     
    2: Programmatically specify the Document gallery path:


    C# Example:

    //use the app-based path 

    Editor1.Setting["security:FilesGalleryPath"]= "~/uploads";
    //use the absolute path 
    Editor1.Setting["security:FilesGalleryPath"]= "/uploads";
    //use the physical path 
    Editor1.Setting["security:FilesGalleryPath"]= @"c:\inetpub\wwwroot\uploads";


    VB Example:

    //use the app-based path 

    Editor1.Setting("security:FilesGalleryPath")= "~/uploads"
    //use the absolute path 
    Editor1.Setting("security:FilesGalleryPath")= "/uploads"
    //use the physical path 
    Editor1.Setting("security:FilesGalleryPath")= "c:\inetpub\wwwroot\uploads" 

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View as RSS news feed in XML