Click here to Skip to main content
15,894,343 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
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
Comments
walterhevedeich 9-Jun-11 0:46am    
Not clear. You want assign the data from "mov" attribute to troopsmov.Text? Is this your issue?
Sergey Alexandrovich Kryukov 9-Jun-11 0:56am    
Right, a sequence of words, no more... Time to write some sentences.
--SA
[no name] 11-Jun-11 16:16pm    
Pointed but true remark ;)
vlad781 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..
Sergey Alexandrovich Kryukov 12-Jun-11 23:15pm    
Still, no explanation of anything...
--SA

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900