IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

ASP.NET Discussion :

[Vb.net] Problème Formulaire


Sujet :

ASP.NET

  1. #1
    Membre à l'essai
    Profil pro
    Inscrit en
    Septembre 2006
    Messages
    10
    Détails du profil
    Informations personnelles :
    Localisation : Canada

    Informations forums :
    Inscription : Septembre 2006
    Messages : 10
    Points : 10
    Points
    10
    Par défaut [Vb.net] Problème Formulaire
    Observer attentivement les déclaration de formulaire, mais actions sont changé automatiquement pour une raison que je ne comprend pas

    Voici mon code source:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <title>Login</title>
    </head>
    <body>
        <form id="formu" action="login.aspx" runat="server" method="post"  >
        <div align="center" >
            &nbsp;
            <table style="width: 736px; height: 298px">
                <tr>
                    <td style="width: 231px; height: 153px">
                    </td>
                    <td style="width: 246px; height: 153px" align="center">
                    </td>
                    <td style="width: 229px; height: 153px">
                    </td>
                </tr>
                <tr>
                    <td style="width: 231px; height: 34px">
                    </td>
                    <td style="width: 246px; height: 34px" align="center">
                        Utilisateur<asp:TextBox ID="utilisateur" runat="server"></asp:TextBox></td>
                    <td style="width: 229px; height: 34px">
                    </td>
                </tr>
                <tr>
                    <td style="width: 231px; height: 36px">
                    </td>
                    <td style="width: 246px; height: 36px" align="center">
                        Password<asp:TextBox ID="password" runat="server"></asp:TextBox></td>
                    <td style="width: 229px; height: 36px">
                    </td>
                </tr>
                <tr>
                    <td style="width: 231px; height: 36px">
                    </td>
                    <td style="width: 246px; height: 36px" align="center">
                        <asp:Button runat="server" ID="submit" Text="Login" /><input type="submit" name="Submit" value="OK" /></td>
     
                    <td style="width: 229px; height: 36px">
                    </td>
                </tr>
            </table>
        </div>
        </form>
    </body>
    </html>
    Voici ce que le code source du navigateur affiche
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
     
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head><title>
    	Login
    </title></head>
    <body>
        <form name="formu" method="post" action="Default.aspx" id="formu">
    <div>
    <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTExNTc2NTI3OTlkZFDH+nZzdKobGAXw5IcYBRU3ZZBY" />
    </div>
     
        <div align="center" >
            &nbsp;
            <table style="width: 736px; height: 298px">
                <tr>
                    <td style="width: 231px; height: 153px">
                    </td>
                    <td style="width: 246px; height: 153px" align="center">
                    </td>
                    <td style="width: 229px; height: 153px">
                    </td>
                </tr>
                <tr>
                    <td style="width: 231px; height: 34px">
                    </td>
                    <td style="width: 246px; height: 34px" align="center">
                        Utilisateur<input name="utilisateur" type="text" id="utilisateur" /></td>
                    <td style="width: 229px; height: 34px">
                    </td>
                </tr>
                <tr>
                    <td style="width: 231px; height: 36px">
                    </td>
                    <td style="width: 246px; height: 36px" align="center">
                        Password<input name="password" type="text" id="password" /></td>
                    <td style="width: 229px; height: 36px">
                    </td>
                </tr>
                <tr>
                    <td style="width: 231px; height: 36px">
                    </td>
                    <td style="width: 246px; height: 36px" align="center">
                        <input type="submit" name="submit" value="Login" id="submit" /><input type="submit" name="Submit" value="OK" /></td>
     
                    <td style="width: 229px; height: 36px">
                    </td>
                </tr>
            </table>
        </div>
     
    <div>
     
    	<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEWBALsmcGuAQLKorzXCQLyveCRDwLcu4S2BEPCwR+0Elxpzx/FeoBbnfnB9sdV" />
    </div></form>
    </body>
    </html>

  2. #2
    Membre régulier
    Profil pro
    Inscrit en
    Décembre 2004
    Messages
    91
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Décembre 2004
    Messages : 91
    Points : 90
    Points
    90
    Par défaut
    et ?

    le web.config ?
    Grégory Schiro

    Blog PowerShell & MOF
    http://scriptingof.blogspot.com

  3. #3
    Rédacteur

    Avatar de Jérôme Lambert
    Homme Profil pro
    Développeur .NET
    Inscrit en
    Novembre 2003
    Messages
    4 451
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 40
    Localisation : Belgique

    Informations professionnelles :
    Activité : Développeur .NET
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Novembre 2003
    Messages : 4 451
    Points : 14 357
    Points
    14 357
    Par défaut
    C'est pas un problème, c'est comme ça !
    Jérôme Lambert
    Développeur, Architecte, Rédacteur & Fan technologies Microsoft
    Ma boite informatique | Mon profil LinkedIn

  4. #4
    Membre à l'essai
    Profil pro
    Inscrit en
    Septembre 2006
    Messages
    10
    Détails du profil
    Informations personnelles :
    Localisation : Canada

    Informations forums :
    Inscription : Septembre 2006
    Messages : 10
    Points : 10
    Points
    10
    Par défaut
    Alors comment je fais pour envoyer les informations de mon login a une autre page?

  5. #5
    Rédacteur

    Avatar de Jérôme Lambert
    Homme Profil pro
    Développeur .NET
    Inscrit en
    Novembre 2003
    Messages
    4 451
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 40
    Localisation : Belgique

    Informations professionnelles :
    Activité : Développeur .NET
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Novembre 2003
    Messages : 4 451
    Points : 14 357
    Points
    14 357
    Par défaut
    Citation Envoyé par Couston
    Alors comment je fais pour envoyer les informations de mon login a une autre page?
    • Soit tu les stockes dans ton objet de session (Conseillé)
    • Soit tu fais un Request.Redirect("~/Login.aspx?param1="+textbox1.Text" + "&param2=" + textbox2.Text);
    Jérôme Lambert
    Développeur, Architecte, Rédacteur & Fan technologies Microsoft
    Ma boite informatique | Mon profil LinkedIn

  6. #6
    Membre régulier
    Profil pro
    Inscrit en
    Décembre 2004
    Messages
    91
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Décembre 2004
    Messages : 91
    Points : 90
    Points
    90
    Par défaut
    Ben je le redis.... le web.config est ton ami.

    Il est fait exactement pour ca.
    Grégory Schiro

    Blog PowerShell & MOF
    http://scriptingof.blogspot.com

Discussions similaires

  1. [VB.Net]Comment appeler un formulaire ?
    Par Paolo21 dans le forum Windows Forms
    Réponses: 2
    Dernier message: 20/03/2006, 19h27
  2. [VB.NET] redimensionement d'un formulaire
    Par smedini dans le forum Windows Forms
    Réponses: 5
    Dernier message: 01/02/2006, 16h37
  3. [VB.NET][VS2005] validation de formulaire
    Par vermo dans le forum ASP.NET
    Réponses: 2
    Dernier message: 21/01/2006, 18h09
  4. [VB.NET] methode post de formulaire
    Par HULK dans le forum ASP.NET
    Réponses: 6
    Dernier message: 10/06/2005, 16h48
  5. [vb.net] Propriétés d'un formulaire
    Par alex69 dans le forum Windows Forms
    Réponses: 2
    Dernier message: 09/06/2005, 14h51

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo