[ASP .Net] XForms

XForms [ASP .Net] - ASP - Programmation

Marsh Posté le 05-05-2007 à 16:36:43    

Salut à tous,
 
Je souhait créer un formulaire dans ma page aspx via l'utilisation de XForms.
Il se trouve que j'ai bien mis tous les bons namspaces et pourtant VS2005 me dit que mes tags XForms ne sont pas supportées.
Voici le code:
<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<html xmlns:xf="http://www.w3.org/2002/xforms">
<head>
<xf:model>
  <xf:instance>
  <person>
    <fname/>
    <lname/>
  </person>
  </xf:instance>
  <xf:submission id="form1" method="get"
  action="submit.asp"/>
</xf:model>
</head>
 
<body>
  <xf:input ref="fname">
  <xf:label>First Name</xf:label></xf:input>
  <br />
  <xf:input ref="lname">
  <xf:label>Last Name</xf:label></xf:input>
  <br />
  <br />
  <xf:submit submission="form1">
  <xf:label>Submit</xf:label></xf:submit>
</body>
</html>
 
Est ce que quelqu'un a une idée?
 
Merci par avance

Reply

Marsh Posté le 05-05-2007 à 16:36:43   

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed