Ejemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (String.IsNullOrEmpty(ControlFile) ||
         String.IsNullOrEmpty(ControlFile.Split('.')[0]) ||
         !File.Exists(Widgethelper.GetDataControlPath(ControlFile)))
     {
         Response.Write("<p style='font-size:14px;color:red'>找不到控件的配置文件,请确认控件是否存在或控件标签格式是否正确!</p>");
         Response.End();
     }
 }