Forum: C# May 27th, 2009 |
| Replies: 6 Views: 633 Thanks. I'm just trying pull all the links from a website. It doesn't seem to get the links that are in javascript. The links show up in the original source that the browser gives me, but leaves that... |
Forum: C# May 27th, 2009 |
| Replies: 6 Views: 633 Would the local file be a txt file? Sorry, I'm pretty new to downloading fjles. |
Forum: C# May 27th, 2009 |
| Replies: 6 Views: 633 I got the same result doing these two methods.
string getPageSource(string URL)
{
System.Net.WebClient webClient = new System.Net.WebClient();
string strSource =... |
Forum: C# May 27th, 2009 |
| Replies: 6 Views: 633 I've tried a couple of ways of getting the source of a page, but it doesn't return the whole thing. I'm trying to get it to return the the whole source like it does if you view it in a web browser.... |
Forum: C# Jan 1st, 2009 |
| Replies: 2 Views: 491 Is there anyway to default the webbrowser control to IE with no add-ons? |
Forum: C# Dec 24th, 2008 |
| Replies: 3 Views: 723 Thanks guys. I put the links in a list but decided to do something totally different on what I planned on doing. |
Forum: C# Dec 21st, 2008 |
| Replies: 3 Views: 723 I'm getting all the links from a web page and displaying them in a listView box. How do I prevent duplicates? I know how to block some links that I don't want by using the StartsWith and Equals and... |
Forum: C# Dec 3rd, 2008 |
| Replies: 2 Views: 2,140 Is it possible to display in image in a listView box? I'm working on a link checker all the links on a webpage are put in a listView box. Right now I just have the words "Good" and "Bad" by each link... |
Forum: C# Dec 3rd, 2008 |
| Replies: 28 Views: 1,604 Yes!! Thank you for your help!! I just added this code in there just to get it to run.
if (!(linkItem.StartsWith("http://") || linkItem.StartsWith("https://")))
linkItem =... |
Forum: C# Dec 2nd, 2008 |
| Replies: 28 Views: 1,604 yeah, my bad. I was just looking at the console output the first time. Then I checked my locals and "javascript:void(0)" was in linkItem. |
Forum: C# Dec 2nd, 2008 |
| Replies: 28 Views: 1,604 |
Forum: C# Dec 2nd, 2008 |
| Replies: 28 Views: 1,604 linkItem is the website url string. It's the link that is being checked.
ex. http://www.facebook.com/ |
Forum: C# Dec 2nd, 2008 |
| Replies: 28 Views: 1,604 I just tried it on facebook.com and it worked fine. It took it a little while, but when it finished it showed up in my listView with "Good" or "Bad" next to it. |
Forum: C# Dec 2nd, 2008 |
| Replies: 28 Views: 1,604 Here is the exception detail.
System.NotSupportedException was unhandled
Message="The URI prefix is not recognized."
Source="System"
StackTrace:
at... |
Forum: C# Dec 2nd, 2008 |
| Replies: 28 Views: 1,604 Tried it, no difference. I changed it back and now I'm getting alot more "Good" links. I still get alot of "first chance exceptions" though. |
Forum: C# Dec 1st, 2008 |
| Replies: 28 Views: 1,604 It doesn't leave the trailing / after the aspx, html, php, or anything else. I tried to check the links on microsoft.com and got an unhandled exceptions error. It said something about their being a... |
Forum: C# Dec 1st, 2008 |
| Replies: 28 Views: 1,604 In my first code, the links showed up in my listView as "http://www.webpage.com/." Now nothing is showing up in my box. I don't know if that is because it is waiting for it to check all the sites or... |
Forum: C# Dec 1st, 2008 |
| Replies: 28 Views: 1,604 Yeah, that's pretty much what I was meaning. Appears I had that at one time, just not at the same time! That code seems to work, but when I click the "Check Links!" button, I just get "A first chance... |
Forum: C# Dec 1st, 2008 |
| Replies: 28 Views: 1,604 The object of the foreach loop was link right? Doesn't it output it in string because of the listViewLinks.Items.ToString()? Anyway, if I'm going to check the links, it probably needs to timeout... |
Forum: C# Nov 28th, 2008 |
| Replies: 28 Views: 1,604 Ok guys, I must be really missing something. I've been working on this one spot for a couple of days now. I went back to the first code that I posted. I've tried adding a while loop and calling the... |
Forum: C# Nov 28th, 2008 |
| Replies: 28 Views: 1,604 Ok. I tried doing what you said. I have changed it to this:
private void toolStripButtonLinks_Click(object sender, EventArgs e)
{
foreach (HtmlElement link in... |
Forum: C# Nov 27th, 2008 |
| Replies: 28 Views: 1,604 I created the first method, which gets and displays all the links in a web page in a listView when a button is pressed. I found the second method on a site that supposedly checks to see if a link is... |
Forum: C# Nov 25th, 2008 |
| Replies: 4 Views: 1,236 Thanks. I just just found a way to get the links really easy.
private void toolStripButtonLinks_Click(object sender, EventArgs e)
{
foreach(HtmlElement link in... |
Forum: C# Nov 24th, 2008 |
| Replies: 4 Views: 1,236 I'm trying to get all the links from a web page. So far I have the page source stored in a string. I have done similar things like this in Java, using a string tokenizer. I've looked around trying to... |
Forum: C# Nov 21st, 2008 |
| Replies: 12 Views: 3,755 Nope, they weren't registered!! Thank you so much! I registered some of the events and apparently there were on the textbox that I deleted. It works great now. |
Forum: C# Nov 21st, 2008 |
| Replies: 12 Views: 3,755 I deleted my TextBoxAddress. Here is my complete code.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;... |
Forum: C# Nov 21st, 2008 |
| Replies: 12 Views: 3,755 ok, I must be really messed up then. Going by the code and from what is on [URL="http://msdn.microsoft.com/en-us/library/system.windows.forms.webbrowser.url.aspx"], I have to create a webBrowser and... |
Forum: C# Nov 21st, 2008 |
| Replies: 12 Views: 3,755 Typing in an address and pressing enter now works, but the TextBoxAddress is still not updating and displaying the current page. |
Forum: C# Nov 21st, 2008 |
| Replies: 12 Views: 3,755 ok. I found the keypress event for TextBoxAddress. I clicked it and it put TextBoxAddress_KeyPress in the field next to it. Now what? |
Forum: C# Nov 20th, 2008 |
| Replies: 12 Views: 3,755 It's not catching the key press. What do I need to put in? I have created the from and have added this code. I'm new to C# and just trying to get use to it. What am I leaving out? |
Forum: C# Nov 20th, 2008 |
| Replies: 12 Views: 3,755 I'm trying to get this code from the microsoft msdn site working and having problems.
// Navigates to the URL in the address box when
// the ENTER key is pressed while the ToolStripTextBox has... |
Forum: C# Nov 17th, 2008 |
| Replies: 1 Views: 489 I have created a POP3 email client. I am having problems viewing the html and attachments in the message. Can somebody point me to a tutorial or a good site for this? I have googled it and found many... |
Forum: C# Oct 23rd, 2008 |
| Replies: 6 Views: 580 It works! Thanks guys. I changed it back to the first way and added the extra \r\n. |
Forum: C# Oct 22nd, 2008 |
| Replies: 6 Views: 580 Thanks Danny. I put the = in and it did the same thing.
I tried changing the code to this
Socket connectSocket = new Socket(AddressFamily.InterNetwork,
SocketType.Stream,... |
Forum: C# Oct 22nd, 2008 |
| Replies: 6 Views: 580 I'm trying to create a simple TCP client. The user enters the host, port, and a send statement(GET, HEAD, etc).
Then the Headers and everything else is returned back in a textbox. When I send the... |
Forum: C# Oct 21st, 2008 |
| Replies: 6 Views: 508 Thank you, that worked. I'm stupid |
Forum: C# Oct 21st, 2008 |
| Replies: 6 Views: 508 Can somebody please tell me what I'm doing wrong? I am creating a TCPClinet. I have 2 errors and both of them come back to this line.
... |
Forum: C# Oct 21st, 2008 |
| Replies: 7 Views: 3,899 is there a different command to use to just open a text file? |
Forum: C# Oct 21st, 2008 |
| Replies: 7 Views: 3,899 How do you open a file from the root directory without have to type the complete path like C:\folder\subfolder\file.txt? I have
System.Diagnostics.Process.Start("file.txt");
It works fine when... |
Forum: C# Oct 21st, 2008 |
| Replies: 6 Views: 1,044 I figured it out. I was leaving .Text out of it.
this.textBox1.AppendText(textBox2.Text); |