Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Data-access in ActiveX controls

Status
Not open for further replies.

StevenK

Programmer
Jan 5, 2001
1,294
GB
I'm developing a small application that accesses data in SQL Server 7.0 tables. I've constructed this using a NoteBook component placing components on each of the pages to replicate the effect of having multiple forms.
The constructed ActiveX component then is viewed in an HTML page in Internet Explorer.
It seems I now have a problem whereby if the user clicks the 'Refresh' button that the ActiveX component resets itself and starts over.
Is there any way to disable the 'Refresh' button (and maybe others) as part of the ActiveX component or through the HTML code it sits in ?
Alternatively should I avoid the principal of accessing data (reading and writing) as part of an ActiveX control in a browser?
Thanks in advance for any pointers.
Steve
 
Hi mate,
I may not be an expert but actually it's not a crime to access databases through activx components in web browsers (as far as it is meant to work on an intranet basis). In fact refreshing is quite buggy and since the activx 'belongs' to the page, I don't believe there is much you can do about it ... maybe catch the refresh event and try some trick there otherwise why don't you use server pages? You've got a plethora of them! (ASP,PHP,JSP and Delphi can even handle web server application); I hope you fond some lights in my views,
take care and let there be rock,
BonnScott
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top