473,651 Members | 2,937 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

populate browser-page controls on client-side

is it possible to write a vb.net code (intended to run on the client-side)
that would invoke an instance of IE, have it download a page from a certain
URL, and then pre-populate some of the controls on that page, before
transferring focus to the browser-page and showing it to the user? (the
user would be responsible for submitting the page.)
Nov 20 '05 #1
5 1890
javascript:wind ow.open(....) -> prepopulate the new page on the server side
ie use an aspx page.

remember that even though asp.net is far smarter than the older cgi apps,
all processing is done server side. Anything that is required on the client
side, you will need to do with client side script

Jody
MCSD.Net

"John A Grandy" <johnagrandy-at-yahoo.com> wrote in message
news:O9******** ******@TK2MSFTN GP11.phx.gbl...
is it possible to write a vb.net code (intended to run on the client-side)
that would invoke an instance of IE, have it download a page from a certain URL, and then pre-populate some of the controls on that page, before
transferring focus to the browser-page and showing it to the user? (the
user would be responsible for submitting the page.)

Nov 20 '05 #2
Hi Jody. Thanks for the response.

I think perhaps you misunderstood my question.

What I am attempting to do *can not* involve server-side code nor
client-side script .... I have no control over the coding of the
web-application.

I need to write a client-side executable in VB.NET that emulates actions a
user would manually perform when interacting with a browser-page.

This VB.NET EXE would triggers download of a web-page (from a specific URL)
into a browser, then populate some of the controls on the browser-page, but
not submit the page -- just pass it over to the end-user so that they can
finish populating the other controls and submit it themselves.

"Jody Fisher" <jf*****@clayto nutz.com.dontsp amme> wrote in message
news:Oz******** ******@TK2MSFTN GP12.phx.gbl...
javascript:wind ow.open(....) -> prepopulate the new page on the server side ie use an aspx page.

remember that even though asp.net is far smarter than the older cgi apps,
all processing is done server side. Anything that is required on the client side, you will need to do with client side script

Jody
MCSD.Net

"John A Grandy" <johnagrandy-at-yahoo.com> wrote in message
news:O9******** ******@TK2MSFTN GP11.phx.gbl...
is it possible to write a vb.net code (intended to run on the client-side) that would invoke an instance of IE, have it download a page from a

certain
URL, and then pre-populate some of the controls on that page, before
transferring focus to the browser-page and showing it to the user? (the
user would be responsible for submitting the page.)


Nov 20 '05 #3
That does sound like a lot of fun....

OK so if we are working in a vb windows app. obviously the first thing that
you will want to do is open your initial page in a web browser control (you
can keep it hidden at first if you want). I must assume that you know what
fields you want to populate... I am pretty certain that you can just do
something like wbrowser1.docum ent.getElementB yId("...").valu e = "test"

The only problem that I can see is that there may be permission issues -
this is generally the case when working with cross site frames etc. so you
may have to actually download and save the file to the hard drive first??

Give it a try a let me know how you go...

Cheers
Jody

"John A Grandy" <johnagrandy-at-yahoo.com> wrote in message
news:u5******** *****@TK2MSFTNG P10.phx.gbl...
Hi Jody. Thanks for the response.

I think perhaps you misunderstood my question.

What I am attempting to do *can not* involve server-side code nor
client-side script .... I have no control over the coding of the
web-application.

I need to write a client-side executable in VB.NET that emulates actions a
user would manually perform when interacting with a browser-page.

This VB.NET EXE would triggers download of a web-page (from a specific URL) into a browser, then populate some of the controls on the browser-page, but not submit the page -- just pass it over to the end-user so that they can
finish populating the other controls and submit it themselves.

"Jody Fisher" <jf*****@clayto nutz.com.dontsp amme> wrote in message
news:Oz******** ******@TK2MSFTN GP12.phx.gbl...
javascript:wind ow.open(....) -> prepopulate the new page on the server

side
ie use an aspx page.

remember that even though asp.net is far smarter than the older cgi apps,
all processing is done server side. Anything that is required on the

client
side, you will need to do with client side script

Jody
MCSD.Net

"John A Grandy" <johnagrandy-at-yahoo.com> wrote in message
news:O9******** ******@TK2MSFTN GP11.phx.gbl...
is it possible to write a vb.net code (intended to run on the

client-side) that would invoke an instance of IE, have it download a page from a

certain
URL, and then pre-populate some of the controls on that page, before
transferring focus to the browser-page and showing it to the user? (the user would be responsible for submitting the page.)



Nov 20 '05 #4
Hmmm ... interesting ...

