Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:138785
More Search Options
RSS Available
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
Posted to
Data Access and ObjectDataSource Control
(Forum)
by
modig
on 9/29/2009
Page 1 of 28 (278 items) 1
2
3
4
5
Next >
...
Last »
ASP.NET:
ASP.NET MVC 2 RC Released
WindowsClient:
Very exciting Microsoft Pivot from Live Labs
WindowsClient:
XAML for UI & .rc files
TechNet Edge:
DNS Security (DNSSec) Overview
Silverlight:
Silverlight 4 demos from my PDC Keynote now available
Channel 9:
Channel 9 Live at PDC09: Dave Campbell
Channel 9:
Channel 9 Live at PDC09: Yousef Khalidi
Channel 9:
Twitter App for Zune Launches
WindowsClient:
Incarnate
WindowsClient:
Track Fedex packages with Bing
Channel 9:
Marty O'Donnell - The man behind the Halo Music
Channel 10:
Twitter App for Zune Launches
WindowsClient:
Rotate your text in the WPF DataGrid Column Headers
WindowsClient:
New gameplay video with D&D on Surface
WindowsClient:
ViewModel Pattern and Speech as UI. Help me Obi Wan, where’s the View?
Channel 9:
Karsten Januszewski and Tim Aidlin: Introducing Incarnate
Channel 9:
Reactive Extensions API in depth: Retry
Channel 10:
iBing uBing: Bing iPhone App Arrives
WindowsClient:
Migrating an Outlook Client to .NET Framework 4 in Visual Studio 2010
Channel 10:
A Look Behind Mouse 2.0
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online