Click here to Skip to main content
11,927,324 members (51,585 online)
Rate this:
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 19:37pm
walterhevedeich 9-Jun-11 0:46am
Not clear. You want assign the data from "mov" attribute to troopsmov.Text? Is this your issue?
SAKryukov 9-Jun-11 0:56am
Right, a sequence of words, no more... Time to write some sentences.
tambores63 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..
SAKryukov 12-Jun-11 23:15pm
Still, no explanation of anything...
vlad781 13-Jun-11 21:49pm
I need to only run the code if there is some information to take from "mov"
SAKryukov 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
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.151126.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