Accueil   |   Forums   |  Offres d'emplois   |  Contact    |   Mon compte   
vendredi 21 novembre 2008 Rechercher :
Déposez votre CV gratuitement sur touslesemplois
 
comparer les prix
» Logiciels
» Jeux vidéos
» Matériel Informatique


» ASP.NET
» ASP
» SQL
» PHP
» JAVASCRIPT
» XML
 


» ACTUALITÉ / DIVERS
» DROIT DE L'INTERNET
» INFOS VIRUS
» PATCHS MICROSOFT
» SÉCURITÉ
» BASES DE DONNÉES
» DOWNLOAD .NET
» LOGITHÈQUE
» SERVICES WEB
» Y SONT FOUS !
» .NET
» ASP
» ASP.NET
» JAVA
» PHP
» XML
» LANGAGE C#
» LANGAGE VB.NET
» UNIX / LINUX
» WINDOWS
» EVÈNEMENTS
» GASP
» MICROSOFT
 


Vous êtes ici : Forums > Langage ASP > Formulaire insertion vers access

Formulaire insertion vers access
Salut tout le monde
Je travail sous dreamweaver et à l'heure actuelle je butte à un problème pour créer un formulaire d'insertion d'enregistrements vers une BDD access.
Voilà une fois que je valide mon formulaire seul le premier champ se met à jour. le reste des champs reste desespérement vide . J'ai choisit de travailler en asp.net j'en touche pas une avec ce language et pourtant il doit me manquer qlq chose dans mon script!!
y a t il qlq un qui peut me donner un pti coup de main???

voici ma page

