begin process at 2012 05 27 18:59:17
  Trouver un code source :
 
dans
 
Accueil > Forum > 

Archive ASP & ASP.NET

 > 

Archives ASP & ASP.NET

 > 

ASP.net

 > 

LA CRISE ASP.NET, Besoins d'aide...


Derniers messages déposésPoser une question dans le forum ou lancer une discussion

LA CRISE ASP.NET, Besoins d'aide...

samedi 15 janvier 2005 à 14:22:25 | LA CRISE ASP.NET, Besoins d'aide...

Alex001

Membre Club
Bonjour @ tous,

J'ais VS.net 2003 et bizarement mon code vb ne fonctionne pas même pour mettre a jour un simple label , ma page default.aspx est simplement rafraichie mais le label n'as pas changé d'etat, quand je créer un nouveau projet tous fonctionne bien. mais dans mon projet ou il y a le probleme si je rajoute une page aspx et que j'ajoute un boutton et un label avec un simple code sur click du boutton (label1.text = "test" ) sa ne fonctionne pas !

J'ais vraiment besoins d'aide, merci d'avance pour votre aide.


ALEX001
samedi 15 janvier 2005 à 16:26:00 | Re : LA CRISE ASP.NET, Besoins d'aide...

jesusonline

Membre Club Administrateur CodeS-SourceS
deux hypothéèses.

si tu as fait

sub page_load()
label1.text = "load"
end sub

sub btn_click()
label1.text = "click"
end sub

ca ne marche pas car apres le click la page va se recharger donc relancer le page_load et donc le label1.text sera toujours égale à load

pour palier a ca, il faut faire if not page.ispostback then label1.text = "load" dans le page_load

deuxieme hypothèse, il y a un probleme entre IIS et le framework. Recherche le fichier aspnet_regiis qui est dans le c:/windowd/microsoft.net/v1.1.0375/aspnet_regiis.exe et lance le avec l'option i aspnet_regiis /i





Cyril  - Webmaster de Hoshimi.CodeS-SourceS.fr
samedi 15 janvier 2005 à 18:58:18 | Re : LA CRISE ASP.NET, Besoins d'aide...

Alex001

Membre Club
Salut,

Avant tout merci de ta reponse et du temps que tu y a consacré.

J'ais effectivement reinstallé le framework avec la ligne de commande qui pour mon PC est c:\windows\microsoft.net\framework\v1.1.4322\aspnet_regiis.exe -i

Mais rien ne change, la condition "if not page.ispostback then" est bien placé sur mon sub load mais rien a faire, aucun de mes bouton ne fonctionne sauf ceux qui ont un HREF en code Html.

Pourtant ma variable recupére bien le querystring de l'argument default.aspx?ID=1

Voici un copier coller du code vb si tu peut m'aider se serais super car j'ais déjàs pris beaucoup de retard et je crise completement devant ce probleme.

Merci d'avance de ton aide.

Dim IP As String

Dim ID_Page As String


Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

'Placez ici le code utilisateur pour initialiser la page

ID_Page = Request.QueryString("ID")

If Not Page.IsPostBack Then

afficherPage(ID_Page) 'charge le bon panel et menu

IP = Request.ServerVariables("REMOTE_ADDR") 'recup IP

 

Label1.Text = IP & " -- " & ID_Page  'sa fonctionne

Response.Redirect("admin/defailt.aspx") 'fonctionne pas

End If

End Sub

Function afficherPage(ByVal id As String)

If id = Nothing Then Exit Function 'ID = querystring

Select Case id

Case 1

ID_Page = ID_Page & " CASE 1"

'construction du menu

Acceuil.ImageUrl = "Images/Btt-Acceuill.gif"

Pro.ImageUrl = "images/Btt-pro-2.gif"

particulier.ImageUrl = "images/Btt-particulier-2.gif"

References.ImageUrl = "images/Btt-ref-2.gif"

'affichage panel

Panel1.Visible = True

Panel2.Visible = False

Panel3.Visible = False

Panel4.Visible = False

Panel5.Visible = False

Case 2

ID_Page = ID_Page & " CASE 2"

'construction du menu

Acceuil.ImageUrl = "Images/Btt-Acceuill-2.gif"

Pro.ImageUrl = "images/Btt-pro.gif"

particulier.ImageUrl = "images/Btt-particulier-2.gif"

References.ImageUrl = "images/Btt-ref-2.gif"

'affichage panel

Panel1.Visible = False

Panel2.Visible = True

Panel3.Visible = False

Panel4.Visible = False

Panel5.Visible = False

Case 3

ID_Page = ID_Page & " CASE 3"

'construction du menu

Acceuil.ImageUrl = "Images/Btt-Acceuill-2.gif"

Pro.ImageUrl = "images/Btt-pro-2.gif"

particulier.ImageUrl = "images/Btt-particulier.gif"

References.ImageUrl = "images/Btt-ref-2.gif"

'affichage panel

Panel1.Visible = False

Panel2.Visible = False

Panel3.Visible = True

Panel4.Visible = False

Panel5.Visible = False

Case 4

ID_Page = ID_Page & " CASE 4"

'construction du menu

Acceuil.ImageUrl = "Images/Btt-Acceuill-2.gif"

Pro.ImageUrl = "images/Btt-pro-2.gif"

particulier.ImageUrl = "images/Btt-particulier-2.gif"

References.ImageUrl = "images/Btt-ref.gif"

'affichage panel

Panel1.Visible = False

Panel2.Visible = False

Panel3.Visible = False

Panel4.Visible = True

Panel5.Visible = False

Case 5

ID_Page = ID_Page & " CASE 5"

'construction du menu

Acceuil.ImageUrl = "Images/Btt-Acceuill-2.gif"

Pro.ImageUrl = "images/Btt-pro-2.gif"

particulier.ImageUrl = "images/Btt-particulier-2.gif"

References.ImageUrl = "images/Btt-ref-2.gif"

'affichage panel

Panel1.Visible = False

Panel2.Visible = False

Panel3.Visible = False

Panel4.Visible = False

Panel5.Visible = True

Case Else

End Select

End Function

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

Label2.Text = "test"

End Sub

Le label2.text garde toujours sa valeur de base "Label2" alors que sa devrait etre "test".
Apres la pageload plus aucun code ne fonctionne même response.redirect("string")

Encore merci pour le temps passer a m'aider.

ALEX001.
samedi 15 janvier 2005 à 19:43:54 | Re : LA CRISE ASP.NET, Besoins d'aide...

jesusonline

Membre Club Administrateur CodeS-SourceS
Effectivement bizarre.

t'as vs.net donc essaye de le debuguer, pour cela place toi sur la ligne du page_load tape F9, cela aura pour effet d'ajouter un point d'arret. ensuite tu demarres le projet par F5 ainsi a chaque page_load, VS.net reprendra la main, et tu pourras suivre pas à pas, ton programme.

En tout cas c'est bizarre surtout apres avoir fait aspnet_regiis -i j'ai parcouru rapidement le code, j'ai rien vu d'anormal. regarde un article de Fabrice sur www.asp-php.net qui explique justement les commandes de aspnet_regiis ...

Sinon supposition con, change de navigateur ...


Cyril  - Webmaster de Hoshimi.CodeS-SourceS.fr
samedi 15 janvier 2005 à 20:01:51 | Re : LA CRISE ASP.NET, Besoins d'aide...

Alex001

Membre Club
Merci pour le conseil.

Le point d'arret fonctionne sur "Page_load" 1 chargement a chaque click ou actualisation mais si je clique sur un bouton le point d'arret du "boutton.click" ne s'arrete pas, a gauche sur la pastille de couleur bordeau il affiche un point d'interrogation et le Tip affiche:  "Le point d'arret ne sera pas atteint pour l'instant , aucun symbole n'a été chargé pour ce document"

Je sais pas a quoi sa correspond, peut tu m'aider encore ?

Merci d'avance.

ALEX001
samedi 15 janvier 2005 à 20:43:42 | Re : LA CRISE ASP.NET, Besoins d'aide...

jesusonline

Membre Club Administrateur CodeS-SourceS
Je peux voir le code aspx de ta page, et aussi le rendu html, le code que tu as dans IE en faisant afficher la source.



Cyril  - Webmaster de Hoshimi.CodeS-SourceS.fr
samedi 15 janvier 2005 à 20:55:47 | Re : LA CRISE ASP.NET, Besoins d'aide...

Alex001

Membre Club

Si tu veut tu peut telecharger le projet sur ce lien FTP
[ Lien ]

login : jesusonline
passe: 1001

Le fichier est : SAFE.RAR
La solution est sur C:\Inetpub\wwwroot\SAFE sur mon disque.

Sinon voici la source


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
 <HEAD>
  <title>SAFE-INVESTIGATIONS.FR</title>
  <meta content="True" name="vs_snapToGrid">
  <meta content="False" name="vs_showGrid">
  <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
  <meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
  <meta content="JavaScript" name="vs_defaultClientScript">
  <meta content=" [ Lien ]" name="vs_targetSchema">
  <LINK href="Styles.css" type="text/css" rel="stylesheet">
 </HEAD>
 <BODY>
  <form name="Form1" method="post" action="Default.aspx" id="Form1">
<input type="hidden" name="__VIEWSTATE" value="dDwtMTY4NzkyNDY4OTt0PDtsPGk8MT47PjtsPHQ8O2w8aTw5PjtpPDExPjtpPDEzPjtpPDE1PjtpPDE3PjtpPDIyPjtpPDIzPjtpPDI0PjtpPDI1Pjs+O2w8dDxwPHA8bDxJbWFnZVVybDs+O2w8SW1hZ2VzL0J0dC1BY2NldWlsbC5naWY7Pj47Pjs7Pjt0PHA8cDxsPEltYWdlVXJsOz47bDxpbWFnZXMvQnR0LXByby0yLmdpZjs+Pjs+Ozs+O3Q8cDxwPGw8SW1hZ2VVcmw7PjtsPGltYWdlcy9CdHQtcGFydGljdWxpZXItMi5naWY7Pj47Pjs7Pjt0PHA8cDxsPEltYWdlVXJsOz47bDxpbWFnZXMvQnR0LXJlZi0yLmdpZjs+Pjs+Ozs+O3Q8cDxwPGw8VGV4dDs+O2w8MTI3LjAuMC4xICAtLSAgICBDQVNFIDE7Pj47Pjs7Pjt0PHA8cDxsPFZpc2libGU7PjtsPG88Zj47Pj47Pjs7Pjt0PHA8cDxsPFZpc2libGU7PjtsPG88Zj47Pj47Pjs7Pjt0PHA8cDxsPFZpc2libGU7PjtsPG88Zj47Pj47Pjs7Pjt0PHA8cDxsPFZpc2libGU7PjtsPG88Zj47Pj47PjtsPGk8MT47PjtsPHQ8O2w8aTwxPjs+O2w8dDx0PDs7bDxpPDA+Oz4+Ozs+Oz4+Oz4+Oz4+Oz4+O2w8R087Pj4OMFrjcE5f8zH79SQR+6oINbnXgQ==" />

   <TABLE id="Table1" style="Z-INDEX: 101; LEFT: 2px; POSITION: absolute; TOP: 2px" cellSpacing="0"
    cellPadding="0" align="center" border="0">
    <TR>
     <TD style="HEIGHT: 19px" colSpan="2">
      <TABLE id="Table2" height="223" cellSpacing="0" cellPadding="0" width="747" border="0">
       <TR>
        <TD colSpan="13"><IMG height="2" alt="" src="images/Top_01.gif" width="746"></TD>
        <TD><IMG height="2" alt="" src="images/spacer.gif" width="1"></TD>
       </TR>
       <TR>
        <TD width="746" bgColor="#55707c" colSpan="13" height="13"><IMG height="13" alt="" src="images/spacer.gif" width="746"></TD>
        <TD><IMG height="13" alt="" src="images/spacer.gif" width="1"></TD>
       </TR>
       <TR>
        <TD colSpan="6"><IMG height="45" alt="" src="images/Top_03.jpg" width="358"></TD>
        <TD colSpan="4" rowSpan="2"><IMG height="144" alt="" src="images/Top_04.jpg" width="202"></TD>
        <TD colSpan="3" rowSpan="2"><IMG height="144" alt="" src="Images/Top_05.jpg" width="186"></TD>
        <TD><IMG height="45" alt="" src="images/spacer.gif" width="1"></TD>
       </TR>
       <TR>
        <TD colSpan="6"><IMG height="99" alt="" src="images/Top_06.jpg" width="358"></TD>
        <TD><IMG height="99" alt="" src="images/spacer.gif" width="1"></TD>
       </TR>
       <TR>
        <TD colSpan="4"><IMG height="20" alt="" src="images/Top_07.jpg" width="304"></TD>
        <TD width="442" bgColor="#55707c" colSpan="9" height="20"><IMG height="20" alt="" src="images/spacer.gif" width="442"></TD>
        <TD><IMG height="20" alt="" src="images/spacer.gif" width="1"></TD>
       </TR>
       <TR>
        <TD colSpan="3" rowSpan="2"><IMG height="23" alt="" src="images/Top_09.jpg" width="271"></TD>
        <TD colSpan="2" rowSpan="3"><IMG height="30" alt="" src="images/Top_10.gif" width="46"></TD>
        <TD colSpan="8"><IMG height="7" alt="" src="images/Top_11.gif" width="429"></TD>
        <TD><IMG height="7" alt="" src="images/spacer.gif" width="1"></TD>
       </TR>
       <TR>
        <TD width="54" bgColor="#c7daef" colSpan="2" height="33" rowSpan="3">
         <DIV style="WIDTH: 40px; POSITION: relative; HEIGHT: 19px" align="center" ms_positioning="FlowLayout"><FONT size="2">Compte
           Client</FONT></DIV>
        </TD>
        <TD width="57" bgColor="#c7daef" height="33" rowSpan="3"><DIV style="WIDTH: 46px; POSITION: relative; HEIGHT: 19px" align="right" ms_positioning="FlowLayout"><FONT size="2">Login
           :</FONT></DIV>
        </TD>
        <TD width="99" bgColor="#c7daef" height="33" rowSpan="3"><input name="TextBox1" type="text" id="TextBox1" style="border-style:Groove;width:88px;" /></TD>
        <TD width="57" bgColor="#c7daef" colSpan="2" height="33" rowSpan="3">
         <DIV style="WIDTH: 48px; POSITION: relative; HEIGHT: 19px" align="right" ms_positioning="FlowLayout"><FONT size="2">Passe
           :</FONT></DIV>
        </TD>
        <TD width="99" bgColor="#c7daef" height="33" rowSpan="3"><input name="TextBox2" type="text" id="TextBox2" style="border-style:Groove;width:85px;" /></TD>
        <TD width="43" bgColor="#c7daef" height="33" rowSpan="3"><input type="image" name="GO" id="GO" src="Images/GO_36.gif" alt="Validez" border="0" /></TD>
        <TD><IMG height="16" alt="" src="images/spacer.gif" width="1"></TD>
       </TR>
       <TR>
        <TD><IMG height="7" alt="" src="images/Top_18.gif" width="163"></TD>
        <TD><IMG height="7" alt="" src="images/Top_19.gif" width="5"></TD>
        <TD><IMG height="7" alt="" src="images/Top_20.gif" width="103"></TD>
        <TD><IMG height="7" alt="" src="images/spacer.gif" width="1"></TD>
       </TR>
       <TR>
        <TD colSpan="2" rowSpan="2"><IMG height="13" alt="" src="images/Top_21.jpg" width="168"></TD>
        <TD width="149" bgColor="#c7daef" colSpan="3" height="10"><IMG height="10" alt="" src="images/spacer.gif" width="149"></TD>
        <TD><IMG height="10" alt="" src="images/spacer.gif" width="1"></TD>
       </TR>
       <TR>
        <TD colSpan="11"><IMG height="3" alt="" src="images/Top_23.gif" width="578"></TD>
        <TD><IMG height="3" alt="" src="images/spacer.gif" width="1"></TD>
       </TR>
       <TR>
        <TD><IMG height="1" alt="" src="images/spacer.gif" width="163"></TD>
        <TD><IMG height="1" alt="" src="images/spacer.gif" width="5"></TD>
        <TD><IMG height="1" alt="" src="images/spacer.gif" width="103"></TD>
        <TD><IMG height="1" alt="" src="images/spacer.gif" width="33"></TD>
        <TD><IMG height="1" alt="" src="images/spacer.gif" width="13"></TD>
        <TD><IMG height="1" alt="" src="images/spacer.gif" width="41"></TD>
        <TD width="12"><IMG height="1" alt="" src="images/spacer.gif" width="33"></TD>
        <TD><IMG height="1" alt="" src="images/spacer.gif" width="57"></TD>
        <TD><IMG height="1" alt="" src="images/spacer.gif" width="99"></TD>
        <TD><IMG height="1" alt="" src="images/spacer.gif" width="13"></TD>
        <TD><IMG height="1" alt="" src="images/spacer.gif" width="44"></TD>
        <TD><IMG height="1" alt="" src="images/spacer.gif" width="99"></TD>
        <TD><IMG height="1" alt="" src="images/spacer.gif" width="43"></TD>
        <TD></TD>
       </TR>
      </TABLE>
     </TD>
    </TR>
    <TR>
     <TD bgColor="#55707c"><BR>
      <TABLE id="Tableau_01" borderColor="#55707c" height="100%" cellSpacing="0" cellPadding="0"
       width="165" bgColor="#55707c" border="0">
       <TR>
        <TD borderColor="#55707c" bgColor="#55707c" height="25">
         <input type="submit" name="Button1" value="Button" id="Button1" /></TD>
        <TD width="1" bgColor="#485f6a" height="20"><IMG height="20" alt="" src="images/spacer.gif" width="1"></TD>
       </TR>
       <TR>
        <TD colSpan="2" height="26"><a id="Acceuil" href="default.aspx?ID=1"><img src="Images/Btt-Acceuill.gif" alt="Acceuil" border="0" /></a></TD>
       </TR>
       <TR>
        <TD colSpan="2" height="26"><a id="Pro" href="Default.aspx?ID=2"><img src="images/Btt-pro-2.gif" alt="Professionnels" border="0" /></a></TD>
       </TR>
       <TR>
        <TD colSpan="2" height="26"><a id="particulier" href="default.aspx?ID=3"><img src="images/Btt-particulier-2.gif" alt="Particulier" border="0" /></a></TD>
       </TR>
       <TR>
        <TD colSpan="2" height="26"><a id="References" href="default.aspx?ID=4"><img src="images/Btt-ref-2.gif" alt="References" border="0" /></a></TD>
       </TR>
       <TR>
        <TD borderColor="#55707c" width="164" bgColor="#55707c" height="100%"><span id="Label1">127.0.0.1  --    CASE 1</span></TD>
        <TD width="1" bgColor="#55707c" height="100%" rowSpan="2"><IMG height="100%" alt="" src="images/spacer.gif" width="1"></TD>
       </TR>
       <TR>
        <TD bgColor="#55707c" height="30">
         <P align="center">
          <span id="Label2">Label</span></P>
        </TD>
       </TR>
      </TABLE>
     </TD>
     <TD style="BACKGROUND-POSITION: left bottom; BACKGROUND-ATTACHMENT: fixed; BACKGROUND-IMAGE: url( [ Lien ]); BACKGROUND-REPEAT: no-repeat"
      vAlign="top"><div id="Panel1">
 
       <div align="center">
 <table width="600">
  <tbody>
   <tr>
    <td>
     <table style="WIDTH: 594px" height="100%" width="594">
      <tbody>
       <tr>
        <td>
         <table cellspacing="10" cellpadding="2" width="100%">
          <tbody>
           <tr>
            <td>
             <strong><U>Bienvenue sur le site de SAFE INVESTIGATIONS</U></strong></td>
            <td>
             <p align="right">
              <img src="images/fleche.gif">
             </p>
            </td>
           </tr>
          </tbody>
         </table>
         <table cellspacing="10" cellpadding="2" width="100%">
          <tbody>
           <tr>
            <td valign="top">
             <img id="Bienvenue1_Image3" src="Controls/images/img001.gif" alt="" align="Top" border="0" />
            </td>
            <td valign="top">
             <DIV align="left">Notre mission première est de vous&nbsp;fournir&nbsp;des
              éléments&nbsp;fiables et circonstanciés nécessaires a la prise de décision.
              Toutes nos missions sont réalisées dans la plus grande discrétion, efficacité,
              transparence et rigueur. Afin de défendre vos intérêts, nous nous engageons à
              mobiliser toute l'énergie et le savoir-faire de notre entreprise. Notre
              meilleure publicité est la satisfaction de nos clients.
             </DIV>
            </td>
           </tr>
          </tbody>
         </table>
        </td>
       </tr>
      </tbody>
     </table>
     <P align="center">
      <img id="Bienvenue1_Image4" src="Controls/images/ligne.gif" alt="" border="0" /></P>
     <table height="100%" width="100%">
      <tbody>
       <tr>
        <td>
         <table cellspacing="10" cellpadding="2" width="100%">
          <tbody>
           <tr>
            <td>
             <strong><U>A propos de SAFE INVESTIGATIONS</U></strong></td>
            <td>
             <p align="right">
              <img src="images/fleche.gif">
             </p>
            </td>
           </tr>
          </tbody>
         </table>
         <table cellspacing="10" cellpadding="2" width="100%">
          <tbody>
           <tr>
            <td valign="top">
             <img id="Bienvenue1_Image7" src="Controls/images/img001.gif" alt="" align="Top" border="0" />
            </td>
            <td valign="top">
             <DIV align="left">La création de notre entité SAFE est le résultat de nombreuses
              années d'exercices de la profession d'agent privé de recherches. Fort du
              constat de la complexité des dossiers et de la demande&nbsp;sans cesse
              croissante d'informations et de renseignements, nous avons&nbsp;mis en commun,
              afin de mieux vous servir, nos&nbsp;compétences professionnelles. Cette
              polyvalence&nbsp;humaine et technique est pour vous un gage de succès.
             </DIV>
            </td>
           </tr>
          </tbody>
         </table>
        </td>
       </tr>
      </tbody>
     </table>
     <P align="center">
      <img id="Bienvenue1_Image8" src="Controls/images/ligne.gif" alt="" border="0" /><BR>
      <font color="#000000"><font face="Tahoma"><b>
         <span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; LETTER-SPACING: 1.25pt; mso-bidi-font-style: italic">
          <img src="images/spacer.gif" width="15"></span></b></font></font>&nbsp;<BR>
      <font color="#000000"><font face="Tahoma"><b>
         <span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; LETTER-SPACING: 1.25pt; mso-bidi-font-style: italic">
          <FONT color="#636363">" L'ignorance coûte plus cher que l'information" J.F.
           Kennedy.</FONT>
         </span></b></font></font></P>
     <P align="center"><FONT color="#000000"><FONT face="Tahoma" size="1"><B><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; LETTER-SPACING: 1.25pt; mso-bidi-font-style: italic">
          <span id="Bienvenue1_Label1" style="color:#636363;width:450px;">Tous nos clients se verront attribuer personnellement un espace ultra securisé afin de faciliter nos échanges d'informations :</span>
         </SPAN></B></FONT></FONT></P>
     <P align="center"><FONT color="#000000"><FONT face="Tahoma"><B><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; LETTER-SPACING: 1.25pt; mso-bidi-font-style: italic"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; LETTER-SPACING: 0.4pt; mso-bidi-font-style: italic">
           <input type="submit" name="Bienvenue1:Button1" value="Exemple Espace sécurisé" id="Bienvenue1_Button1" style="border-style:Groove;" />
          </SPAN>
         </SPAN></B></FONT></FONT></P>
     <p align="center">
      <font color="#000000"><font face="Tahoma"><b>
         <span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; LETTER-SPACING: 0.4pt; mso-bidi-font-style: italic">
          <img src="images/spacer.gif" width="15"></span></b></font></font>&nbsp;
     </p>
    </td>
   </tr>
  </tbody>
 </table>
</div>

      
</div></TD>
    </TR>
    <TR>
     <TD colSpan="2"><link href="StylesB.css" type="text/css" rel="stylesheet"> <!-- Insert content here -->
 <table id="ombre" cellspacing="0" cellpadding="0" border="0">
  <tbody>
   <tr>
    <td width="165" bgcolor="#394b53" colspan="2" height="1">
     <img height="1" alt="" src="images/spacer.gif" width="165"></td>
   </tr>
   <tr>
    <td width="165" bgcolor="#2a4052" colspan="2" height="1">
     <img height="1" alt="" src="images/spacer.gif" width="165"></td>
   </tr>
  </tbody>
 </table>
 <table id="Tableau_01" height="96" cellspacing="0" cellpadding="0" width="747" border="0">
  <tbody>
   <tr>
    <td colspan="2">
     <img height="3" alt="" src="images/Botton_01.gif" width="618"></td>
    <td rowspan="4">
     <img height="30" alt="" src="images/Botton_02.gif" width="7"></td>
    <td>
     <img height="3" alt="" src="images/Botton_03.gif" width="121"></td>
    <td>
     <img height="3" alt="" src="images/spacer.gif" width="1"></td>
   </tr>
   <tr>
    <td valign="middle" align="center" width="108" bgcolor="#55707c" height="24" rowspan="2">
     <p align="center">
      <a class="A1" style="FONT-SIZE: x-small; COLOR: white; FONT-FAMILY: Tahoma" href="mailto:serviceclients@safe-investigations.fr">
       Service Clients</a>
     </p>
    </td>
    <td valign="middle" align="center" width="510" bgcolor="#55707c" height="24" rowspan="2">
     <p><IMG alt="" src="Images/Adr.gif">
     </p>
    </td>
    <td valign="middle" align="center" width="121" bgcolor="#c7daef" height="23">
     <img id="Botton1_Image1" src="Controls/images/envelloppe.gif" alt="" border="0" />
     <font size="2"><a href="default.aspx?ID=5">Contactez nous</a></font></td>
    <td>
     <img height="23" alt="" src="images/spacer.gif" width="1"></td>
   </tr>
   <tr>
    <td rowspan="2">
     <img height="4" alt="" src="images/Botton_07.gif" width="121"></td>
    <td>
     <img height="1" alt="" src="images/spacer.gif" width="1"></td>
   </tr>
   <tr>
    <td colspan="2">
     <img height="3" alt="" src="images/Botton_08.gif" width="618"></td>
    <td>
     <img height="3" alt="" src="images/spacer.gif" width="1"></td>
   </tr>
   <tr>
    <td width="746" colspan="4" height="66" align="right">
     <p align="right"><BR>
      <div id="Botton1_Panel1" class="Panel" style="font-size:X-Small;height:47px;width:733px;">

       <P align="right">:: Developpement et Design Réalisé par <A href="mailto:alex_foley_marssien@hotmail.com">
         “ALEXPRODUCT.NET”</A> ::<BR>
        :: CopyRight © 2004 Toute reproduction même partielle est interdite sauf accord
        écrit du Webmaster ::<BR>
        :: SAFE-Investigation est une marque déposée tous droits réservés ::
       </P>
      
