Ask a Question related to Dreamweaver AppDev, Design and Development.
-
InvisibleBunnyKing #1
Form creation problems
Hi
I am trying to make a "create new user" form where people will enter their
info to create a user name and password. The information would then be sent to
and stored in an Access database. I am using DWMX2004 and Access 2003 to do
this. I can create the form fine and have it appear in a web browser until I
add the Insert record behavior. When I add this in, I receive the following
message:
Server Error in '/' Application.
Parser Error
Description: An error occurred during the parsing of a resource required to
service this request. Please review the following specific parse error details
and modify your source file appropriately.
Parser Error Message: The located assembly's manifest definition with name
'System.Data' does not match the assembly reference.
Source Error:
Line 2: <%@ Import Namespace="System.Data" %>
Line 3: <%@ Register TagPrefix="MM" Namespace="DreamweaverCtrls"
Assembly="DreamweaverCtrls,version=1.0.0.0,publicK eyToken=836f606ede05d46a,cultu
re=neutral" %>
Line 4: <MM:Insert
Line 5: runat="server"
Line 6: CommandText='<%# "INSERT INTO CustomerList (BillingAddress,
BillingCity, BillingPostalCode, BillingProvince, Email, FavoriteNHLPlayer,
FirstName, LastName, Password, PhoneNumber, ShippingAddress, ShippingCity,
ShippingPostalCode, ShippingProvince, Username) VALUES (?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?)" %>'
Source File: c:\inetpub\wwwroot\hockeycards\registration.aspx Line: 4
Version Information: Runtime Build:1.0.2914.16; ASP.NET Build:1.0.2914.16
I'm not sure what the error is trying to tell me. Please Help!!! Here is
the code for my page, this may help.
<%@LANGUAGE="VBSCRIPT"%>
<%@ Import Namespace="System.Data" %>
<%@ Register TagPrefix="MM" Namespace="DreamweaverCtrls"
Assembly="DreamweaverCtrls,version=1.0.0.0,publicK eyToken=836f606ede05d46a,cultu
re=neutral" %>
<MM:Insert
runat="server"
CommandText='<%# "INSERT INTO CustomerList (BillingAddress, BillingCity,
BillingPostalCode, BillingProvince, Email, FavoriteNHLPlayer, FirstName,
LastName, Password, PhoneNumber, ShippingAddress, ShippingCity,
ShippingPostalCode, ShippingProvince, Username) VALUES (?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?)" %>'
ConnectionString='<%#
System.Configuration.ConfigurationSettings.AppSett ings("MM_CONNECTION_STRING_hoc
keycards") %>'
DatabaseType='<%#
System.Configuration.ConfigurationSettings.AppSett ings("MM_CONNECTION_DATABASETY
PE_hockeycards") %>'
Expression='<%# Request.Form("MM_insert") = "form1" %>'
CreateDataSet="false"
Debug="true"<Parameters>>
<Parameter Name="@BillingAddress" Value='<%#
IIf((Request.Form("billingaddress") <> Nothing),
Request.Form("billingaddress"), "") %>' Type="WChar" />
<Parameter Name="@BillingCity" Value='<%# IIf((Request.Form("billingcity")
<> Nothing), Request.Form("billingcity"), "") %>' Type="WChar" />
<Parameter Name="@BillingPostalCode" Value='<%#
IIf((Request.Form("billingpostalcode") <> Nothing),
Request.Form("billingpostalcode"), "") %>' Type="WChar" />
<Parameter Name="@BillingProvince" Value='<%#
IIf((Request.Form("billingprovince") <> Nothing),
Request.Form("billingprovince"), "") %>' Type="WChar" />
<Parameter Name="@Email" Value='<%# IIf((Request.Form("email") <>
Nothing), Request.Form("email"), "") %>' Type="WChar" />
<Parameter Name="@FavoriteNHLPlayer" Value='<%#
IIf((Request.Form("favoritenhlplayer") <> Nothing),
Request.Form("favoritenhlplayer"), "") %>' Type="WChar" />
<Parameter Name="@FirstName" Value='<%# IIf((Request.Form("fname") <>
Nothing), Request.Form("fname"), "") %>' Type="WChar" />
<Parameter Name="@LastName" Value='<%# IIf((Request.Form("lname") <>
Nothing), Request.Form("lname"), "") %>' Type="WChar" />
<Parameter Name="@Password" Value='<%# IIf((Request.Form("password") <>
Nothing), Request.Form("password"), "") %>' Type="WChar" />
<Parameter Name="@PhoneNumber" Value='<%# IIf((Request.Form("phonenumber")
<> Nothing), Request.Form("phonenumber"), "") %>' Type="Integer" />
<Parameter Name="@ShippingAddress" Value='<%#
IIf((Request.Form("shippingaddress") <> Nothing),
Request.Form("shippingaddress"), "") %>' Type="WChar" />
<Parameter Name="@ShippingCity" Value='<%#
IIf((Request.Form("shippingcity") <> Nothing), Request.Form("shippingcity"),
"") %>' Type="WChar" />
<Parameter Name="@ShippingPostalCode" Value='<%#
IIf((Request.Form("shippingpostalcode") <> Nothing),
Request.Form("shippingpostalcode"), "") %>' Type="WChar" />
<Parameter Name="@ShippingProvince" Value='<%#
IIf((Request.Form("shippingprovince") <> Nothing),
Request.Form("shippingprovince"), "") %>' Type="WChar" />
<Parameter Name="@Username" Value='<%# IIf((Request.Form("username") <>
Nothing), Request.Form("username"), "") %>' Type="WChar" />
</Parameters>
</MM:Insert>
<MM:PageBind runat="server" PostBackBind="true" />
<%@ Import Namespace="System.Data" %>
<MM:InsertCommand
runat="server"
CommandText='<%# "INSERT INTO CustomerList (BillingAddress, BillingCity,
BillingPostalCode, BillingProvince, Email, FavoriteNHLPlayer, FirstName,
LastName, Password, PhoneNumber, ShippingAddress, ShippingCity,
ShippingPostalCode, ShippingProvince, Username) VALUES (?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?)" %>'
ConnectionString='<%#
System.Configuration.ConfigurationSettings.AppSett ings("MM_CONNECTION_STRING_hoc
keycards") %>'
DatabaseType='<%#
System.Configuration.ConfigurationSettings.AppSett ings("MM_CONNECTION_DATABASETY
PE_hockeycards") %>'
Expression='<%# Request.Form("MM_insert") = "form1" %>'
CreateDataSet="false"
SuccessURL='<%# "received.asp" %>'
Debug="true"<Parameter Name="@BillingAddress" Value='<%#><Parameters>
IIf((Request.Form("billingaddress") <> Nothing),
Request.Form("billingaddress"), "") %>' Type="WChar" />
<Parameter Name="@BillingCity" Value='<%# IIf((Request.Form("billingcity")
<> Nothing), Request.Form("billingcity"), "") %>' Type="WChar" />
<Parameter Name="@BillingPostalCode" Value='<%#
IIf((Request.Form("billingpostalcode") <> Nothing),
Request.Form("billingpostalcode"), "") %>' Type="WChar" />
<Parameter Name="@BillingProvince" Value='<%#
IIf((Request.Form("billingprovince") <> Nothing),
Request.Form("billingprovince"), "") %>' Type="WChar" />
<Parameter Name="@Email" Value='<%# IIf((Request.Form("email") <> Nothing),
Request.Form("email"), "") %>' Type="WChar" />
<Parameter Name="@FavoriteNHLPlayer" Value='<%#
IIf((Request.Form("favoritenhlplayer") <> Nothing),
Request.Form("favoritenhlplayer"), "") %>' Type="WChar" />
<Parameter Name="@FirstName" Value='<%# IIf((Request.Form("fname") <>
Nothing), Request.Form("fname"), "") %>' Type="WChar" />
<Parameter Name="@LastName" Value='<%# IIf((Request.Form("lname") <>
Nothing), Request.Form("lname"), "") %>' Type="WChar" />
<Parameter Name="@Password" Value='<%# IIf((Request.Form("password") <>
Nothing), Request.Form("password"), "") %>' Type="WChar" />
<Parameter Name="@PhoneNumber" Value='<%# IIf((Request.Form("phonenumber")
<> Nothing), Request.Form("phonenumber"), "") %>' Type="Integer" />
<Parameter Name="@ShippingAddress" Value='<%#
IIf((Request.Form("shippingaddress") <> Nothing),
Request.Form("shippingaddress"), "") %>' Type="WChar" />
<Parameter Name="@ShippingCity" Value='<%# IIf((Request.Form("shippingcity")
<> Nothing), Request.Form("shippingcity"), "") %>' Type="WChar" />
<Parameter Name="@ShippingPostalCode" Value='<%#
IIf((Request.Form("shippingpostalcode") <> Nothing),
Request.Form("shippingpostalcode"), "") %>' Type="WChar" />
<Parameter Name="@ShippingProvince" Value='<%#
IIf((Request.Form("shippingprovince") <> Nothing),
Request.Form("shippingprovince"), "") %>' Type="WChar" />
<Parameter Name="@Username" Value='<%# IIf((Request.Form("username") <>
Nothing), Request.Form("username"), "") %>' Type="WChar" />
</Parameters>
</MM:Insert><%@ Import Namespace="System.Data" %><!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Sideline Sportscards Your best source for hockey cards!</title>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length;
i++)
if (a.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++)
x.src=x.oSrc;
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document;
if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++)
x=d.forms[n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++)
x=MM_findObj(n,d.layers.document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array;
for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x; if(!x.oSrc)
x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<style type="text/css">
<!--
.style1 {color: #FFFFFF}
-->
</style></head>
<body
onLoad="MM_preloadImages('art/navbar/indexover.png','art/navbar/rookiesover.png'
,'art/navbar/gameover.png','art/navbar/autoover.png','art/navbar/autoover.gif','
art/navbar/indexover.gif','art/navbar/searchover.gif','art/navbar/rookiesover.gi
f','art/navbar/gameover.gif','art/navbar/specialover.gif','art/navbar/orderover.
gif','art/navbar/insertsover.gif')">
<table width="100%" border="4" bordercolor="#0033FF">
<tr valign="top">
<td colspan="2"><img src="art/CSS%
InvisibleBunnyKing Guest
-
automatic form creation
Is there any way to have a form layout created from the structure of a table? So that the text boxes, text areas, etc. have the same names as the... -
Form creation on 2003
When you shut down a 2003 server a report box appears before shut down.I want to know if it's possible to have this box appearing everytime a a... -
pdf creation problems
I am opperating on Win 2000 using freehand mx. I am trying to create a PDF file through Distiller (Acrobat 4.0). I save the freehand file as a eps... -
Form creation and parsing
On Thu, Oct 09, 2003 at 04:15:41PM +0200, paolo.libardi@libero.it wrote: For starters, if you haven't already, read `perldoc CGI`. After that, I'd... -
Select form dynamic creation.
Hello list, I've spent a little time looking to see if this has been done before, and haven't found it, though I'm certain it has been done. ...



Reply With Quote

