in

Dotnetpanel Forums

Community support forums for DotNetPanel products

Custom Page Creation

Last post 07-09-2009 4:47 AM by feniethomas. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 07-09-2009 4:47 AM

    Custom Page Creation


       I need to create a new custom page ie .ascx  in DesktopModules>> Dotnetpanel.  Because I can't add the controls in the App_Data\DotNetPanel_Pages.config  due to the security reasons as I need to pass the UserName and Password to the webservice. I need to know if I do the codes in the  App_Data\DotNetPanel_Pages.config  , is there any security flaws when someboby checks the viewsource?

    My detailed requirement is explained below.

    Drop Down List For Mail Domains That Exist:

    1.  When the domain in the DropDownList is selected a call to Smartermail
    (http://localhost:9998) needs to be made
    2.  The call needs to be a SOAP/XML call that is initiated FROM THE
    SERVER.  (Not a Javascript call initiated by the client browser).  This
    protects the SmarterMail admin user and password from being shown in the
    client browser source (i.e. View source)
    3.  The SOAP/XML call will retrieve the Primary Domain Admin & password
    for the domain selected in step 1
    4.  Then another SOAP/XML call needs to be made to login to SmaterMail
    using the credentials obtained in step 3



    Drop Down List For Mail Domains That DO NOT Exist:

    1.  When the domain in the DDL is selected a call to Smartermail
    (http://localhost:9998) needs to be made
    2.  The call needs to be a SOAP/XML call that is initiated FROM THE
    SERVER.  (Not a Javascript call initiated by the client browser).  This
    protects the SmarterMail admin user and password from being shown in the
    client browser source (i.e. View source)
    3.  The SOAP/XML call will determine if the domain exists in
    SmarterMail.
    4.  If the domain does NOT exist in SmarterMail then on to step 5
    5.  A call to the DNP WebService needs to be made to create the mail
    domain
    6.  A message needs to be returned to the client browser stating that
    the domain has been created.


    I also tried to add a new SmarterMail.ascx page in the Desktop modules. I made the corresponding changes in App_Data\DotNetPanel_Pages.config  ,App_Data\DotNetPanel_Modules.config  and also in App_GlobalResources\DotNetPanel_Pages.ascx.resx and   App_GlobalResources\DotNetPanel_Modules.ascx.resx .

    But it ends with following error

    Control '~/DesktopModules/DotNetPanel/SmarterMail.ascx' could not be loaded: System.InvalidCastException: Unable to cast object of type 'ASP.desktopmodules_dotnetpanel_smartermail_ascx' to type 'DotNetPanel.WebPortal.PortalControlBase'.
    at DotNetPanel.WebPortal.DefaultPage.AddModuleToContentPane(Control pane, PageModule module, String ctrlKey, Boolean editMode)


    Please reply me ASAP.

    Regards

    Fen

    Filed under:
Page 1 of 1 (1 items)
Powered by Community Server (Commercial Edition), by Telligent Systems