</div>
     <p>
     </p>
    </td>
    <td>
     <img height="66" alt="" src="images/spacer.gif" width="1"></td>
   </tr>
  </tbody>
 </table>
</TD>
    </TR>
   </TABLE>
  </form>
 </BODY>
</HTML>


-----------------------------------------
Code VB

Imports System.Web

Public Class _Default

Inherits System.Web.UI.Page

Dim IP As String

Dim ID_Page As String

Protected WithEvents Panel2 As System.Web.UI.WebControls.Panel

Protected WithEvents Panel3 As System.Web.UI.WebControls.Panel

Protected WithEvents Panel4 As System.Web.UI.WebControls.Panel

Protected WithEvents Panel5 As System.Web.UI.WebControls.Panel

Protected WithEvents Pro As System.Web.UI.WebControls.HyperLink

Protected WithEvents particulier As System.Web.UI.WebControls.HyperLink

Protected WithEvents References As System.Web.UI.WebControls.HyperLink

Protected WithEvents TextBox2 As System.Web.UI.WebControls.TextBox

Protected WithEvents TextBox1 As System.Web.UI.WebControls.TextBox

Protected WithEvents GO As System.Web.UI.WebControls.ImageButton

Protected WithEvents Button1 As System.Web.UI.WebControls.Button

