ScottNomus
Programmer
I have tried several different things to get a Access form to function as a ASP form. Everything looks right except when I click on a button it will not do anything but refresh itself.
I noticed that when I export a form from Access it creates ActiveX Objects and class ID
*****SEE THE FOLLOWING*****
*****LogIn_Form.asp********CODE*******
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=windows-1252">
<TITLE>LogIn Screen</TITLE>
</HEAD>
<BODY>
<%
Session.timeout = 20
If IsObject(Session("WebCustomer_conn") Then
Set conn = Session("WebCustomer_conn"
Else
Set conn = Server.CreateObject("ADODB.Connection"
conn.open "WebCustomer","",""
Set Session("WebCustomer_conn" = conn
End If
%>
<OBJECT ID="LogIn_Screenalx"
CLASSID="CLSID:812AE312-8B8E-11CF-93C8-00AA00C08FDF"
STYLE="TOP:0;LEFT:0;">
<PARAM NAME="ALXPATH" VALUE=" Customer/LogIn Screenalx.asp">
</OBJECT>
</BODY>
</HTML>
****NOW HERE IS THE SECOND FILE EXPORTED***********
****LogIn_formals.asp******************************
(HOW CAN GET THIS TO WORK*******
<%
Session.timeout = 20
If IsObject(Session("WebCustomer_conn") Then
Set conn = Session("WebCustomer_conn"
Else
Set conn = Server.CreateObject("ADODB.Connection"
conn.open "WebCustomer","",""
Set Session("WebCustomer_conn" = conn
End If
%>
<SCRIPT LANGUAGE=VBScript>
<!--
Sub LogIn_Screenalx_OnLoad()
End Sub
Sub open_log_in_Click()
Window.Location.Href = "Frm_password.asp"
End Sub
-->
</SCRIPT>
<DIV ID="LogIn_Screenalx" STYLE="LAYOUT:FIXED;HEIGHT:684;WIDTH:894;">
<OBJECT ID="Label77"
CLASSID="CLSID:978C9E23-D4B0-11CE-BF2D-00AA003F40D0"
STYLE="TOP:553;LEFT:102;WIDTH:726;HEIGHT:67;ZINDEX:0;">
<PARAM NAME="BackStyle" VALUE="1">
<PARAM NAME="BackColor" VALUE="12632256">
<PARAM NAME="Caption" VALUE="Historical Information is only maintained online for 90 days
Should you need older data contact your account manager">
<PARAM NAME="ParagraphAlign" VALUE="3">
<PARAM NAME="ForeColor" VALUE="16711680">
<PARAM NAME="FontHeight" VALUE="240">
<PARAM NAME="Font" VALUE="MS Sans Serif">
<PARAM NAME="FontName" VALUE="MS Sans Serif">
<PARAM NAME="Size" VALUE="18876;1742">
<PARAM NAME="SpecialEffect" VALUE="0">
<PARAM NAME="VariousPropertyBits" VALUE="8388635">
<PARAM NAME="FontEffects" VALUE="2">
</OBJECT>
<OBJECT ID="open_log_in"
CLASSID="CLSID7053240-CE69-11CD-A777-00DD01143C57"
STYLE="TOP:451;LEFT:408;WIDTH:120;HEIGHT:42;TABINDEX:1;ZINDEX:1;">
<PARAM NAME="BackStyle" VALUE="1">
<PARAM NAME="Caption" VALUE="&Log In">
<PARAM NAME="ForeColor" VALUE="1279872587">
<PARAM NAME="FontHeight" VALUE="200">
<PARAM NAME="Font" VALUE="MS Sans Serif">
<PARAM NAME="FontName" VALUE="MS Sans Serif">
<PARAM NAME="Size" VALUE="3120;1092">
<PARAM NAME="SpecialEffect" VALUE="0">
<PARAM NAME="VariousPropertyBits" VALUE="10">
<PARAM NAME="FontEffects" VALUE="4">
</OBJECT>
<OBJECT ID="intro"
CLASSID="CLSID:978C9E23-D4B0-11CE-BF2D-00AA003F40D0"
STYLE="TOP:277;LEFT:138;WIDTH:654;HEIGHT:156;ZINDEX:2;">
<PARAM NAME="BackStyle" VALUE="1">
<PARAM NAME="BackColor" VALUE="12632256">
<PARAM NAME="Caption" VALUE="Welcome to Nomus's interative customer web page.
If you would like to join our select group of customers that are able to inquire on the status of their inventory items, call your account manager at
1-800-849-5748.">
<PARAM NAME="ParagraphAlign" VALUE="3">
<PARAM NAME="ForeColor" VALUE="16711680">
<PARAM NAME="FontHeight" VALUE="240">
<PARAM NAME="Font" VALUE="MS Sans Serif">
<PARAM NAME="FontName" VALUE="MS Sans Serif">
<PARAM NAME="Size" VALUE="17004;4056">
<PARAM NAME="SpecialEffect" VALUE="0">
<PARAM NAME="VariousPropertyBits" VALUE="8388635">
<PARAM NAME="FontEffects" VALUE="2">
</OBJECT>
<OBJECT ID="ExitButton"
CLASSID="CLSID7053240-CE69-11CD-A777-00DD01143C57"
STYLE="TOP:505;LEFT:408;WIDTH:120;HEIGHT:42;TABINDEX:0;ZINDEX:3;">
<PARAM NAME="BackStyle" VALUE="1">
<PARAM NAME="Caption" VALUE="E&xit">
<PARAM NAME="ForeColor" VALUE="2147483666">
<PARAM NAME="FontHeight" VALUE="200">
<PARAM NAME="Font" VALUE="MS Sans Serif">
<PARAM NAME="FontName" VALUE="MS Sans Serif">
<PARAM NAME="Size" VALUE="3120;1092">
<PARAM NAME="SpecialEffect" VALUE="0">
<PARAM NAME="VariousPropertyBits" VALUE="10">
</OBJECT>
<OBJECT ID="powerpoint"
CLASSID="CLSID7053240-CE69-11CD-A777-00DD01143C57"
STYLE="TOP:638;LEFT:342;WIDTH:252;HEIGHT:40;TABINDEX:0;ZINDEX:0;">
<PARAM NAME="BackStyle" VALUE="1">
<PARAM NAME="Caption" VALUE="View Samples of Our Work">
<PARAM NAME="ForeColor" VALUE="2147483666">
<PARAM NAME="FontHeight" VALUE="160">
<PARAM NAME="Font" VALUE="MS Sans Serif">
<PARAM NAME="FontName" VALUE="MS Sans Serif">
<PARAM NAME="Size" VALUE="6552;1040">
<PARAM NAME="SpecialEffect" VALUE="0">
<PARAM NAME="VariousPropertyBits" VALUE="10">
</OBJECT>
</DIV>
*******I thought I could export from Access with very little problem******I WAS WRONG********************
I noticed that when I export a form from Access it creates ActiveX Objects and class ID
*****SEE THE FOLLOWING*****
*****LogIn_Form.asp********CODE*******
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=windows-1252">
<TITLE>LogIn Screen</TITLE>
</HEAD>
<BODY>
<%
Session.timeout = 20
If IsObject(Session("WebCustomer_conn") Then
Set conn = Session("WebCustomer_conn"
Else
Set conn = Server.CreateObject("ADODB.Connection"
conn.open "WebCustomer","",""
Set Session("WebCustomer_conn" = conn
End If
%>
<OBJECT ID="LogIn_Screenalx"
CLASSID="CLSID:812AE312-8B8E-11CF-93C8-00AA00C08FDF"
STYLE="TOP:0;LEFT:0;">
<PARAM NAME="ALXPATH" VALUE=" Customer/LogIn Screenalx.asp">
</OBJECT>
</BODY>
</HTML>
****NOW HERE IS THE SECOND FILE EXPORTED***********
****LogIn_formals.asp******************************
(HOW CAN GET THIS TO WORK*******
<%
Session.timeout = 20
If IsObject(Session("WebCustomer_conn") Then
Set conn = Session("WebCustomer_conn"
Else
Set conn = Server.CreateObject("ADODB.Connection"
conn.open "WebCustomer","",""
Set Session("WebCustomer_conn" = conn
End If
%>
<SCRIPT LANGUAGE=VBScript>
<!--
Sub LogIn_Screenalx_OnLoad()
End Sub
Sub open_log_in_Click()
Window.Location.Href = "Frm_password.asp"
End Sub
-->
</SCRIPT>
<DIV ID="LogIn_Screenalx" STYLE="LAYOUT:FIXED;HEIGHT:684;WIDTH:894;">
<OBJECT ID="Label77"
CLASSID="CLSID:978C9E23-D4B0-11CE-BF2D-00AA003F40D0"
STYLE="TOP:553;LEFT:102;WIDTH:726;HEIGHT:67;ZINDEX:0;">
<PARAM NAME="BackStyle" VALUE="1">
<PARAM NAME="BackColor" VALUE="12632256">
<PARAM NAME="Caption" VALUE="Historical Information is only maintained online for 90 days
Should you need older data contact your account manager">
<PARAM NAME="ParagraphAlign" VALUE="3">
<PARAM NAME="ForeColor" VALUE="16711680">
<PARAM NAME="FontHeight" VALUE="240">
<PARAM NAME="Font" VALUE="MS Sans Serif">
<PARAM NAME="FontName" VALUE="MS Sans Serif">
<PARAM NAME="Size" VALUE="18876;1742">
<PARAM NAME="SpecialEffect" VALUE="0">
<PARAM NAME="VariousPropertyBits" VALUE="8388635">
<PARAM NAME="FontEffects" VALUE="2">
</OBJECT>
<OBJECT ID="open_log_in"
CLASSID="CLSID7053240-CE69-11CD-A777-00DD01143C57"
STYLE="TOP:451;LEFT:408;WIDTH:120;HEIGHT:42;TABINDEX:1;ZINDEX:1;">
<PARAM NAME="BackStyle" VALUE="1">
<PARAM NAME="Caption" VALUE="&Log In">
<PARAM NAME="ForeColor" VALUE="1279872587">
<PARAM NAME="FontHeight" VALUE="200">
<PARAM NAME="Font" VALUE="MS Sans Serif">
<PARAM NAME="FontName" VALUE="MS Sans Serif">
<PARAM NAME="Size" VALUE="3120;1092">
<PARAM NAME="SpecialEffect" VALUE="0">
<PARAM NAME="VariousPropertyBits" VALUE="10">
<PARAM NAME="FontEffects" VALUE="4">
</OBJECT>
<OBJECT ID="intro"
CLASSID="CLSID:978C9E23-D4B0-11CE-BF2D-00AA003F40D0"
STYLE="TOP:277;LEFT:138;WIDTH:654;HEIGHT:156;ZINDEX:2;">
<PARAM NAME="BackStyle" VALUE="1">
<PARAM NAME="BackColor" VALUE="12632256">
<PARAM NAME="Caption" VALUE="Welcome to Nomus's interative customer web page.
If you would like to join our select group of customers that are able to inquire on the status of their inventory items, call your account manager at
1-800-849-5748.">
<PARAM NAME="ParagraphAlign" VALUE="3">
<PARAM NAME="ForeColor" VALUE="16711680">
<PARAM NAME="FontHeight" VALUE="240">
<PARAM NAME="Font" VALUE="MS Sans Serif">
<PARAM NAME="FontName" VALUE="MS Sans Serif">
<PARAM NAME="Size" VALUE="17004;4056">
<PARAM NAME="SpecialEffect" VALUE="0">
<PARAM NAME="VariousPropertyBits" VALUE="8388635">
<PARAM NAME="FontEffects" VALUE="2">
</OBJECT>
<OBJECT ID="ExitButton"
CLASSID="CLSID7053240-CE69-11CD-A777-00DD01143C57"
STYLE="TOP:505;LEFT:408;WIDTH:120;HEIGHT:42;TABINDEX:0;ZINDEX:3;">
<PARAM NAME="BackStyle" VALUE="1">
<PARAM NAME="Caption" VALUE="E&xit">
<PARAM NAME="ForeColor" VALUE="2147483666">
<PARAM NAME="FontHeight" VALUE="200">
<PARAM NAME="Font" VALUE="MS Sans Serif">
<PARAM NAME="FontName" VALUE="MS Sans Serif">
<PARAM NAME="Size" VALUE="3120;1092">
<PARAM NAME="SpecialEffect" VALUE="0">
<PARAM NAME="VariousPropertyBits" VALUE="10">
</OBJECT>
<OBJECT ID="powerpoint"
CLASSID="CLSID7053240-CE69-11CD-A777-00DD01143C57"
STYLE="TOP:638;LEFT:342;WIDTH:252;HEIGHT:40;TABINDEX:0;ZINDEX:0;">
<PARAM NAME="BackStyle" VALUE="1">
<PARAM NAME="Caption" VALUE="View Samples of Our Work">
<PARAM NAME="ForeColor" VALUE="2147483666">
<PARAM NAME="FontHeight" VALUE="160">
<PARAM NAME="Font" VALUE="MS Sans Serif">
<PARAM NAME="FontName" VALUE="MS Sans Serif">
<PARAM NAME="Size" VALUE="6552;1040">
<PARAM NAME="SpecialEffect" VALUE="0">
<PARAM NAME="VariousPropertyBits" VALUE="10">
</OBJECT>
</DIV>
*******I thought I could export from Access with very little problem******I WAS WRONG********************