Click here to Skip to main content
11,812,712 members (73,320 online)
Rate this: bad
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"];
            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.
Posted 8-Jun-11 18:37pm
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.
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...
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...

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

  Print Answers RSS
0 Abhinav S 205
1 CHill60 180
2 KrunalRohit 169
3 Palash Mondal_ 140
0 OriginalGriff 3,877
1 KrunalRohit 2,496
2 CPallini 2,240
3 Maciej Los 2,205
4 ppolymorphe 1,750

Advertise | Privacy | Mobile
Web01 | 2.8.151002.1 | Last Updated 9 Jun 2011
Copyright © CodeProject, 1999-2015
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