调用moss自带的对话框

            string builderUrl = "/_layouts/zoombldr.aspx"; //string builderUrl = "/_layouts/pickertreeview.aspx";

            string editorId = ClientID + '_' + txt.ID;

            string dialogFeatures = "dialogHeight:340px;dialogWidth:430px;help:no;status:no;resizable:yes";

            cell2.Controls.Add(new LiteralControl("&nbsp;<input type=\"button\" value=\"Editor...\" id=\""
                + editorId
                + "_QueryOverride_Builder\" title=\" Click to Use Builder \" onclick=\"javascript:"
                + string.Format("MSOPGrid_doBuilder('{0}?culture={1}', {2}, '{3}')",
                SPHttpUtility.EcmaScriptStringLiteralEncode(builderUrl),
                Thread.CurrentThread.CurrentUICulture,
                SPHttpUtility.EcmaScriptStringLiteralEncode(editorId), dialogFeatures) + ";\" />"));

            row.Cells.Add(cell1);

            row.Cells.Add(cell2);

            table.Controls.Add(row);

            this.Controls.Add(table);

posted @ 2009-07-03 16:01  KID  阅读(321)  评论(0编辑  收藏  举报