Ejemplo n.º 1
0
        protected void RenderFileAs()
        {
            base.Response.Write("<tr><td class=\"cntPT\">");
            base.Response.Write(LocalizedStrings.GetHtmlEncoded(ContactUtilities.FileAsId.Label));
            base.Response.Write("</td><td class=\"cntPV\"><select name=\"");
            base.Response.Write(ContactUtilities.FileAsId.Id);
            base.Response.Write("\" class=\"cntDD cntCB\">");
            FileAsMapping fileAs = ContactUtilities.GetFileAs(base.Item);

            foreach (FileAsMapping fileAsMapping in ContactUtilities.GetSupportedFileAsMappings())
            {
                int num = (int)fileAsMapping;
                this.RenderListItem(num.ToString(), ContactUtilities.GetFileAsString(fileAsMapping), fileAsMapping == fileAs);
            }
            base.Response.Write("</select></td></tr>");
        }