public static void ForceChange(this Element e) { //e.DomContainer.Eval("$('#" + e.Id + "').change();"); try { e.DomContainer.Eval(string.Format("$({0}).change();", e.GetJavascriptElementReference())); } catch { } }
private static string GetFrameElementNameOrId(Element frameElement) { var idOrName = frameElement.Name; if (string.IsNullOrEmpty(idOrName)) { idOrName = frameElement.Id; } if (string.IsNullOrEmpty(idOrName)) { idOrName = "frame_" + frameElement.GetJavascriptElementReference(); frameElement.SetAttributeValue("Id", idOrName); } return(idOrName); }