Click here to Skip to main content
15,921,841 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Need to capture data of currently displayed webpage Pin
PJWindsor8-Jul-09 4:17
PJWindsor8-Jul-09 4:17 
GeneralRe: Need to capture data of currently displayed webpage Pin
Antone Eason8-Jul-09 4:27
professionalAntone Eason8-Jul-09 4:27 
GeneralRe: Need to capture data of currently displayed webpage Pin
Antone Eason8-Jul-09 4:32
professionalAntone Eason8-Jul-09 4:32 
GeneralRe: Need to capture data of currently displayed webpage Pin
PJWindsor8-Jul-09 5:03
PJWindsor8-Jul-09 5:03 
GeneralRe: Need to capture data of currently displayed webpage Pin
Antone Eason8-Jul-09 5:10
professionalAntone Eason8-Jul-09 5:10 
GeneralRe: Need to capture data of currently displayed webpage Pin
PJWindsor8-Jul-09 5:20
PJWindsor8-Jul-09 5:20 
GeneralRe: Need to capture data of currently displayed webpage Pin
Antone Eason8-Jul-09 9:39
professionalAntone Eason8-Jul-09 9:39 
GeneralRe: Need to capture data of currently displayed webpage Pin
PJWindsor8-Jul-09 5:47
PJWindsor8-Jul-09 5:47 
It is possible to get the HTML From a WebBrowser Control see below code sorry if you dont know C#

I just put a textbox on the page to enter the url, a button to navigate to the url(btnLoadWebsite_Click handles this button) and a button to get the HTML from the currently displayed page (btnGetHTML_Click handles this).

private void btnLoadWebsite_Click(object sender, EventArgs e)
        {           
            try
            {
                Uri oURL = new Uri(txtURL.Text); //Get the Url from the text box must be format http://www.google.com
                wbMain.Navigate(oURL); //Navigate to the Url
            }

            catch (Exception err)
            {
                MessageBox.Show(err.ToString());
            }
        }


        private void btnGetHtml_Click(object sender, EventArgs e)
        {
            MessageBox.Show(wbMain.DocumentText); //Display the HTML
        }


The important bit is wbMain.DocumentText. wbMain is the WebBrowser Control and DocumentText is the property that holds the current html page text.

Phil
QuestionCalling a window from an ASP Web Page Pin
ahmedmahiuddin8-Jul-09 2:51
ahmedmahiuddin8-Jul-09 2:51 
AnswerRe: Calling a window from an ASP Web Page Pin
Manas Bhardwaj8-Jul-09 2:59
professionalManas Bhardwaj8-Jul-09 2:59 
GeneralRe: Calling a window from an ASP Web Page [modified] Pin
ahmedmahiuddin8-Jul-09 3:05
ahmedmahiuddin8-Jul-09 3:05 
GeneralRe: Calling a window from an ASP Web Page Pin
Manas Bhardwaj8-Jul-09 3:14
professionalManas Bhardwaj8-Jul-09 3:14 
GeneralRe: Calling a window from an ASP Web Page Pin
ahmedmahiuddin8-Jul-09 3:42
ahmedmahiuddin8-Jul-09 3:42 
QuestionVery small problem - but i had stucked here Pin
Satish - Developer8-Jul-09 1:47
Satish - Developer8-Jul-09 1:47 
AnswerRe: Very small problem - but i had stucked here Pin
DoctorMick8-Jul-09 2:04
DoctorMick8-Jul-09 2:04 
GeneralRe: Very small problem - but i had stucked here Pin
Spirits Soft Tech Nology , Dharmapuri8-Jul-09 2:06
Spirits Soft Tech Nology , Dharmapuri8-Jul-09 2:06 
GeneralRe: Very small problem - but i had stucked here Pin
Manas Bhardwaj8-Jul-09 2:19
professionalManas Bhardwaj8-Jul-09 2:19 
GeneralRe: Very small problem - but i had stucked here Pin
Abhijit Jana8-Jul-09 2:25
professionalAbhijit Jana8-Jul-09 2:25 
GeneralRe: Very small problem - but i had stucked here Pin
Christian Graus8-Jul-09 2:27
protectorChristian Graus8-Jul-09 2:27 
GeneralRe: Very small problem - but i had stucked here Pin
Satish - Developer8-Jul-09 2:28
Satish - Developer8-Jul-09 2:28 
GeneralRe: Very small problem - but i had stucked here Pin
Satish - Developer8-Jul-09 2:37
Satish - Developer8-Jul-09 2:37 
AnswerRe: Very small problem - but i had stucked here Pin
Aman Bhullar8-Jul-09 2:06
Aman Bhullar8-Jul-09 2:06 
AnswerRe: Very small problem - but i had stucked here Pin
Gamzun8-Jul-09 2:15
Gamzun8-Jul-09 2:15 
AnswerRe: Very small problem - but i had stucked here Pin
Christian Graus8-Jul-09 2:26
protectorChristian Graus8-Jul-09 2:26 
GeneralRe: Very small problem - but i had stucked here Pin
Satish - Developer8-Jul-09 2:30
Satish - Developer8-Jul-09 2:30 

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.