Click here to Skip to main content
15,883,336 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Confused GridView Count Question Pin
Herman<T>.Instance16-Apr-08 0:32
Herman<T>.Instance16-Apr-08 0:32 
GeneralRe: Confused GridView Count Question Pin
ffowler16-Apr-08 2:08
ffowler16-Apr-08 2:08 
GeneralRe: Confused GridView Count Question Pin
Herman<T>.Instance16-Apr-08 2:15
Herman<T>.Instance16-Apr-08 2:15 
GeneralRe: Confused GridView Count Question Pin
ffowler16-Apr-08 3:23
ffowler16-Apr-08 3:23 
GeneralRe: Confused GridView Count Question Pin
Herman<T>.Instance16-Apr-08 3:30
Herman<T>.Instance16-Apr-08 3:30 
GeneralASP.NET, XML, VB.NET Pin
Dot Net rookie15-Apr-08 4:17
Dot Net rookie15-Apr-08 4:17 
GeneralRe: ASP.NET, XML, VB.NET Pin
led mike15-Apr-08 4:55
led mike15-Apr-08 4:55 
AnswerRe: ASP.NET, XML, VB.NET Pin
Ariel Kazeed15-Apr-08 4:56
Ariel Kazeed15-Apr-08 4:56 
Hi,

assuming the XML file is in a correct format and that some text are elements just under the root node, you could use XMLDocument to get to the desired node, then change the value and save the file again. Something like...

Private Sub ChangeXMLValue(ByVal XMLPath As String, ByVal NewValue As String)<br />
        ' Load XML<br />
        Dim xmlDoc As New Xml.XmlDocument<br />
        xmlDoc.Load(XMLPath)<br />
<br />
        ' Find node<br />
        Dim xmlNodes As Xml.XmlNodeList = xmlDoc.GetElementsByTagName("[Name Of the Tag which contains 'some text 1']")<br />
        If xmlNodes.Count > 0 Then ' Found it<br />
            ' Replace value <br />
            xmlNodes(0).Value = NewValue<br />
        End If<br />
<br />
        ' Replace XML <br />
        System.IO.File.Delete(XMLPath)<br />
        xmlDoc.Save(XMLPath)<br />
    End Sub


Something like that. Not tested but hope it helps. Smile | :)
GeneralRe: ASP.NET, XML, VB.NET Pin
Dot Net rookie17-Apr-08 3:41
Dot Net rookie17-Apr-08 3:41 
GeneralChanging from 3.5 framework to 3.0 Pin
ss.mmm15-Apr-08 3:42
ss.mmm15-Apr-08 3:42 
GeneralRe: Changing from 3.5 framework to 3.0 Pin
eyeseetee15-Apr-08 4:51
eyeseetee15-Apr-08 4:51 
Generaldate time format in insert record Pin
ptvce15-Apr-08 2:37
ptvce15-Apr-08 2:37 
GeneralRe: date time format in insert record Pin
eyeseetee15-Apr-08 3:14
eyeseetee15-Apr-08 3:14 
GeneralRe: date time format in insert record Pin
Herman<T>.Instance16-Apr-08 0:34
Herman<T>.Instance16-Apr-08 0:34 
GeneralRe: date time format in insert record Pin
ptvce16-Apr-08 1:14
ptvce16-Apr-08 1:14 
GeneralRe: date time format in insert record Pin
Herman<T>.Instance16-Apr-08 1:54
Herman<T>.Instance16-Apr-08 1:54 
GeneralBind Label Value to Button Pin
sjs4u15-Apr-08 2:30
sjs4u15-Apr-08 2:30 
GeneralRe: Bind Label Value to Button Pin
Ashish Sehajpal15-Apr-08 4:17
Ashish Sehajpal15-Apr-08 4:17 
Generalsms problem Pin
Miss Maheshwari15-Apr-08 1:53
Miss Maheshwari15-Apr-08 1:53 
GeneralRe: sms problem Pin
Christian Graus15-Apr-08 1:55
protectorChristian Graus15-Apr-08 1:55 
GeneralRe: sms problem Pin
Miss Maheshwari15-Apr-08 2:10
Miss Maheshwari15-Apr-08 2:10 
GeneralRe: sms problem Pin
Vasudevan Deepak Kumar15-Apr-08 2:21
Vasudevan Deepak Kumar15-Apr-08 2:21 
GeneralRe: sms problem Pin
SomeGuyThatIsMe15-Apr-08 2:51
SomeGuyThatIsMe15-Apr-08 2:51 
QuestionHow to add data in two columns in a grid view and display that in a third column. Pin
thoratih15-Apr-08 1:38
thoratih15-Apr-08 1:38 
GeneralRe: How to add data in two columns in a grid view and display that in a third column. Pin
Christian Graus15-Apr-08 1:54
protectorChristian Graus15-Apr-08 1:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.