Protected WithEvents Label2 As System.Web.UI.WebControls.Label

Protected WithEvents Acceuil As System.Web.UI.WebControls.HyperLink

 

#Region " Code généré par le Concepteur Web Form "

'Cet appel est requis par le Concepteur Web Form.

<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()

End Sub

Protected WithEvents Label1 As System.Web.UI.WebControls.Label

Protected WithEvents Panel1 As System.Web.UI.WebControls.Panel

'REMARQUE : la déclaration d'espace réservé suivante est requise par le Concepteur Web Form.

'Ne pas supprimer ou déplacer.

Private designerPlaceholderDeclaration As System.Object

Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init

'CODEGEN : cet appel de méthode est requis par le Concepteur Web Form

'Ne le modifiez pas en utilisant l'éditeur de code.

InitializeComponent()

End Sub

#End Region

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

'Placez ici le code utilisateur pour initialiser la page

ID_Page = Request.QueryString("ID")

If Not Page.IsPostBack Then

afficherPage(ID_Page) 'charge le bon panel et menu

IP = Request.ServerVariables("REMOTE_ADDR") 'recup IP

 

Label1.Text = IP & " -- " & ID_Page

'Response.Redirect("admin/defailt.aspx")

End If

End Sub

Function afficherPage(ByVal id As String)