<%@ Page Language="VB" ContentType="text/html" %>
<%@ Register TagPrefix="MM" Namespace="DreamweaverCtrls" Assembly="DreamweaverCtrls,version=1.0.0.0,publicKeyToken=836f606ede05d46a,culture=neutral" %>
<MM:Insert
runat="server"
CommandText='<%# "INSERT INTO TYPE (""CODE TYPE"", TYPE) VALUES (?, ?)" %>'
ConnectionString='<%# System.Configuration.ConfigurationSettings.AppSettings("MM_CONNECTION_STRING_connbddcarriere") %>'
DatabaseType='<%# System.Configuration.ConfigurationSettings.AppSettings("MM_CONNECTION_DATABASETYPE_connbddcarriere") %>'
Expression='<%# Request.Form("MM_insert") = "form1" %>'
CreateDataSet="false"
SuccessURL='<%# "catalogue.html" %>'
Debug="true"
>
<Parameters>
<Parameter Name="@CODE TYPE" Value='<%# IIf((Request.Form("CODE_TYPE") <> Nothing), Request.Form("CODE_TYPE"), "") %>' Type="Integer" />
<Parameter Name="@TYPE" Value='<%# IIf((Request.Form("TYPE") <> Nothing), Request.Form("TYPE"), "") %>' Type="VarChar" />
</Parameters>
</MM:Insert>
<MM:Insert
runat="server"
CommandText='<%# "INSERT INTO CONTACTSINTERNET (nominternet) VALUES (?)" %>'
ConnectionString='<%# System.Configuration.ConfigurationSettings.AppSettings("MM_CONNECTION_STRING_connbddcarriere") %>'
DatabaseType='<%# System.Configuration.ConfigurationSettings.AppSettings("MM_CONNECTION_DATABASETYPE_connbddcarriere") %>'
Expression='<%# Request.Form("MM_insert") = "form1" %>'
CreateDataSet="false"
SuccessURL='<%# "catalogue.html" %>'
Debug="true"
>
<Parameters>
<Parameter Name="@nominternet" Value='<%# IIf((Request.Form("nominternet") <> Nothing), Request.Form("nominternet"), "") %>' Type="VarChar" />
</Parameters>
</MM:Insert>
<MM:Insert
runat="server"
CommandText='<%# "INSERT INTO CONTACTSINTERNET (adresseinternet, commune, courriel, cp, ""demande devis pour"", fax, nominternet, prenominternet, tel1, tel2) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)" %>'
ConnectionString='<%# System.Configuration.ConfigurationSettings.AppSettings("MM_CONNECTION_STRING_connbddcarriere") %>'
DatabaseType='<%# System.Configuration.ConfigurationSettings.AppSettings("MM_CONNECTION_DATABASETYPE_connbddcarriere") %>'
Expression='<%# Request.Form("MM_insert") = "form1" %>'
CreateDataSet="false"
SuccessURL='<%# "catalogue.html" %>'
Debug="true"
>
<Parameters>
<Parameter Name="@adresseinternet" Value='<%# IIf((Request.Form("adresseinternet") <> Nothing), Request.Form("adresseinternet"), "") %>' Type="VarChar" />
<Parameter Name="@commune" Value='<%# IIf((Request.Form("commune") <> Nothing), Request.Form("commune"), "") %>' Type="VarChar" />
<Parameter Name="@courriel" Value='<%# IIf((Request.Form("courriel") <> Nothing), Request.Form("courriel"), "") %>' Type="VarChar" />
<Parameter Name="@cp" Value='<%# IIf((Request.Form("cp") <> Nothing), Request.Form("cp"), "") %>' Type="VarChar" />
<Parameter Name="@demande devis pour" Value='<%# IIf((Request.Form("demande_devis_pour") <> Nothing), Request.Form("demande_devis_pour"), "") %>' Type="VarChar" />
<Parameter Name="@fax" Value='<%# IIf((Request.Form("fax") <> Nothing), Request.Form("fax"), "") %>' Type="VarChar" />
<Parameter Name="@nominternet" Value='<%# IIf((Request.Form("nominternet") <> Nothing), Request.Form("nominternet"), "") %>' Type="VarChar" />
<Parameter Name="@prenominternet" Value='<%# IIf((Request.Form("prenominternet") <> Nothing), Request.Form("prenominternet"), "") %>' Type="VarChar" />
<Parameter Name="@tel1" Value='<%# IIf((Request.Form("tel1") <> Nothing), Request.Form("tel1"), "") %>' Type="VarChar" />
<Parameter Name="@tel2" Value='<%# IIf((Request.Form("tel2") <> Nothing), Request.Form("tel2"), "") %>' Type="VarChar" />
</Parameters>
</MM:Insert>
<MM:PageBind runat="server" PostBackBind="true" />
<!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>formulaire devis</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[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

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[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_nbGroup(event, grpName) { //v6.0
var i,img,nbArr,args=MM_nbGroup.arguments;
if (event == "init" && args.length > 2) {
if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
nbArr[nbArr.length] = img;
for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = args[i+1];
nbArr[nbArr.length] = img;
} }
} else if (event == "over") {
document.MM_nbOver = nbArr = new Array();
for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
nbArr[nbArr.length] = img;
}
} else if (event == "out" ) {
for (i=0; i < document.MM_nbOver.length; i++) {
img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
} else if (event == "down") {
nbArr = document[grpName];
if (nbArr)
for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
document[grpName] = nbArr = new Array();
for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
nbArr[nbArr.length] = img;
} }
}

