I have made this script to open a fancybox from code behind, but it keeps saying “u is undefined”… not sure what’s wrong
StringBuilder sb = new StringBuilder();
sb.AppendLine("<script>");
sb.AppendLine("$.fancybox('../Popups/EndedProduction.aspx?Iframe', {");
sb.AppendLine("'width': 557,");
sb.AppendLine("'height': 244,");
sb.AppendLine("'transitionIn': 'none',");
sb.AppendLine("'transitionOut': 'none'");
sb.AppendLine("});");
sb.AppendLine("</script>");
Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "Completed", sb.ToString());
found a way around it.