Settings for InsertDocument.aspx

Last post 11-29-2007, 1:01 PM by cutechat. 4 replies.
Sort Posts: Previous Next
  •  11-28-2007, 8:01 AM 35470

    Settings for InsertDocument.aspx

    Hi,
     
    I am opening InsertDocument.aspx to enable file uploads to my application from outside the CuteEditor. This is done by passing an url like the following to a iframe:
     
    ~/CuteSoft_Client/CuteEditor/Dialogs/InsertDocument.aspx?isframe=0&setting=!3wEWAgUFbmItbm8FAyRhMfc!35B7LXWKUMY7CEdWAfBqUM8eZ
     
    This works out fine, but when publishing to a server I find that decoding of the encrypted settings is machine dependent. Can I somehow call InsertDocument.aspx without having to encrypt the query string in advance?
     
    Regards,
    Sjur
  •  11-28-2007, 9:01 AM 35478 in reply to 35470

    Re: Settings for InsertDocument.aspx

    Please check this example:
     
    asp.net file picker?

    How to use CuteEditor as a file picker?( Demo)

    This example demonstrates


    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

  •  11-28-2007, 9:30 AM 35481 in reply to 35478

    Re: Settings for InsertDocument.aspx

    Adam,
     
    I am opening the dialog from a user control and I'm not interested in having an invisible CuteEditor in the user control or its containing pages. I simply want to pass the correct hashed settings (or not passing them at all, if that's possible) to InsertDocument.aspx. I have a source code license if you think modifying the CuteEditor.CEU-class (or creating a new superclass for InsertDocument.aspx) is necessary.
     
    Regards,
    Sjur

  •  11-29-2007, 12:57 PM 35529 in reply to 35470

    Re: Settings for InsertDocument.aspx

    Sjur:

    the CuteEditor use
    System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile("CuteEditor","SHA1")
     
    to encrypt the settings.
     
    If you want to use fixed encrypt-key , you can set the machineKey at web.config :
     
    <system.web>
    <machineKey validationKey="21F090935F6E49C2C797F69BBAAD8402ABD2EE0B667A8B44EA7DD4374267A75D7AD972A119482D15A4127461DB1DC347C1A63AE5F1CCFAACFF1B72A7F0A281B" decryptionKey="ABAA84D7EC4BB56D75D217CECFFB9628809BDB8BF91CFCD64568A145BE59719F" validation="SHA1" decryption="AES" /> </system.web>
    You must generate your secure key , you can find the code from this article
     
     
    Regards , Terry .
  •  11-29-2007, 1:01 PM 35530 in reply to 35481

    Re: Settings for InsertDocument.aspx

    And,  if you want to modify the source code , please check the

    CEU.CombineEditorSetting , CEU.SplitEditorSetting
     
    Check the CEU.GetMacKeyString()
     
    Regards , Terry .
     
View as RSS news feed in XML