If id = Nothing Then Exit Function

Select Case id

Case 1

ID_Page = ID_Page & " CASE 1"

'construction du menu

Acceuil.ImageUrl = "Images/Btt-Acceuill.gif"

Pro.ImageUrl = "images/Btt-pro-2.gif"

particulier.ImageUrl = "images/Btt-particulier-2.gif"

References.ImageUrl = "images/Btt-ref-2.gif"

'affichage panel

Panel1.Visible = True

Panel2.Visible = False

Panel3.Visible = False

Panel4.Visible = False

Panel5.Visible = False

Case 2

ID_Page = ID_Page & " CASE 2"

'construction du menu

Acceuil.ImageUrl = "Images/Btt-Acceuill-2.gif"

Pro.ImageUrl = "images/Btt-pro.gif"

particulier.ImageUrl = "images/Btt-particulier-2.gif"

References.ImageUrl = "images/Btt-ref-2.gif"

'affichage panel

Panel1.Visible = False

Panel2.Visible = True

Panel3.Visible = False

Panel4.Visible = False

Panel5.Visible = False

Case 3

ID_Page = ID_Page & " CASE 3"

'construction du menu

Acceuil.ImageUrl = "Images/Btt-Acceuill-2.gif"

Pro.ImageUrl = "images/Btt-pro-2.gif"

particulier.ImageUrl = "images/Btt-particulier.gif"

References.ImageUrl = "images/Btt-ref-2.gif"

'affichage panel

Panel1.Visible = False

Panel2.Visible = False

Panel3.Visible = True

Panel4.Visible = False

Panel5.Visible = False

Case 4

ID_Page = ID_Page & " CASE 4"

'construction du menu

Acceuil.ImageUrl = "Images/Btt-Acceuill-2.gif"

Pro.ImageUrl = "images/Btt-pro-2.gif"

