private static List <Form> GetEmbeddedForms(Document dom, Guid objectId, byte constType) { List <Form> formlist = new List <Form>(); int itemindexcounter = 0; foreach (var item in dom.forms.item) { if (!Kooboo.Sites.Render.Components.Manager.IsComponentElement(item)) { if (!Service.DomService.IsAspNetWebForm(item)) { Form form = new Form { OwnerObjectId = objectId, OwnerConstType = constType, Body = item.InnerHtml, KoobooId = DomService.GetKoobooId(item), Method = item.getAttribute("method") ?? "get", IsEmbedded = true }; form.Engine = item.getAttribute("engine"); form.ItemIndex = itemindexcounter; foreach (var att in item.attributes) { form.Attributes.Add(att.name, att.value); } formlist.Add(form); } } } return(formlist); }