So VB.NET code can be written to populate objects exposed by the DOM of a
browser-page ...

So would such a control population display instantly? I assume that the
actual web-page file is not being altered, so no point triggerring a
refresh-from-cache ...

"Jody Fisher [MCSD.Net]" <jf*****@clayto nutz.com.dontsp amme> wrote in
message news:O5******** ******@TK2MSFTN GP11.phx.gbl...
That does sound like a lot of fun....

OK so if we are working in a vb windows app. obviously the first thing that you will want to do is open your initial page in a web browser control (you can keep it hidden at first if you want). I must assume that you know what fields you want to populate... I am pretty certain that you can just do
something like wbrowser1.docum ent.getElementB yId("...").valu e = "test"

The only problem that I can see is that there may be permission issues -
this is generally the case when working with cross site frames etc. so you may have to actually download and save the file to the hard drive first??

Give it a try a let me know how you go...

Cheers
Jody

"John A Grandy" <johnagrandy-at-yahoo.com> wrote in message
news:u5******** *****@TK2MSFTNG P10.phx.gbl...
Hi Jody. Thanks for the response.

I think perhaps you misunderstood my question.

What I am attempting to do *can not* involve server-side code nor
client-side script .... I have no control over the coding of the
web-application.

I need to write a client-side executable in VB.NET that emulates actions a
user would manually perform when interacting with a browser-page.

This VB.NET EXE would triggers download of a web-page (from a specific

URL)
into a browser, then populate some of the controls on the browser-page,

but
not submit the page -- just pass it over to the end-user so that they can finish populating the other controls and submit it themselves.

"Jody Fisher" <jf*****@clayto nutz.com.dontsp amme> wrote in message
news:Oz******** ******@TK2MSFTN GP12.phx.gbl...
javascript:wind ow.open(....) -> prepopulate the new page on the server

side
ie use an aspx page.

remember that even though asp.net is far smarter than the older cgi

apps, all processing is done server side. Anything that is required on the

client
side, you will need to do with client side script

Jody
MCSD.Net

"John A Grandy" <johnagrandy-at-yahoo.com> wrote in message
news:O9******** ******@TK2MSFTN GP11.phx.gbl...
> is it possible to write a vb.net code (intended to run on the

client-side)
> that would invoke an instance of IE, have it download a page from a
certain
> URL, and then pre-populate some of the controls on that page, before
> transferring focus to the browser-page and showing it to the user? (the > user would be responsible for submitting the page.)
>
>



Nov 20 '05 #5
Not sure how instantly it would happen, but if you weren't entering too much
data, it should be quick enough for the user not to notice. VB.Net has all
the functionality plus more compared to something like vb6 - remember that a
lot of the complex functions that we used call up were simply COM controls
or libraries, these are still available if you need them through the
marshalling libraries in .NET

The other other option is to look at reading the DOM tree and retrieving the
field names then using inet or something to actually post the form data to
the site? - not quite as messy and may work a bit better.

Jody
"John A Grandy" <johnagrandy-at-yahoo.com> wrote in message
news:#g******** ******@TK2MSFTN GP10.phx.gbl...
Hmmm ... interesting ...

So VB.NET code can be written to populate objects exposed by the DOM of a
browser-page ...

So would such a control population display instantly? I assume that the
actual web-page file is not being altered, so no point triggerring a
refresh-from-cache ...

"Jody Fisher [MCSD.Net]" <jf*****@clayto nutz.com.dontsp amme> wrote in
message news:O5******** ******@TK2MSFTN GP11.phx.gbl...
That does sound like a lot of fun....

OK so if we are working in a vb windows app. obviously the first thing that
you will want to do is open your initial page in a web browser control

(you
can keep it hidden at first if you want). I must assume that you know

what
fields you want to populate... I am pretty certain that you can just do
something like wbrowser1.docum ent.getElementB yId("...").valu e = "test"

The only problem that I can see is that there may be permission issues -
this is generally the case when working with cross site frames etc. so

you
may have to actually download and save the file to the hard drive first??

Give it a try a let me know how you go...

Cheers
Jody

"John A Grandy" <johnagrandy-at-yahoo.com> wrote in message
news:u5******** *****@TK2MSFTNG P10.phx.gbl...
Hi Jody. Thanks for the response.

I think perhaps you misunderstood my question.

What I am attempting to do *can not* involve server-side code nor
client-side script .... I have no control over the coding of the
web-application.

I need to write a client-side executable in VB.NET that emulates actions a user would manually perform when interacting with a browser-page.