function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

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[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<link href="Assets/CSS/stylecarriere.css" rel="stylesheet" type="text/css">
</head>

<body onLoad="MM_preloadImages('Assets/images/bouttonliensdessous.JPG','Assets/images/Boutonpresentationdessous.JPG','Assets/images/boutoncataloguedessous.JPG','Assets/images/Boutonconseilsdessous.JPG','Assets/images/Boutonmoncomptedessous.JPG','Assets/images/boutoncteddessous.JPG','Assets/images/boutonbagbatdessous.JPG','Assets/images/boutonliensdessous.JPG','Assets/images/boutonaccueildessous.JPG')">
<p align="left"><a href="presentation.html" target="_top" onClick="MM_nbGroup('down','group1','presentation','',1)" onMouseOver="MM_nbGroup('over','presentation','Assets/images/Boutonpresentationdessous.JPG','',1)" onMouseOut="MM_nbGroup('out')"> <img src="Assets/images/Boutonpresentationdessus.JPG" alt="" name="presentation" width="170" height="40" border="0" ></a><a href="catalogue.html" target="_top" onClick="MM_nbGroup('down','group1','catalogue','',1)" onMouseOver="MM_nbGroup('over','catalogue','Assets/images/boutoncataloguedessous.JPG','',1)" onMouseOut="MM_nbGroup('out')"><img src="Assets/images/Boutoncataloguedessus.JPG" alt="Produits devis commande" name="catalogue" width="170" height="40" border="0" ></a><a href="conseils.html" target="_top" onClick="MM_nbGroup('down','group1','conseils','',1)" onMouseOver="MM_nbGroup('over','conseils','Assets/images/Boutonconseilsdessous.JPG','',1)" onMouseOut="MM_nbGroup('out')"><img src="Assets/images/Boutonconseilsdessus.JPG" alt="" name="conseils" width="170" height="40" border="0" ></a><a href="accescatalogueprix.html" target="_top" onClick="MM_nbGroup('down','group1','moncompte','',1)" onMouseOver="MM_nbGroup('over','moncompte','Assets/images/Boutonmoncomptedessous.JPG','',1)" onMouseOut="MM_nbGroup('out')"><img src="Assets/images/Boutonmoncomptedessus.JPG" alt="" name="moncompte" width="170" height="40" border="0" ></a><a href="cted.html" target="_top" onClick="MM_nbGroup('down','group1','cted','',1)" onMouseOver="MM_nbGroup('over','cted','Assets/images/boutoncteddessous.JPG','',1)" onMouseOut="MM_nbGroup('out')"><img src="Assets/images/boutoncteddessus.JPG" alt="" name="cted" width="170" height="40" border="0" ></a><a href="bagbat.html" target="_top" onClick="MM_nbGroup('down','group1','bagbat','',1)" onMouseOver="MM_nbGroup('over','bagbat','Assets/images/boutonbagbatdessous.JPG','',1)" onMouseOut="MM_nbGroup('out')"><img src="Assets/images/boutonbagbatdessus.JPG" alt="" name="bagbat" width="170" height="40" border="0" ></a><a href="liens.html" target="_top" onClick="MM_nbGroup('down','group1','liens','',1)" onMouseOver="MM_nbGroup('over','liens','Assets/images/boutonliensdessous.JPG','',1)" onMouseOut="MM_nbGroup('out')"><img src="Assets/images/boutonliensdessus.JPG" alt="" name="liens" width="170" height="40" border="0" ></a><a href="accueil.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('pageaccueil','','Assets/images/boutonaccueildessous.JPG',1)"><img src="Assets/images/boutonaccueildessus.JPG" name="pageaccueil" width="170" height="40" border="0" align="absmiddle"></a></p>

<div align="left">
<blockquote>
<blockquote>&nbsp;</blockquote>
</blockquote>
</div>
<p align="center" class="Style1">Formulaire pour un devis </p>
<div align="center">
<blockquote class="Style3">&nbsp;
<p>&nbsp;</p>

<p>&nbsp;</p>
<form method="post" name="form1" runat="server">
<table align="center">
<tr valign="baseline">
<td nowrap align="right">nom:</td>
<td> <asp:TextBox ID="nominternet" TextMode="SingleLine" Columns="32" runat="server" />
</td>
</tr>
<tr valign="baseline">
<td nowrap align="right">pr&eacute;nom:</td>
<td> <asp:TextBox ID="prenominternet" TextMode="SingleLine" Columns="32" runat="server" />
</td>
</tr>
<tr valign="baseline">
<td nowrap align="right">adresse:</td>
<td> <asp:TextBox ID="adresseinternet" TextMode="SingleLine" Columns="32" runat="server" />
</td>
</tr>
<tr valign="baseline">
<td nowrap align="right">Cp:</td>
<td><asp:textbox id="cp" TextMode="SingleLine" Columns="32" runat="server" />
</td>
</tr>
<tr valign="baseline">
<td nowrap align="right">commune:</td>
<td><asp:TextBox ID="commune" TextMode="SingleLine" Columns="32" runat="server" />
</td>
</tr>
<tr valign="baseline">
<td nowrap align="right">T&eacute;l&eacute;phone1:</td>
<td> <asp:TextBox ID="tel1" TextMode="SingleLine" Columns="32" runat="server" />
</td>
</tr>
<tr valign="baseline">
<td nowrap align="right">T&eacute;l&eacute;phone2:</td>
<td> <asp:TextBox ID="tel2" TextMode="SingleLine" Columns="32" runat="server" />
</td>
</tr>
<tr valign="baseline">
<td nowrap align="right">Fax:</td>
<td><asp:TextBox ID="fax" TextMode="SingleLine" Columns="32" runat="server" />
</td>
</tr>
<tr valign="baseline">
<td nowrap align="right">courriel:</td>
<td><asp:TextBox ID="courriel" TextMode="SingleLine" Columns="32" runat="server" />
</td>
</tr>
<tr valign="baseline">
<td nowrap align="right">devis pour:</td>
<td> <asp:TextBox ID="demande_devis_pour" Columns="32" runat="server" /> </td>
</tr>
<tr valign="baseline">
<td nowrap align="right">&nbsp;</td>
<td><input type="submit" value="Insérer l'enregistrement"></td>
</tr>
</table>
<input type="hidden" name="MM_insert" value="form1">
</form>
<p>&nbsp;</p>
</blockquote>
</div>
<blockquote>
<p align="center" class="Style3">&nbsp;</p>
</blockquote>
</body>
</html>


Message posté le 11/10/2005 par Thouément

Répondre à ce message
 
AuteurRéponse 
yo
11/10/2005
RE : Formulaire insertion vers access
si tu enregistres une donnée c'est que ton insert est bon, la 2 ème donnée a l'air d'être un varchard, regarde tes cotes "" ou '' ...
Répondre
Thouément
11/10/2005
RE : RE : Formulaire insertion vers access
Toutes mes données sont des varchar. qu'est ce qu on appel des cotes? les " qui sont de chaque côté du mot varchar ?
je dois en mettre une ou deux c'est bien çà? Pourtant autour de mon champ qui passe bien il n y a pas de différence?
nb : A chq fois que l'on entreprend qlq chose c'est tjs le départ qui est dur et là c'est pareil voir pire plutard je vous embeterais moins c'est promis!!!!! ...
Répondre
Thouément
11/10/2005
RE : RE : RE : Formulaire insertion vers access
çà la fait
tu as surement raison il y a un champs qui posait probleme il y avait des "" en trop pres de son nom
pourquoi c est arrive là ???
moi pas comprendre!! enfin çà fonctionne c est cool merci ...
Répondre


ASP Serveur - L'hébergement ASP.NET


A RETENIR CETTE SEMAINE
21/11/2008 - Microsoft Windows fête ses 23 ans !
Le célèbre système d'exploitation de Microsoft fête aujourd'hui son vingt-troisième anniversaire. C' ...
21/11/2008 - Pratiques fondamentales pour un développement logiciel sûr
L'article de Micheal Howard vient d'être traduit en français par Kader Yildirim ! Ce document synthé ...
21/11/2008 - Mise à jour de la méthode SDL pour éradiquer définitivement les Mécapoulets
Les Mécapoulets sont une menace perpétuelle pour les développeurs et les utilisateurs de leurs appli ...
20/11/2008 - A la découverte des tests d’interfaces graphiques avec Visual Studio 2010
Microsoft introduit dans sa version 2010 de Visual Studio les « Coded UI Tests », ou « Tests d’inter ...
20/11/2008 - PDC 2008 - Windows Azure vu par Grégory Renard
Grégory vous propose de découvrir en vidéo - et en 5 minutes - les annonces faites autour de Windows ...
20/11/2008 - Microsoft prépare une suite antivirus gratuite
L’éditeur abandonne Live One Care, sa solution payante, au profit de Morro, une suite antivirus grat ...
19/11/2008 - Comprendre le fonctionnement des Rules de WF
L'activité Policy va nous permettre de piloter nos workflows à partir de règles simples mais efficac ...
(c) 1999-2006 ASP MAGAZINE SARL
Partenaires : Codes sources c2i ASP-PHP
Hébergement serveurs dédiés Windows


Hit-Parade