Search found 97 matches

by miketartaglia
Thu Feb 21, 2019 12:35 pm
Forum: PowerShell GUIs
Topic: XML data to a label.text property
Replies: 38
Views: 1954

Re: XML data to a label.text property

I don't know where that code is. What you are talking about is a text box Named BindingURL. I enter text in this box and I assumed that the variable is set then. Please correct me if I'm wrong.
by miketartaglia
Thu Feb 21, 2019 11:48 am
Forum: PowerShell GUIs
Topic: XML data to a label.text property
Replies: 38
Views: 1954

Re: XML data to a label.text property

Please post the code that sets that variable? This variable ->>> $detailsLBL $buttonSEARCH_Click= { #TODO: Place custom script here [xml]$file = (Get-Content 'c:\test\programdata\Server Configuration.xml') $detailsLBL.Text = ($file.SelectSingleNode("//Instance[BindingHostName='$BindingURL']").Name) }
by miketartaglia
Thu Feb 21, 2019 10:50 am
Forum: PowerShell GUIs
Topic: XML data to a label.text property
Replies: 38
Views: 1954

Re: XML data to a label.text property

No that doesn't make any sense. What has a value of "TEXT"? detailsLBL - This is the label where I want the value of the XML code you wrote to show as the .NAME at the end of the XML line. What switches to NULL? detailsLBL switches to NULL instead of the .NAME above. What code have you changed? Non...
by miketartaglia
Thu Feb 21, 2019 10:32 am
Forum: PowerShell GUIs
Topic: XML data to a label.text property
Replies: 38
Views: 1954

Re: XML data to a label.text property

The problem is that it still shows up as NULL or blank. It starts off with a value of "TEXT" (I set that up for troubleshooting) after I click the button (the code you have already seen), it switches to NULL. So we probed that your code works, but I can not make the value of that specific output to ...
by miketartaglia
Thu Feb 21, 2019 7:30 am
Forum: PowerShell GUIs
Topic: XML data to a label.text property
Replies: 38
Views: 1954

Re: XML data to a label.text property

The textbox is named BindingURL. I thought that was considered a variable when using it in code. My mistake. So since $BindingURL is NULL that makes sense. I think I am back in rookie status then ;)
by miketartaglia
Thu Feb 21, 2019 6:46 am
Forum: PowerShell GUIs
Topic: XML data to a label.text property
Replies: 38
Views: 1954

Re: XML data to a label.text property

My original question was how to get that output of just the Name from that Instance node into the $detailsLBL control text property. It still doesn't work. It still shows up as BLANK. $buttonSEARCH_Click= { #TODO: Place custom script here [xml]$file = (Get-Content 'c:\test\programdata\Server Config...
by miketartaglia
Wed Feb 20, 2019 7:53 pm
Forum: PowerShell GUIs
Topic: XML data to a label.text property
Replies: 38
Views: 1954

Re: XML data to a label.text property

My original question was how to get that output of just the Name from that Instance node into the $detailsLBL control text property. It still doesn't work. It still shows up as BLANK. $buttonSEARCH_Click= { #TODO: Place custom script here [xml]$file = (Get-Content 'c:\test\programdata\Server Configu...
by miketartaglia
Wed Feb 20, 2019 6:15 pm
Forum: PowerShell GUIs
Topic: XML data to a label.text property
Replies: 38
Views: 1954

Re: XML data to a label.text property

My apologies, the post never saved for some reason. Below is the code for the node. I hope this is what you are looking for. <Instance> <Name>billybob</Name> <Version>8.26.0.0</Version> <InstalledVersion>8.26.0.0</InstalledVersion> <LicenseKey>111-222-333-44444</LicenseKey> <AppPoolName>billybob</Ap...
by miketartaglia
Wed Feb 20, 2019 3:10 pm
Forum: PowerShell GUIs
Topic: XML data to a label.text property
Replies: 38
Views: 1954

Re: XML data to a label.text property

I just posted the XML node
by miketartaglia
Wed Feb 20, 2019 2:07 pm
Forum: PowerShell GUIs
Topic: XML data to a label.text property
Replies: 38
Views: 1954

Re: XML data to a label.text property

xml Servers
--- -------
version="1.0" encoding="utf-8" Servers