Click here to Skip to main content
Licence 
First Posted 3 May 2000
Views 106,384
Bookmarked 26 times

Customizable forms

By | 3 May 2000 | Article
Template Active Server Pages to display different objects based on registry settings
  • Download scripts - 78 Kb
  • This is a simple project that uses a template page to display different objects. The structure is represented in the registry at HKEY_LOCAL_MACHINE/SOFTWARE/CustomizableForms, here exist GlobalSettings and xx_Form subkeys (xx is a number betwen 01 and 99 that is important for the forms order).

    In the GlobalSettings key are two values

    • BackgroundColor ­ that contain background color
    • TabsZoneColor ­ that contain tabs zone color.

    In the xx_Form key is next values:

    • FormFooter ­ contains a string (can be HTML code) that will be displayed in tabs footer zone,
    • FormHeader ­ contains a string (can be HTML code) that will be displayed in tabs header zone,
    • FormId ­ form ID,
    • ImageTab ­ contains an image path for the image that will be displayed as the form tab.
    • ImageTabU ­ contains an image path for the image that will be displayed as the selected form tab.
    • ItemsBackgroundColor ­ contains the background color

    Each xx_Form contain xx_Item (xx is a number betwen 01 and 99, that is important for the items order), each xx_Item contain next values:

    • ItemDisplayedDescription ­ is a string (can be HTML code) that contain the item description
    • ItemDisplayedID ­ is item ID that will be displayed in the HTML page
    • ItemID ­ object ID from the HTML page (for checkbox or radio from the same collection this value must be identical)
    • ItemType ­ can be one from following types: text, textarea, image, checkbox, radio, combobox, listbox, order.
    • ItemValue ­ is a default value from current object (for checkbox and radio value = 1 means selected)
    • ItemVisible ­ boolean value, if false then the object will not be displayed.

    This structure is in CustomizableForms.reg (you must Merge that file). The project reads the structure from registry using an ActiveX DLL RegistryAccessObj.dll, which must be registered on your computer using regsvr32 RegistryAccessObj.dll. For your IUSR_machine user to be able to read from the registry using the ActiveX control, he must have permission to do so. You must set permissions for IUSR_machine using regedt32 and set Read permission for HKEY_LOCAL_MACHINE. You must create a new web site that points to the folder that contains the ASP pages. The project will now be functional.

    The website is completely dynamic and customizeable. If you want to add a form, you must add a new xx_Form key in the registry and complete your string values. If you want to add a new item in a form, you must add a new xx_Item key in the registry and complete your string values.

    Enjoy ...

    License

    This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

    A list of licenses authors might use can be found here

    About the Author

    Iulian Iuga

    Web Developer

    Germany Germany

    Member



    Sign Up to vote   Poor Excellent
    Add a reason or comment to your vote: x
    Votes of 3 or less require a comment

    Comments and Discussions

     
    You must Sign In to use this message board. (secure sign-in)
     
    Search this forum  
     FAQ
        Noise  Layout  Per page   
      Refresh
    Generali want the user to select the format of his page i.e., background color, font etc.. PinmemberAnonymous1:23 9 Nov '01  
    Generalpretty good article :) PinmemberHoratiu CRISTEA1:40 6 Aug '01  
    GeneralPROMAS PinmemberAnonymous13:48 20 Jul '01  
    Generaltest PinmemberAnonymous20:55 7 May '01  
    GeneralRe: test PinmemberAnonymous23:32 3 Jun '01  
    GeneralRunning an Exe in An ASP page PinmemberRaja21:07 23 Mar '01  
    GeneralRe: Running an Exe in An ASP page PinmemberAnonymous3:35 29 May '01  
    GeneralRe: Running an Exe in An ASP page PinmemberMark Harrison18:20 26 Jun '01  
    GeneralRe: Running an Exe in An ASP page PinmemberIulian Iuga3:25 27 Jun '01  
    Generaltest PinmemberAnonymous8:32 4 Mar '01  
    GeneralRe: test PinmemberAnonymous21:25 7 Aug '01  
    GeneralRe: test PinmemberEdMan5:36 16 Nov '01  
    QuestionHow can I make two dropdown menus interact? PinmemberPablo Padula6:11 24 Dec '00  
    I need to create a script on asp where 2 values (such as 1 and 2) result on a text. This is for a compatibility report based on two signs. Selecting one on each dropdown menu will give me the compatibility between both signs.
    Can this be done?
    Please reply to pablo@websur.com
    Thank you
    GeneralSorry!!!! PinsussJames Khan13:28 4 May '00  
    QuestionHow to permit other user to see PinsussJames Khan12:56 4 May '00  
    AnswerRe: How to permit other user to see PinsussIulian Iuga21:44 4 May '00  

    General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

    Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

    Permalink | Advertise | Privacy | Mobile
    Web01 | 2.5.120529.1 | Last Updated 4 May 2000
    Article Copyright 2000 by Iulian Iuga
    Everything else Copyright © CodeProject, 1999-2012
    Terms of Use
    Layout: fixed | fluid