Click here to Skip to main content
15,889,651 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to make the ListView to display each thumbnail immediately after it's loaded? Pin
Sascha Lefèvre6-Nov-17 3:00
professionalSascha Lefèvre6-Nov-17 3:00 
GeneralRe: How to make the ListView to display each thumbnail immediately after it's loaded? Pin
Gerry Schmitz4-Nov-17 7:39
mveGerry Schmitz4-Nov-17 7:39 
QuestionRun List Of Tasks Sequentially and Process Them As The Complete Pin
Kevin Marois1-Nov-17 8:47
professionalKevin Marois1-Nov-17 8:47 
AnswerRe: Run List Of Tasks Sequentially and Process Them As The Complete Pin
ZurdoDev1-Nov-17 9:37
professionalZurdoDev1-Nov-17 9:37 
AnswerRe: Run List Of Tasks Sequentially and Process Them As The Complete Pin
Sascha Lefèvre1-Nov-17 10:31
professionalSascha Lefèvre1-Nov-17 10:31 
AnswerRe: Run List Of Tasks Sequentially and Process Them As The Complete Pin
BillWoodruff2-Nov-17 17:56
professionalBillWoodruff2-Nov-17 17:56 
AnswerRe: Run List Of Tasks Sequentially and Process Them As The Complete Pin
MadMyche14-Nov-17 8:35
professionalMadMyche14-Nov-17 8:35 
QuestionC#+WebBrowser+JavaScript - full download Pin
kama_kama31-Oct-17 12:03
kama_kama31-Oct-17 12:03 
Good time of day!:).Net 4.0, console. I need to write a parser page in console mode to get the code page in the form in which it is displayed to the user after download, without clicking the buttons, scrolling, and other events. I use this code, but it returns absolutely not what you need. In what ways can I get my desired result? I use other methods or components?

Доброе время суток!:).Net 4.0, консоль. Мне необходимо для написания парсера страницы сайта в консольном режиме получить код страницы в том виде, в каком ее видит пользователь после загрузки - без нажимания на кнопки, прокрутки и других событий. Я использую такой код, однако он возвращает совершенно не то, что нужно. Какими способами я могу получить нужный мне результат? Мне использовать другие методы или компоненты?

C#
                   try
                    {
                        wb = new WebBrowser();
                        wb.Navigate(linkNorm);
                        wb.ScriptErrorsSuppressed = true;
                        wb.DocumentCompleted += new WebBrowserDocumentCompletedEventHandler(w_DocumentCompleted);
                        while (wb.ReadyState != WebBrowserReadyState.Complete)
                        {
                            Application.DoEvents();
                        }
                        originalText = wb.DocumentText;
                        wb.Dispose();
                    }
                    catch (Exception ex1)
                    {

                    }

void w_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
    Trace.WriteLine(wb.DocumentText);
}


Change method to
wb.Document.Body.OuterHtml
- not help me. Result is so bad.

I think this is a pretty simple task, probably someone already solved

QuestionRe: C#+WebBrowser+JavaScript - full download Pin
Karthik_Mahalingam31-Oct-17 17:00
professionalKarthik_Mahalingam31-Oct-17 17:00 
AnswerRe: C#+WebBrowser+JavaScript - full download Pin
kama_kama31-Oct-17 20:08
kama_kama31-Oct-17 20:08 
QuestionWhat's The Best Way To Do This? Pin
Kevin Marois31-Oct-17 7:04
professionalKevin Marois31-Oct-17 7:04 
AnswerRe: What's The Best Way To Do This? Pin
Gerry Schmitz31-Oct-17 12:08
mveGerry Schmitz31-Oct-17 12:08 
GeneralRe: What's The Best Way To Do This? Pin
Rob Philpott1-Nov-17 3:04
Rob Philpott1-Nov-17 3:04 
GeneralRe: What's The Best Way To Do This? Pin
peterkmx2-Nov-17 3:49
professionalpeterkmx2-Nov-17 3:49 
GeneralRe: What's The Best Way To Do This? Pin
Gerry Schmitz2-Nov-17 5:31
mveGerry Schmitz2-Nov-17 5:31 
AnswerRe: What's The Best Way To Do This? Pin
Pete O'Hanlon31-Oct-17 21:45
mvePete O'Hanlon31-Oct-17 21:45 
GeneralRe: What's The Best Way To Do This? Pin
Kevin Marois1-Nov-17 5:43
professionalKevin Marois1-Nov-17 5:43 
GeneralRe: What's The Best Way To Do This? Pin
Pete O'Hanlon1-Nov-17 5:59
mvePete O'Hanlon1-Nov-17 5:59 
AnswerRe: What's The Best Way To Do This? Pin
Nathan Minier1-Nov-17 1:36
professionalNathan Minier1-Nov-17 1:36 
SuggestionRe: What's The Best Way To Do This? Pin
Sascha Lefèvre1-Nov-17 2:01
professionalSascha Lefèvre1-Nov-17 2:01 
GeneralRe: What's The Best Way To Do This? Pin
Nathan Minier1-Nov-17 2:34
professionalNathan Minier1-Nov-17 2:34 
QuestionRe: What's The Best Way To Do This? Pin
Eddy Vluggen1-Nov-17 10:19
professionalEddy Vluggen1-Nov-17 10:19 
AnswerRe: What's The Best Way To Do This? Pin
Wendelius1-Nov-17 10:51
mentorWendelius1-Nov-17 10:51 
QuestionNext generics Problem Pin
Kevin Marois31-Oct-17 6:03
professionalKevin Marois31-Oct-17 6:03 
AnswerRe: Next generics Problem Pin
harold aptroot31-Oct-17 6:11
harold aptroot31-Oct-17 6:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.