473,403 Members | 2,284 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,403 software developers and data experts.

Can't access an Active-X control within ASP page.

I am quite new to the ASP scene. I want to display the results of a
recordset into a third party grid control called VSFlexgrid. I've prepared
one asp page which queries an Access database and holds the object in which
the results should be writte. I've tried two options :

1. The grid active-X component was instantated within the html part as :
<OBJECT id=Flex style="WIDTH: 352px; HEIGHT: 256px" height=256 width=352
classid=clsid:0F026C11-5A66-4c2b-87B5-88DDEBAE72A1>
</OBJECT>
The problem is that when I refer to the grid object within the scripting
part, such as' Flex.Rows', the browser reports ' runtime error 424 : object
required'. The object is rendered when browsing the page, however it is not
accessable within any scripting. That's why I decided to configure the
object to run at the server by my second approach :

2. The grid active-X component was instantated within the html part and the
tag RUNAT=SERVER was added.
<OBJECT id=Flex style="WIDTH: 352px; HEIGHT: 256px" height=256 width=352
RUNAT=SERVER
classid=clsid:0F026C11-5A66-4c2b-87B5-88DDEBAE72A1>
</OBJECT>
Now the browser doesn't fire an error message. I am able to access the
properties of the control. However, the grid is not shown in the browser at
all!

I guess that I am doing something wrong basically. Any suggestions what to
do ?

regards,
Oscar


Jul 22 '05 #1
4 1896
"Oscar" <ok*@xs4all.nl> wrote in message
news:ev**************@TK2MSFTNGP10.phx.gbl...
I am quite new to the ASP scene. I want to display the results of a
recordset into a third party grid control called VSFlexgrid. I've prepared
one asp page which queries an Access database and holds the object in which
the results should be writte. I've tried two options :

1. The grid active-X component was instantated within the html part as :
<OBJECT id=Flex style="WIDTH: 352px; HEIGHT: 256px" height=256 width=352
classid=clsid:0F026C11-5A66-4c2b-87B5-88DDEBAE72A1>
</OBJECT>
The problem is that when I refer to the grid object within the scripting
part, such as' Flex.Rows', the browser reports ' runtime error 424 :
object required'. The object is rendered when browsing the page, however
it is not accessable within any scripting. That's why I decided to
configure the object to run at the server by my second approach :

2. The grid active-X component was instantated within the html part and
the tag RUNAT=SERVER was added.
<OBJECT id=Flex style="WIDTH: 352px; HEIGHT: 256px" height=256 width=352
RUNAT=SERVER
classid=clsid:0F026C11-5A66-4c2b-87B5-88DDEBAE72A1>
</OBJECT>
Now the browser doesn't fire an error message. I am able to access the
properties of the control. However, the grid is not shown in the browser
at all!

I guess that I am doing something wrong basically. Any suggestions what to
do ?

regards,
Oscar

I've not used this grid control myself, but ...

Situation 1. The grid is being instantiated in html on the client. Asp is
processed at the server then sends html to the client. So, you won't be able
to access it in .asp as it doesn't exist yet.

Situation 2. You have instantiated it in asp, but the component is not
designed to be run in .asp . For this to work, there would have to be some
method of the grid control that you could call to write out the results to
html .
--
John Blessing

http://www.LbeHelpdesk.com - Help Desk software priced to suit all
businesses
http://www.room-booking-software.com - Schedule rooms & equipment bookings
for your meeting/class over the web.
http://www.lbetoolbox.com - Remove Duplicates from MS Outlook
Jul 22 '05 #2
Hi John, thanks for your reply.

Does this mean that method 1 never would be a solution or is there a way to
solve that ?
Regarding method two, I only know that the grid has a feature to save the
whole grid in html format.

Oscar

"John Blessing" <jb@**REMOVE**THIS**Lbesoftware.com> schreef in bericht
news:hL******************@newsfe2-gui.ntli.net...
"Oscar" <ok*@xs4all.nl> wrote in message
news:ev**************@TK2MSFTNGP10.phx.gbl...
I am quite new to the ASP scene. I want to display the results of a
recordset into a third party grid control called VSFlexgrid. I've prepared
one asp page which queries an Access database and holds the object in
which the results should be writte. I've tried two options :

1. The grid active-X component was instantated within the html part as :
<OBJECT id=Flex style="WIDTH: 352px; HEIGHT: 256px" height=256 width=352
classid=clsid:0F026C11-5A66-4c2b-87B5-88DDEBAE72A1>
</OBJECT>
The problem is that when I refer to the grid object within the scripting
part, such as' Flex.Rows', the browser reports ' runtime error 424 :
object required'. The object is rendered when browsing the page, however
it is not accessable within any scripting. That's why I decided to
configure the object to run at the server by my second approach :

2. The grid active-X component was instantated within the html part and
the tag RUNAT=SERVER was added.
<OBJECT id=Flex style="WIDTH: 352px; HEIGHT: 256px" height=256 width=352
RUNAT=SERVER
classid=clsid:0F026C11-5A66-4c2b-87B5-88DDEBAE72A1>
</OBJECT>
Now the browser doesn't fire an error message. I am able to access the
properties of the control. However, the grid is not shown in the browser
at all!

