Re: make template

  •  09-17-2010, 3:56 PM

    Re: make template

    Please refer to http://cutesoft.net/example/implementSecuritypolicy.aspx , you can find its source code in download package.
    Please change:
    void SetUploadsFolder(string folder)
      {
       string phyfolder=Server.MapPath(folder);
       System.IO.Directory.CreateDirectory(phyfolder);
       
       //see security.config
       Editor1.Setting["security:ImageGalleryPath"]=
       Editor1.Setting["security:ImageBrowserPath"]=
       Editor1.Setting["security:MediaGalleryPath"]=
       Editor1.Setting["security:FlashGalleryPath"]=
       Editor1.Setting["security:FilesGalleryPath"]=
       folder;
      }
    to:
    void SetUploadsFolder(string folder)
      {
       string phyfolder=Server.MapPath(folder);
       System.IO.Directory.CreateDirectory(phyfolder);
       
       //see security.config
       Editor1.Setting["security:ImageGalleryPath"]=
       Editor1.Setting["security:ImageBrowserPath"]=
       Editor1.Setting["security:MediaGalleryPath"]=
       Editor1.Setting["security:FlashGalleryPath"]=
       Editor1.Setting["security:FilesGalleryPath"]=
       Editor1.Setting["security:TemplateGalleryPath"]=
        folder;
      }
     
    Thank you for asking
     
View Complete Thread