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:
- When the domain in the DropDownList is selected a call to Smartermail needs to be made
- 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)
- The SOAP/XML call will retrieve the Primary Domain Admin & password for the domain selected in step 1
- 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:
- When the domain in the DDL is selected a call to Smartermail needs to be made
- 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)
- The SOAP/XML call will determine if the domain exists in SmarterMail.
- If the domain does NOT exist in SmarterMail then on to step 5
- A call to the DNP WebService needs to be made to create the mail domain
- 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
Fenix