I guess that I am doing something wrong basically. Any suggestions what
to do ?

regards,
Oscar

I've not used this grid control myself, but ...

Situation 1. The grid is being instantiated in html on the client. Asp is
processed at the server then sends html to the client. So, you won't be
able to access it in .asp as it doesn't exist yet.

Situation 2. You have instantiated it in asp, but the component is not
designed to be run in .asp . For this to work, there would have to be some
method of the grid control that you could call to write out the results to
html .
--
John Blessing

http://www.LbeHelpdesk.com - Help Desk software priced to suit all
businesses
http://www.room-booking-software.com - Schedule rooms & equipment bookings
for your meeting/class over the web.
http://www.lbetoolbox.com - Remove Duplicates from MS Outlook

Jul 22 '05 #3


"Oscar" <ok*@xs4all.nl> wrote in message
news:eR***************@TK2MSFTNGP14.phx.gbl...
Hi John, thanks for your reply.

Does this mean that method 1 never would be a solution or is there a way
to solve that ?
Regarding method two, I only know that the grid has a feature to save the
whole grid in html format.

Oscar

Method 1 runs in the browser. Most (sensible) people won't allow activex
controls to run in their browser. Either way, you can't get at it with .asp
by then.

Method 2 - I guess it depends if you can call a method something like

response.write grid.outputhtml()

I suspect this grid is meant to be used by VB programmers. Do a googlel for
..asp grid control instead

--
John Blessing

http://www.LbeHelpdesk.com - Help Desk software priced to suit all
businesses
http://www.room-booking-software.com - Schedule rooms & equipment bookings
for your meeting/class over the web.
http://www.lbetoolbox.com - Remove Duplicates from MS Outlook
Jul 22 '05 #4
Hi John,

since the website is build for restricted users (for entering of weekly
timesheets) there is no problem in such that people won't allow the Active-X
controls to run in their browser.
I've been able to do the implementation within a not-ASP configuration, but
I am afraid for time-consuming disadvantages. Meanwhile I'll look for an ASP
grid.

regards,
Oscar

"John Blessing" <jb@**REMOVE**THIS**Lbesoftware.com> schreef in bericht
news:gk*****************@newsfe6-win.ntli.net...


"Oscar" <ok*@xs4all.nl> wrote in message
news:eR***************@TK2MSFTNGP14.phx.gbl...
Hi John, thanks for your reply.

Does this mean that method 1 never would be a solution or is there a way
to solve that ?
Regarding method two, I only know that the grid has a feature to save the
whole grid in html format.

Oscar

Method 1 runs in the browser. Most (sensible) people won't allow activex
controls to run in their browser. Either way, you can't get at it with
.asp by then.

Method 2 - I guess it depends if you can call a method something like

response.write grid.outputhtml()

I suspect this grid is meant to be used by VB programmers. Do a googlel
for .asp grid control instead

--
John Blessing

http://www.LbeHelpdesk.com - Help Desk software priced to suit all
businesses
http://www.room-booking-software.com - Schedule rooms & equipment bookings
for your meeting/class over the web.
http://www.lbetoolbox.com - Remove Duplicates from MS Outlook

Jul 22 '05 #5

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

Similar topics

3
by: tchangmian | last post by:
I want to limit user login by writing ASP program. In details, if a user had logged in wrongly for more than three times, then the user will not be abled to log in to the system anymore even...
5
by: David W. Fenton | last post by:
Does anyone know of any Windows API calls to get to Active Directory organizational unit information? I searched for this a while back and found nothing. It would be a great thing if I could get to...
7
by: Christina N | last post by:
I want to output a list of all active SessionID's and their last time of activity. Can I loop through the active sessions and create a list like that? I use ASP.Net (VB.Net) Best regards,...
6
by: cameron | last post by:
I have always been under the impression that LDAP was optimized for speed. Fast queries, fast access, slower writes. I have a block of data in LDAP and in SQL. Exact same data. The query is fast...
2
by: Marchetto | last post by:
Ciao a tutti, ho trovato molte indicazioni riguardo al seguente problema, ma nessuna ha sortito gli effetti sperati. Ho un db Access con alcune tabelle collegate (file di testo). Da access...
1
by: Andy | last post by:
Hi, I was wondering if someone could advise on if the following is possible. I have one website that is available to the public using Forms authentication and the Membership class, it...
3
by: hbean | last post by:
I'm working on an event procedure for a form - seems relatively straightforward to me, but for some reason Access keeps crashing on me. All the procedure is doing is checking to see if a recordset...
3
by: =?Utf-8?B?S2Fp?= | last post by:
Hi all, I need to access information from Active Directory from my ASP.net 2.0 application (vb.net). Therefore I made a DLL which retrieves the data from Active Directory. This works fine, all...
1
by: msprin4345 | last post by:
Hello All, I am currently new to all this access and database stuff and i was wanting and needing anyones help that is feeling generous with knowledge!! I am currently triyng to create a query to...
3
by: Keith G Hicks | last post by:
I created a dll for com (in vb.net 2005) so that I could access it's functions from an ms access app. I created the tlb file successfully. On my dev machine I referenced it in my access app and...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
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...

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.