Browse by Tags

Related Posts

  • Top level parent Xml Linq

    How do i get the top level parent of an XElement? This is how i did it but i got a feeling it's not really the best way of doing it. var parents = xd.Descendants( "pagina" ).Where(c => c.Attribute( "id" ).Value == id.ToString()).Ancestors(); int countParents = parents.Count...
    Posted to Getting Started (Forum) by enome.be on 04-07-2009, 12:00 AM
    Filed under: parent, top level, LINQ, xml
  • Linq to xml XElement change parent

    Heya, I got a sitemap/menu for a website that's stored in xml. So lets say somebody added all his links to the sitemap but isn't to happy about the result and he wants to change one of the links. Changing the value of the elements isn't a problem but it's when the user wants to give the...
    Posted to Getting Started (Forum) by enome.be on 03-31-2009, 12:00 AM
    Filed under: parent, change, LINQ, xml
  • Find parent node's child elements

    Hello everyone. All new and fresh at ASP.NET / C# and I ran into some problems which I hope you can answer. See, I have a menu from an XML feed that checks from the absolute path. My problem is that once I go on the node which has childnodes (the childnodes is probably rendered) and click into one of...
    Posted to XML and XmlDataSource Control (Forum) by JanHartmann on 12-01-2008, 12:00 AM
    Filed under: parent, loop, xml, child nodes
  • Update Parent Page Label From User Control

    Hi, I have what I hope to be a relativly simple question. I have a label on my main page, which needs to be updated based on some information from a user control. The user control has a DDL which gives a querystring the month and year selected from the DDL. I need the label on the main page to update...
    Posted to Getting Started (Forum) by sliprix on 06-09-2008, 12:00 AM
    Filed under: page, parent, Update, user, control
  • Re: Parent Node Data Within Child For Each Loop

    Well with XPath .. or parent::node() gives you the parent node. If you know you are looking for a particular parent element then you can do parent::foo to select the parent element named 'foo'. Then there is the ancestor axis so ancestor::foo selects any ancestor elements named 'foo'...
    Posted to XML and XmlDataSource Control (Forum) by Martin_Honnen on 07-01-2009, 12:00 AM
    Filed under: xpath, parent, ancestor
  • Re: Climbing up the control hierarchy with nested gridviews

    You are going to need to find the parent row recursively. Replace your GetParentControl with some code like this: protected void GridView3_RowEditing(object sender, GridViewEditEventArgs e) { //Current GridView Row Index int currentRowIndex = e.NewEditIndex; //Need to find the parentGridViewControl GridView...
    Posted to Data Presentation Controls (Forum) by jclark434175 on 11-10-2009, 12:00 AM
    Filed under: GridView, recursive, parent
Page 1 of 1 (6 items)