Click here to Skip to main content
15,884,099 members
Articles / Web Development / IIS
Article

Customizable forms

Rate me:
Please Sign up or sign in to vote.
4.00/5 (1 vote)
3 May 2000 132K   637   26   16
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


    Written By
    Web Developer
    Germany Germany
    This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

    Comments and Discussions

     
    Generali want the user to select the format of his page i.e., background color, font etc.. Pin
    9-Nov-01 1:23
    suss9-Nov-01 1:23 
    Generalpretty good article :) Pin
    Horatiu CRISTEA6-Aug-01 1:40
    Horatiu CRISTEA6-Aug-01 1:40 
    GeneralPROMAS Pin
    20-Jul-01 13:48
    suss20-Jul-01 13:48 
    Generaltest Pin
    7-May-01 20:55
    suss7-May-01 20:55 
    GeneralRe: test Pin
    3-Jun-01 23:32
    suss3-Jun-01 23:32 
    GeneralRunning an Exe in An ASP page Pin
    23-Mar-01 21:07
    suss23-Mar-01 21:07 
    GeneralRe: Running an Exe in An ASP page Pin
    29-May-01 3:35
    suss29-May-01 3:35 
    GeneralRe: Running an Exe in An ASP page Pin
    Mark Harrison26-Jun-01 18:20
    Mark Harrison26-Jun-01 18:20 
    GeneralRe: Running an Exe in An ASP page Pin
    Iulian Iuga27-Jun-01 3:25
    Iulian Iuga27-Jun-01 3:25 
    Generaltest Pin
    4-Mar-01 8:32
    suss4-Mar-01 8:32 
    GeneralRe: test Pin
    7-Aug-01 21:25
    suss7-Aug-01 21:25 
    GeneralRe: test Pin
    16-Nov-01 5:36
    suss16-Nov-01 5:36 
    QuestionHow can I make two dropdown menus interact? Pin
    24-Dec-00 6:11
    suss24-Dec-00 6:11 
    GeneralSorry!!!! Pin
    James Khan4-May-00 13:28
    James Khan4-May-00 13:28 
    QuestionHow to permit other user to see Pin
    James Khan4-May-00 12:56
    James Khan4-May-00 12:56 
    AnswerRe: How to permit other user to see Pin
    Iulian Iuga4-May-00 21:44
    Iulian Iuga4-May-00 21:44 

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

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