[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

ActiveX control with Database

Posted on 1999-11-16
1
Medium Priority
?
194 Views
Last Modified: 2013-11-20
Hi,

I want to develop a activex control for my webpage, which accepts user name & password from the client & authenticates him in the back end against the database. Can anyone help me? i have little bit knowledge in COM.
Is it possible to communicate with the database from the ActiveX control? if possible how? How to create dialog based ActiveX control to get user name & password?.
Expecting your early reply
regards
subbaiah
0
Comment
Question by:subbaiah
1 Comment
 
LVL 1

Accepted Solution

by:
fstab earned 100 total points
ID: 2215193
Yes its very much possible to communicate with the database from the ActiveX control.

Insert you ActiveX control in the HTML page (using the OBJID tag) and call its methods from a VBScript or JavaScript.

These methods can invoke your dialog which you should have provided in your project and built using Visual Studio.

For eg. the methods you might want to expose from your ActiveX control might be :

InvokeAuthDlg

This dialog might contain a few fields to enter the user name and password, after which the actual calls using the MFC ODBC classes (CDatabase etc.) are used to authenticate the user against the database.

Return a BOOL value from this method to indicate failure or success.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses
Course of the Month7 days, 19 hours left to enroll

607 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question