473,408 Members | 2,009 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Converting a Windows WebBrowser control into an ASP web form

Hi,

I have a windows control containing the web browser control. The user makes
some changes to the form in the web browser control, and then the data is
saved.

I now need to convert this form contained in the web browser control to sit
inside a web form. I can load the data quite easily. But in the 'windows'
version of the control, saving the data is made easy by being able to
reference the Document object of the Webbrowser control and then examing the
HtmlElement objects and their values.

If I am doing this in an ASP form now, is there any way of still grabbing an
HtmlDocument object from the browser? I have lots of code, like the example
below, which i need to work with.

HtmlElementCollection tableRows =
this.webBrowser.Document.GetElementsByTagName("tr" );

foreach (HtmlElement tr in tableRows)
{ /* Do work here */ }

Ideally, I would want to keep the code which retrieves web form values
inside my code behind.

Many thanks, CodeRazor
Nov 4 '08 #1
0 1716

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Adam Kenney | last post by:
Is there a control for Windows Forms that will display HTML (from either a variable or a stored file) as it would appear in a browser window? I'm trying to create a Windows Form that includes a...
7
by: Robert May | last post by:
I have an application that uses the Ax web browser object. When I call the IHTMLElement.click() method on an input button (<input type="submit"> or <input type="button">), the click fires...
4
by: Randy | last post by:
Hi, ok, I found a way to connect to a running instance of an (external) Internet Explorer and access - for example - the html source. That works fine! But now I have running application with...
2
by: jasonhartsoe | last post by:
I'm using Visual Studio 2005 Team Edition....using visual basic. I'm trying to use the webbrowser control. In the webbrowser control I have it got to a page where there is a form. It waits for...
4
by: Dennis | last post by:
Is there any way I can display an html string in a windows form or windows form control like a rich text box. Note, I'm using windows forms, not the web. Thanks for any help. -- Dennis in...
1
by: Joe | last post by:
HI Trying to figure out the difference between these 2 browser I am embedding a MS office Document (Word/Excel) in a WebBrowser on a Form With AxSHDocVw I can do the following to save the...
0
by: oz | last post by:
Hi All, I want to make a dictionary with windows application. My data is html format. therefore, i use webBrowser control on my windows form. If the user click any word in webBrowser control, word...
3
by: Nordiek, Christof | last post by:
I have an applaction, that is an addin for Outlook. It opens a form with a WebBrowser control wich then shows a page from a Webserver. It works fine, but when I installed it on Windows Server 2003...
7
by: =?Utf-8?B?U2hpdmEgUmFtYW5p?= | last post by:
I have a windows application with multiple forms & another web application. Now I need a parent EXE or Application which need to act as a container to these application. Example : My existing Web...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.