This VB.NET EXE would triggers download of a web-page (from a specific

URL)
into a browser, then populate some of the controls on the
browser-page,
but
not submit the page -- just pass it over to the end-user so that they

can finish populating the other controls and submit it themselves.

"Jody Fisher" <jf*****@clayto nutz.com.dontsp amme> wrote in message
news:Oz******** ******@TK2MSFTN GP12.phx.gbl...
> javascript:wind ow.open(....) -> prepopulate the new page on the

server side
> ie use an aspx page.
>
> remember that even though asp.net is far smarter than the older cgi

apps,
> all processing is done server side. Anything that is required on the client
> side, you will need to do with client side script
>
> Jody
> MCSD.Net
>
> "John A Grandy" <johnagrandy-at-yahoo.com> wrote in message
> news:O9******** ******@TK2MSFTN GP11.phx.gbl...
> > is it possible to write a vb.net code (intended to run on the
client-side)
> > that would invoke an instance of IE, have it download a page from a > certain
> > URL, and then pre-populate some of the controls on that page, before > > transferring focus to the browser-page and showing it to the user?

(the
> > user would be responsible for submitting the page.)
> >
> >
>
>



Nov 20 '05 #6

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

Similar topics

5
20465
by: Don | last post by:
Is there some way to populate the "Browse" box for a <input type=file...> with a default value? I can do it for <input type=text...>, but can't seem to do it for <input type=file...>. Any ideas? Thanks, Don ----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
7
6221
by: Sharon | last post by:
I have successfully loaded a DataSet object with a XML schema (XSD). Now I wish to populate the tables that was created in the DataSet. I have an XML file/string that contain all the needed data in the same format as the XSD (the XML file/string was created using this same schema). The XML file/string may contain data for a single table or for several tables at once. The question is:
4
2999
by: Mike L | last post by:
I'm open for any suggestions on how to better program this. I want the user to select a license from a combo box, cboPrivilege and then the user will click the add button, then a record will be added to the data grid. My current code is coming up with errors, dt and drv are unknown in the else part of the if statement. if (this.dgPrivileges.DataSource == null) {
3
2689
by: Yul | last post by:
Hi, We are in the process of designing an ASP.NET app, where a user will enter some 'Customer ID' to be queried in the database. If the ID is valid, several stored procedures will be called to populate multiple webpages containing customer information. There isn't a one-to-one correlation between the stored procedure and a webpage. In other words, a webpage may have to refer to 1 or more DataTables to populate itself. Therefore, a...
3
2086
by: crjunk | last post by:
I have 4 different databases that I'm having to pull data from in order to populate a datagrid. I am able to do this, but my problem is that because I'm pulling the data from 4 different databases, the data is ordered alphabetically but is grouped by database. Here is an example of what is happening to the data in the datgrid with the code that I have now. DB1 Apple DB1 Bird DB1 Cake
0
2131
by: ROO | last post by:
Hi Everyone, I have a database table that have 4 field( C1, C2, M1, M2) on my form i have two combo box ComboC and ComboM C1 C2 M1 M2 1 Sales 1 Monthly Terms 1 Sales 2 Annual Terms
3
5321
by: Jordan | last post by:
Suppose I have a system that keeps track of 5 different types of "People". My intent is to have a base Person class, then 5 derived classes for each of the specific person types (e.g., Patient, Doctor, Employee, Contractor, etc). Now, at runtime I need to retrieve all the property values from a database and populate all of the fields of both the base and derived classes. Not all fields will need to be exposed via public properties as...
16
10515
by: agrawal.solutions | last post by:
Hello Friends I am asking a very silly question but i dont find any solution fo this.. I am selectiong a recordset and want to populate a combobox where id would be inviseble and the content would. I am getting the recordset and the no of record but then i am unble to populate the combobox. I have already tried all the function starting form for each x in .... and while...wend and do....loop
1
1619
by: edwordsigh | last post by:
Hello All! I would like to know where I can get started on a problem I've been having. I am currently trying to populate a listbox in visual basic from an access database file. Specifically, I am making a web browser and I want to record history and favorites and have them be written on the access database file, then be read and populated into the listbox on the visual basic form. Can anyone help me get started?
6
4665
by: tinman486 | last post by:
Im new to the whole javascript game, I know pretty much just enough to be dangerous with no real substance. Anyway Im trying to populate a DIV with a website using the URL as an inner html source Here is my code I keep getting an error object expecte don line 58. Which I will highlight. Anyway Not only would i Like to know what that error is about but also if my logic is correct or if I can even do what im trying... and if not what other...
0
8357
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8277
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8803
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8700
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7298
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6158
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5612
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
1910
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1588
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.