particulier.ImageUrl = "images/Btt-particulier-2.gif"

References.ImageUrl = "images/Btt-ref.gif"

'affichage panel

Panel1.Visible = False

Panel2.Visible = False

Panel3.Visible = False

Panel4.Visible = True

Panel5.Visible = False

Case 5

ID_Page = ID_Page & " CASE 5"

'construction du menu

Acceuil.ImageUrl = "Images/Btt-Acceuill-2.gif"

Pro.ImageUrl = "images/Btt-pro-2.gif"

particulier.ImageUrl = "images/Btt-particulier-2.gif"

References.ImageUrl = "images/Btt-ref-2.gif"

'affichage panel

Panel1.Visible = False

Panel2.Visible = False

Panel3.Visible = False

Panel4.Visible = False

Panel5.Visible = True

Case Else

End Select

End Function

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

Label2.Text = "Toucher"

End Sub

Private Sub GO_Click(ByVal sender As System.Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles GO.Click

Response.Redirect("admin/default.aspx")

End Sub

End Class

--------------------------
Merci de ton aide...

ALEX001

mercredi 9 février 2005 à 19:46:45 | Re : LA CRISE ASP.NET, Besoins d'aide...

molkin

Dans Visual studio. il faut regler la combo du menu en haut et au centre à "Debug" et non pas "release"

mercredi 22 août 2007 à 16:44:46 | Re : LA CRISE ASP.NET, Besoins d'aide...

fkuchta

Merci pour cette info...
J'étais en Release et je ne comprenais pourquoi je n'arrivais pas à déboguer...
(très con comme truc ;-)

Merci merci merci.




Cette discussion est classée dans : aide, net, label, fonctionne, besoins


Répondre à ce message

Sujets en rapport avec ce message

A l'AiDe.NeT [ par polz ] hello,Concernce ASP.NETJe dois afficher une requete access dans un datagrid. Cependant, cela ne fonctionne pas. Je suppose que c'est du au fait que ma [ASP.NET] Mouse over et label [ par jeffwow ] Bonjour.Est-il possible de lancer une action avec un mouse over sur un label? J'imagine que oui, puisque nous avons déjà le tooltip qui se déclanche création composant ? [ par conan76 ] Bonjour, Je travail sur ASP.NET / VB.net 2005, et je bute sur un problème qui m'agace, n'avançant pas. Je cherche à créer un custom server control ( aide sur ASP.net [ par masdos ] salut, je travaille avec vb.net, voila mon problème:j'ai fais une fonction de recherche qui récupère des données de la base et affiche dons un GridVie Demande de l'aide [ par Soufelmaniari ] Salut , Je suis débutant en informatique , je cherche des cours en asp.net à zero car je n'ai aucune idée sur la programation web et merci [^^happy10] AIDE:la différence entre ASP.NET et HTML [ par anya88 ] SLT tt le monde [^^happy3] je veux savoir les différences entre ASP.NET et HTML? merci d'avance [^^happy10] Besoin d'aide sur une application VB .Net [ par patrickdab ] Bonjour à tous. Je développe une application sur VB .Net et j'aimerais savoir comment remplir une DataGridView en fonction des éléments choisis dans u PageMaster ASP .NET [ par Sabine25 ] Bonjour,j ai un treeview dans ma PageMaster mais quan d je clique sur l un des item j aimerai qu il apparaisse un label dans le ContentTemplate ! Ce l Afficher le resultat d'une requete SQL dans un label en ASP.NET C# [ par DigigtalDJ ] Salut a tous!Voila je debut dans le milieu C# et ASP.NET et j'ai des base une peu coton . J'aurai aimer savoir comment on retourne le resultat d'une r Formater un label [ par jimmy28 ] Salut a tousVoilà, j'ai un controle asp.net "label" rempli par le contenu d'un champs d'une database de la maniere suivante : asp<font color="#0


Nos sponsors


Sondage...

CalendriCode

Mai 2012
LMMJVSD
 123456
78910111213
14151617181920
21222324252627
28293031   

Consulter la suite du CalendriCode

A découvrir



 
Développement réalisé par Nicolas SOREL (Nix) avec l'aide de : Cyril DURAND et Emmanuel (EBArtSoft), Merci à Vincent pour ses précieux conseils.
CodeS-SourceS.com© Toute reproduction même partielle est interdite sauf accord écrit du Webmaster
CodeS-SourceS.com© est une marque déposée tous droits réservés

Google Coop CodeS-SourceS Google Coop CodeS-SourceS
Temps d'éxécution de la page : 0,499 sec (4)

Nous contacter | Annoncer sur CodeS-SourceS | Mentions légales