Click here to Skip to main content
15,895,848 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionGet records between Today and 2 years from input date Pin
munklefish15-Apr-08 7:49
munklefish15-Apr-08 7:49 
GeneralRe: Get records between Today and 2 years from input date [modified] Pin
Blue_Boy15-Apr-08 11:28
Blue_Boy15-Apr-08 11:28 
QuestionRe: Get records between Today and 2 years from input date Pin
munklefish15-Apr-08 23:45
munklefish15-Apr-08 23:45 
GeneralRe: Get records between Today and 2 years from input date Pin
Blue_Boy16-Apr-08 0:22
Blue_Boy16-Apr-08 0:22 
GeneralRe: Get records between Today and 2 years from input date Pin
munklefish16-Apr-08 1:06
munklefish16-Apr-08 1:06 
GeneralRe: Get records between Today and 2 years from input date Pin
Blue_Boy16-Apr-08 4:13
Blue_Boy16-Apr-08 4:13 
GeneralRe: Get records between Today and 2 years from input date Pin
munklefish16-Apr-08 4:52
munklefish16-Apr-08 4:52 
GeneralRe: Get records between Today and 2 years from input date Pin
Blue_Boy16-Apr-08 5:04
Blue_Boy16-Apr-08 5:04 
GeneralTransactionScope and EntLib Pin
Rohde15-Apr-08 7:42
Rohde15-Apr-08 7:42 
GeneralRe: TransactionScope and EntLib Pin
Rohde15-Apr-08 9:14
Rohde15-Apr-08 9:14 
GeneralDynamic Link disabling in a GridView Pin
Ekjon15-Apr-08 6:49
Ekjon15-Apr-08 6:49 
GeneralRe: Dynamic Link disabling in a GridView Pin
Ekjon15-Apr-08 12:00
Ekjon15-Apr-08 12:00 
GeneralRe: Dynamic Link disabling in a GridView Pin
Herman<T>.Instance16-Apr-08 0:35
Herman<T>.Instance16-Apr-08 0:35 
GeneralConfused GridView Count Question Pin
ffowler15-Apr-08 5:18
ffowler15-Apr-08 5:18 
GeneralRe: Confused GridView Count Question Pin
Ekjon15-Apr-08 11:02
Ekjon15-Apr-08 11:02 
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 

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.