473,399 Members | 3,401 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,399 software developers and data experts.

access URL's using asp

i hav opened an URL from my local host using ASP but the problem is
that i am not able to access the fields in that URL.Here is how it
goes...............................

file name : 1asp

<form name="ass" action="2.asp" method="post">
<br><br>
<INPUT TYPE = submit VALUE = "SUBMIT">
</form>

file name : 2asp

<%
set IEObject = CreateObject("InternetExplorer.application")
IEObject.Left = 75
IEObject.Top = 75
IEObject.Width = 400
IEObject.Height = 300
IEObject.Menubar = 0
IEObject.Toolbar = 1
IEObject.Navigate "http://localhost/myweb1/project/verify.asp"
IEObject.Visible = 1
IEObject.document.authority("uname").Value="mylogi n"<---The error is
here
%>

The problem is that i need to fill the text box named "uname" in the
"verify.asp" file.

Thanks in advance.........................

Nov 28 '06 #1
3 1544
ka*********@gmail.com wrote:
i hav opened an URL from my local host using ASP but the problem is
that i am not able to access the fields in that URL.Here is how it
goes...............................

file name : 1asp

<form name="ass" action="2.asp" method="post">
<br><br>
<INPUT TYPE = submit VALUE = "SUBMIT">
</form>

file name : 2asp

<%
set IEObject = CreateObject("InternetExplorer.application")
IEObject.Left = 75
IEObject.Top = 75
IEObject.Width = 400
IEObject.Height = 300
IEObject.Menubar = 0
IEObject.Toolbar = 1
IEObject.Navigate "http://localhost/myweb1/project/verify.asp"
IEObject.Visible = 1
Stop. This is totally wrong. You do not create windows that require user
interaction in server-side code. Why are you doing this?
The problem is that i need to fill the text box named "uname" in the
"verify.asp" file.
Again, why? This code is running on a server ... no user involved. What
are you planning to do after that text box is filled in?

I think you need more help than can be gotten in a newsgroup. Start
here:
http://msdn.microsoft.com/library/en...f33a651779.asp

Then go to www.w3schools.com and look at some of their tutorials

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Nov 28 '06 #2

Thank you Mr.Bob Barrows for ur valuable suggestion.But u totally
misunderstood me.I am not going to give any user interaction for the
server code.The problem is that i'll hav to fill the text box too on
the server sid application itself.

Nov 28 '06 #3
ka*********@gmail.com wrote:
Thank you Mr.Bob Barrows for ur valuable suggestion.But u totally
misunderstood me.I am not going to give any user interaction for the
server code.
You may think you aren't, but in actuality you are. What do you think is
going to happen when this line is executed:
IEObject.Visible = 1
Answer: a visible window is going to appear on the server's monitor (if
it is turned on ... )
And if that window generates a modal dialog box for some unforeseen
reason, nobody is going to be sitting at the keyboard to respond to it.
What do you think is going to happen to the inetinfo process in which
asp is running? Do you think subsequent web pages will be served?

Lesson: do not attempt to automate ANY programs that normally require
user interaction in server-side code. This includes IE, Notepad, Office
applications, etc.
The problem is that i'll hav to fill the text box too on
the server sid application itself.
Again ... why? What is your goal here?


--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Nov 28 '06 #4

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

Similar topics

0
by: Frederick Noronha \(FN\) | last post by:
---------- Forwarded message ---------- Solutions to Everyday User Interface and Programming Problems O'Reilly Releases "Access Cookbook, Second Edition" Sebastopol, CA--Neither reference book...
49
by: Yannick Turgeon | last post by:
Hello, We are in the process of examining our current main application. We have to do some major changes and, in the process, are questionning/validating the use of MS Access as front-end. The...
1
by: Norman Fritag | last post by:
Hi there I have avoided to use active x controls because I thought they are causing more problems then they are doing any good. I a new application I would want to use the tree and list view...
3
by: Mike Wilson | last post by:
Is there a way to open an OLE DB database from within Access? I would like to use the Access GUI with its table and query explorer to examine a database only available through an OLEDB provider...
11
by: Grasshopper | last post by:
Hi, I am automating Access reports to PDF using PDF Writer 6.0. I've created a DTS package to run the reports and schedule a job to run this DTS package. If I PC Anywhere into the server on...
20
by: Olav.NET | last post by:
I am a .NET/C++ developer who is supposed to do some work with Access. I do not know much about it except for the DB part. Questions: *1* I am looking for INTENSIVE books to get quickly up to...
64
by: John | last post by:
Hi What future does access have after the release of vs 2005/sql 2005? MS doesn't seem to have done anything major with access lately and presumably hoping that everyone migrates to vs/sql. ...
12
by: Ron Weldy | last post by:
I have a test server runinng 2003/IIS 6 with a mixture of asp and asp.net files. On my workstation I have a share set up to the folder where the web files reside. I am just doing quick and dirty...
15
by: Cheryl Langdon | last post by:
Hello everyone, This is my first attempt at getting help in this manner. Please forgive me if this is an inappropriate request. I suddenly find myself in urgent need of instruction on how to...
10
by: WannaKatana | last post by:
I am just wondering why, with nothing else running and executing an update query against a very large table, does Access seem to be causing less than 10% processor usage. Then it says "There is not...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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,...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...

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.