Exemple #1
0
        ///############################################################
        /// <summary>
        /// Outputs a detail section of the rendered page.
        /// </summary>
        /// <remarks>
        /// Optionally overload this function to define your own page section.
        /// <para/>This function is called once per successfully collected record. This function is not called if there are no successfully collected records to render.
        /// </remarks>
        ///############################################################
        /// <LastUpdated>August 21, 2007</LastUpdated>
        public override void Detail()
        {
            string sCurrentInputAlias;
            int    i;

            Inputs.enumInputTypes eInputType;

            //#### If we have ga_sInputAliases to render
            if (g_iColumnCount > 0)
            {
                //#### Traverse the ga_sInputAliases
                for (i = 0; i < g_iColumnCount; i++)
                {
                    //#### Collect the sCurrentInputAlias
                    sCurrentInputAlias = ga_sInputAliases[i];

                    //#### If the sCurrentInputAlias .Is(an)ID input, set the eInputType to .cnReadOnly
                    if (InputCollection.Inputs(sCurrentInputAlias).SaveType == Web.Inputs.enumSaveTypes.cnID)
                    {
                        eInputType = Web.Inputs.enumInputTypes.cnReadOnly;
                    }
                    //#### Else the sCurrentInputAlias is a non-.cnID input, so set the eInputType to .cnDefaultInput
                    else
                    {
                        eInputType = Web.Inputs.enumInputTypes.cnDefaultInput;
                    }

                    //#### .Render(the)Input for the current ga_sInputAlias
                    Response.Write("<label for='" + InputCollection.InputName(sCurrentInputAlias) + "'>" + sCurrentInputAlias + "</label>: ");
                    Response.Write(InputCollection.GenerateHTML(sCurrentInputAlias, eInputType, g_oGet.Value(sCurrentInputAlias), false, ""));
                    Response.Write("<br/>");
                }

                //####
                Response.Write("<hr/>");
            }
            //#### Else we have no ga_sInputAliases to render, so raise the error
            else
            {
//!
            }
        }