Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#2.0 C#3.0 C# C#4.0
so, i have the code:
 
HtmlElement troopmov = wb.Document.All["movements"];
            troopmov.GetAttribute("mov");
            troopsmov.Text = troopmov.InnerText;
 
troopmov is my variable to represent the seeked data.
movements is the ID of my seeked data.
mov is THEE seeked data(this is the data that i want to get, but it doesn't show up all the time. just sometimes.)
troopsmov is the label that i want to place that data from mov into..
 
so, i need to run the above code, ONLY if there is data to gather.
thanks
Posted 8-Jun-11 19:37pm
Comments
walterhevedeich at 9-Jun-11 0:46am
   
Not clear. You want assign the data from "mov" attribute to troopsmov.Text? Is this your issue?
SAKryukov at 9-Jun-11 0:56am
   
Right, a sequence of words, no more... Time to write some sentences.
--SA
tambores63 at 11-Jun-11 16:16pm
   
Pointed but true remark ;)
vlad781 at 9-Jun-11 12:00pm
   
yes, however "mov" is not alwats there, and when i run the code it gives me an error..other wise its there..
SAKryukov at 12-Jun-11 23:15pm
   
Still, no explanation of anything...
--SA
vlad781 at 13-Jun-11 21:49pm
   
I need to only run the code if there is some information to take from "mov"
SAKryukov at 14-Jun-11 16:15pm
   
Still not clear. What's "mov"? There is no such HTML element...
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Kornfeld Eliyahu Peter 169
1 Zoltán Zörgő 139
2 George Jonsson 135
3 PIEBALDconsult 130
4 OriginalGriff 120
0 OriginalGriff 6,165
1 DamithSL 4,658
2 Maciej Los 4,107
3 Kornfeld Eliyahu Peter 3,649
4 Sergey Alexandrovich Kryukov 3,342


Advertise | Privacy | Mobile
Web01 | 2.8.141220.1 | Last Updated 9 Jun 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100