Beispiel #1
0
 private void CargarOrdenDivs()
 {
     try
     {
         EmpleadosCOM componente = new EmpleadosCOM();
         DataSet      ds         = componente.sp_order_widgets(Convert.ToString(Session["usuario"]));
         DataTable    dt         = ds.Tables[0];
         string       value      = dt.Rows[0]["order"].ToString().Trim();
         if (value != "")
         {
             StringBuilder sb = new StringBuilder();
             sb.Append("<script type='text/javascript'>");
             sb.Append("$(document).ready(function () {");
             sb.Append(value);
             sb.Append("});");
             sb.Append("</script>");
             ScriptManager.RegisterStartupScript(this, GetType(), Guid.NewGuid().ToString(), sb.ToString(), false);
         }
     }
     catch (Exception ex)
     {
         Toast.Error(ex.Message, this);
     }
 }