调用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(" <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);