1 <epoint:WebToolBar runat="server" ID="WebToolBar1" AddTarget="top" RelationName="培训信息" 2 EnableUpdate="false" OnCommandClick="WebToolBar1_CommandClick" GridBelongPlaceHolder="cphContent" TargetGrid="DataGrid1" 3 HideSelectValueBelongPlaceHolder="cphToolBar" HideSelectValueID="hidSelectedFields" EnableDelete="false" EnableAdd="false" EnableExport="false"> 4 <Commands> 5 <epoint:ToolCommand CausesValidation="true" CommandName="bmExcel" CommandType="Normal" Text="导出" /> 6 </Commands> 7 </epoint:WebToolBar>
后台隐藏方法
1 WebToolBar1.Commands.GetNamedItem("按钮名字").Visible = false;
1 public string PiCi 2 { 3 get 4 { 5 if (Request.QueryString["PiCi"] != null) 6 { 7 return Request.QueryString["PiCi"].ToString(); 8 } 9 else 10 { 11 return ""; 12 } 13 } 14 }
1 new Epoint.MisBizLogic2.BL.CodeMain().GetCodeText_FromHash("PX_培训形式", mplan.PXForm);
1 <%#new Epoint.MisBizLogic2.BL.CodeMain().GetCodeText_FromHash("PX_性别",Convert.ToString( DataBinder.Eval(Container, "DataItem.Sex")))%>
原文:http://www.cnblogs.com/lyhsblog/p/5966141.html