Search

You searched for the word(s): userid:138785

Matching Posts

  • Re: iterate table rows and retrieve hiddenfields

    I think you missunderstod me, for each row in the table there is a checkbox and a hiddenfield that hold a ID, when checking the checkbox I need to find the hiddenfield that is on the same row as the checkbox I checked.
    Posted to Web Forms (Forum) by modig on 12/16/2009
  • iterate table rows and retrieve hiddenfields

    Hi I have a panel that I fill with a table from codebehind, each row have a hiddenfield with a id, and a checkbox. Theese controls are also created from codebehind. I would like to iterate each row in this table and retrieve the hiddenfield and its value for each row that checkbox is checked. This is what I got so far.. For Each o As Object In TransferPanel.Controls Dim TID As Integer = 0 If TypeOf o Is CheckBox Then Dim chk As CheckBox = TryCast(o, CheckBox) If chk.Checked Then Dim hf As HiddenField
    Posted to Web Forms (Forum) by modig on 12/15/2009
  • Re: edit and delete xml using linq

    Hi If I wanted to iterate all "book" nodes and their child nodes, how would that linq query look like?
    Posted to XML and XmlDataSource Control (Forum) by modig on 12/11/2009
  • lambda filters

    Hi I currently use this lien to remove xml emelents and their childs.. xmldoc.Elements("book").First(Function(b) CInt(b.Attribute("id")) = ArticleID).Remove() But I now need to filter out based on two more attributes, so I would also like to do like this... Function(b) CInt(b.Attribute("LID")) = LID Function(b) CInt(b.Attribute("VID")) = VID But that does not work, how do I do that?
    Posted to XML and XmlDataSource Control (Forum) by modig on 12/11/2009
  • Re: lambda filters

    Excellent, Thanks!
    Posted to XML and XmlDataSource Control (Forum) by modig on 12/11/2009
  • edit and delete xml using linq

    Hi I need to be able to delete element and childs values in a xml file that look like this.. <?xml version="1.0" encoding="utf-8"?> <books> <book id="1"> <image>image.jpg</image> <name>book description</name> <Chapters> <ChapterDescription></ChapterDescription> <ChapterName></ChapterName> </Chapters> <book id="2"> <image>image.jpg</image> <name>book description<
    Posted to XML and XmlDataSource Control (Forum) by modig on 12/10/2009
  • Re: edit and delete xml using linq

    Sorry for the missing closing books element, It was only a typo. The xml should look like you wrote. Thanks for the code, its just what I needed.
    Posted to XML and XmlDataSource Control (Forum) by modig on 12/10/2009
  • check if a element exsist

    It works fine if Hi I have this linq code.... Dim Books = From feed In xml.Descendants("MyBook") _ Select BookID = feed.Element("id").Value, _ layout = feed.Element("layout").Value It works fine if all element are present, but if the "layout" element isn't present I get an exception. Can someone please tell me how I can check wheather a element is present in the xml string or not.
    Posted to XML and XmlDataSource Control (Forum) by modig on 11/30/2009
  • Re: check if a element exsist

    Hi Martin Your first solution was just what I needed, Thanks a lot!
    Posted to XML and XmlDataSource Control (Forum) by modig on 11/30/2009
  • Re: Cannot remove an entity that has not been attached.

    Hi I now changed it to this... Inherits DataClasses1DataContext Public Function FindCommentByID(ByVal ID As Integer) As UserComment Dim query = From q As UserComment In Me.UserComments _ Where q.ID = ID _ Select q If query.Count > 0 Then Return query.FirstOrDefault() Else Return Nothing End If End Function Public Sub DeleteCommentByID(ByVal ID As Integer) Dim c As UserComment = FindCommentByID(ID) Me.UserComments.DeleteOnSubmit(c) Me.SubmitChanges() End Sub But now I get this error, when opening
Page 1 of 28 (278 items) 1 2 3 4 5 Next > ... Last »