TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Vlad Penchuk
NA
3
3.3k
HELP ME!! C# Cannot implicitly convert type 'System.Windows.Forms.HtmlElem… to 'string'
Jun 8 2011 4:23 AM
i dont know how to fix this.. thanks!!
woodproduction is my variable.
wb is my web browser.
l1 is the ID of a value.
value is the value of l1.
woodprodval is a label i wish to place the value of l1.
l1 is a number. it changes every hour.
when a user clicks the refresh button this script will run and try to load that l1 number into the label's text..
HtmlElement woodproduction = wb.Document.All["l1"];
woodproduction.GetAttribute("value ");
woodprodval.Text = (woodproduction); // <<--error
Cannot implicitly convert type 'System.Windows.Forms.HtmlElement' to 'string'.
the page's line of HTML looks like this:
<span id="l1" class="value ">444/1200</span>
and the page visible to my eye shows:
444/1200
the current number is 444. that is the number i am in need of fetching.
Reply
Answers (
1
)
How can I check a new line and space characters
Sub heading row in datagrid view header row