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 :

ScriptManager is required on the page to use ASP.NET AJAX Script Components


Sujet :

ASP.NET

  1. #1
    Membre à l'essai
    Inscrit en
    Juillet 2005
    Messages
    36
    Détails du profil
    Informations forums :
    Inscription : Juillet 2005
    Messages : 36
    Points : 24
    Points
    24
    Par défaut ScriptManager is required on the page to use ASP.NET AJAX Script Components
    Bonjour,

    J'AI AJOUTER LE AJAXTOOLKIT? POUR AVOIR LE CONTROL TABSTRIP
    au moment d'execution il me donne l'erreur suivante :
    ScriptManager is required on the page to use ASP.NET AJAX Script Components
    j'ai ajouter cette ligne
    <cc1:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" > </cc1:ToolkitScriptManager>
    j'ai pas d'erreur au moment d'execution mais la page apparait vide

    Merci.

  2. #2
    Expert confirmé Avatar de Lapinpanda
    Homme Profil pro
    Développeur .NET
    Inscrit en
    Juin 2009
    Messages
    3 230
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Développeur .NET

    Informations forums :
    Inscription : Juin 2009
    Messages : 3 230
    Points : 4 913
    Points
    4 913
    Par défaut
    Il existe l'objet ScriptManager dans la boite à outil.

    Glisse/depose le dans ta page. Ne met rien dedans.
    Re-test
    Merci d'utiliser en cas de résolution de votre problème

    N'oubliez pas non plus le petit pouce vert pour récompenser celui que vous a aidé

  3. #3
    Membre confirmé Avatar de Redouane
    Profil pro
    Inscrit en
    Octobre 2003
    Messages
    435
    Détails du profil
    Informations personnelles :
    Âge : 45
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Octobre 2003
    Messages : 435
    Points : 569
    Points
    569
    Par défaut
    Bonjour,

    Si tu suis ce que t'a dis Lapinpanda, tu auras qlq chose comme ça :

    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
    <%@ Page Language="VB" AutoEventWireup="false" CodeFile="TestPage.aspx.vb" Inherits="TestPage" %>
    
    <%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
        Namespace="System.Web.UI" TagPrefix="asp" %>
    
    <!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>Untitled Page</title>
    </head>
    <body>
        <form id="form1" runat="server">
            <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
        
        <!-- 
        Traitement
        -->
        
        </form>
    </body>
    </html>
    Si ça ne marche pas, donne nous ton code, de ta page aspx.
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    Redouane me = new Redouane();
    if (me.Connect())
        me.ShareInformations();

  4. #4
    Membre à l'essai
    Inscrit en
    Juillet 2005
    Messages
    36
    Détails du profil
    Informations forums :
    Inscription : Juillet 2005
    Messages : 36
    Points : 24
    Points
    24
    Par défaut
    si j'ai deja glisser cet objet, mais à l'execution la page apparaît vide
    et en bas il me donne un ! ou il ya : sys est indefini

  5. #5
    Membre confirmé Avatar de Redouane
    Profil pro
    Inscrit en
    Octobre 2003
    Messages
    435
    Détails du profil
    Informations personnelles :
    Âge : 45
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Octobre 2003
    Messages : 435
    Points : 569
    Points
    569
    Par défaut
    Tu peux nous donner le bout de code de ta page aspx, jusqu'à l'appel du control scripManager ?!!
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    Redouane me = new Redouane();
    if (me.Connect())
        me.ShareInformations();

  6. #6
    Membre à l'essai
    Inscrit en
    Juillet 2005
    Messages
    36
    Détails du profil
    Informations forums :
    Inscription : Juillet 2005
    Messages : 36
    Points : 24
    Points
    24
    Par défaut
    ioui ci apres le code de toute la page
    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
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    <%@ Page Language="VB" AutoEventWireup="false" CodeFile="f_sit_caisse.aspx.vb" Inherits="feuille_f_sit_caisse" %>
     
    <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
     
    <%@ Register Assembly="Microsoft.Web.UI.WebControls" Namespace="Microsoft.Web.UI.WebControls"
        TagPrefix="iewc" %>
    <%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
        Namespace="System.Web.UI" TagPrefix="asp" %>
     
     
     
    <!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 id="Head1" runat="server">
        <title>Situation caisse</title>
        <link type="text/css" href="Style/test.CSS" rel="Stylesheet" />
     
    </head>
     
    <body>
        <div>
     
          <form id="Form2" runat="server">
     
              <p><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                  <asp:ScriptManager ID="ScriptManager1" runat="server">
                  </asp:ScriptManager>
                <cc1:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0" Height="401px">
                    <cc1:TabPanel ID="TabPanel1" runat="server" HeaderText="Synthèses">
                        <ContentTemplate>
                            <br />
                            <br />
                            <br />
                            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                            <asp:Label ID="Label1" Text="Total des recéttes en Espéces" runat="server" Width="218px" />
              <asp:TextBox ID="txt_rec_esp" runat="server" Width="240px" /><br />
                            <br />
                            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
              <asp:Label ID="Label2" Text="Total des recéttes par chéques" runat="server" Width="218px" />                                  
              <asp:TextBox ID="txt_rec_chq" runat="server" Width="240px" /><br />
                            <br />
                            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
              <asp:Label ID="Label3" Text="Total Recettes" runat="server" Width="218px" />                                  
              <asp:TextBox ID="txt_rec" runat="server" Width="240px" /><br />
                            <br />
                            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
              <asp:Label ID="Label4" Text="Total Dépenses" runat="server" Width="218px" />                                  
            <asp:TextBox ID="txt_sld_esp" runat="server" Width="240px" /><br />
                            <br />
                            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
              <asp:Label ID="Label5" Text='Solde Espèce' runat="server" Width="218px" />                                  
            <asp:TextBox ID="txt_dep" runat="server" Width="240px" /><br />
                            <br />
                            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
                <asp:Label ID="Label6" Text="Solde Chéques" runat="server" Width="218px" />                                                              
            <asp:TextBox ID="txt_sld_chq" runat="server" Width="240px" /><br />
                        </ContentTemplate>
                    </cc1:TabPanel>
                    <cc1:TabPanel ID="TabPanel2" runat="server" HeaderText="Recettes">
                        <ContentTemplate>
                            &nbsp;<asp:GridView ID="data_recette" runat="server" AutoGenerateColumns="False" Height="378px" Width="1201px">
                                <Columns>
                                    <asp:BoundField DataField="designation" HeaderText="Recette" />
                                    <asp:BoundField DataField="type_mv" HeaderText="Type Mvt" />
                                    <asp:BoundField DataField="Montant" HeaderText="Montant" />
                                    <asp:BoundField DataField="reference_mvt" HeaderText="Reference" />
                                    <asp:BoundField DataField="observation" HeaderText="Observation" />
                                    <asp:BoundField DataField="n_piece" HeaderText="N° Piece" />
                                    <asp:BoundField DataField="Banque" HeaderText="Banque" />
                                </Columns>
                            </asp:GridView>
                        </ContentTemplate>
                    </cc1:TabPanel>
     
                     <cc1:TabPanel ID="TabPanel3" runat="server" HeaderText="Dépenses">
                        <ContentTemplate>
                            &nbsp;<asp:GridView ID="data_depense" runat="server" AutoGenerateColumns="False" Height="370px" Width="1202px">
                                <Columns>
                                    <asp:BoundField DataField="designation" HeaderText="Dépense" />
                                    <asp:BoundField DataField="type_mv" HeaderText="Type Mvt" />
                                    <asp:BoundField DataField="Montant" HeaderText="Montant" />
                                    <asp:BoundField DataField="reference_mvt" HeaderText="Reference" />
                                    <asp:BoundField DataField="observation" HeaderText="Observation" />
                                </Columns>
                            </asp:GridView>
                        </ContentTemplate>
                    </cc1:TabPanel>
     
                </cc1:TabContainer></strong></p>
          </form>
        </div>
     
     
    </body>
    </html>

  7. #7
    Membre à l'essai
    Inscrit en
    Juillet 2005
    Messages
    36
    Détails du profil
    Informations forums :
    Inscription : Juillet 2005
    Messages : 36
    Points : 24
    Points
    24
    Par défaut
    J'ai modifier le programme pour que je travail par asp:content mais toujours le meme probleme, ci joint le nouveau code de feuille
    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
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    <%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="f_sit_caisse.aspx.vb" Inherits="feuille_f_sit_caisse" title="Situation de caisse" %>
     
    <%@ Register Assembly="Microsoft.Web.UI.WebControls" Namespace="Microsoft.Web.UI.WebControls"
        TagPrefix="iewc" %>
    <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
     
    <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
                  <cc1:ToolkitScriptManager ID="ToolkitScriptManager1"  EnablePartialRendering="true"  runat="server">
                  </cc1:ToolkitScriptManager>
                <cc1:TabContainer ID="TabContainer1" runat="server" OnClientActiveTabChanged="ActiveTabChanged"  ActiveTabIndex="0" Height="401px">
                    <cc1:TabPanel ID="TabPanel1" runat="server" HeaderText="Synthèses">
                        <ContentTemplate>
                            <br />
                            <br />
                            <br />
                            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                            <asp:Label ID="Label1" Text="Total des recéttes en Espéces" runat="server" Width="218px" />
              <asp:TextBox ID="txt_rec_esp" runat="server" Width="240px" /><br />
                            <br />
                            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
              <asp:Label ID="Label2" Text="Total des recéttes par chéques" runat="server" Width="218px" />                                  
              <asp:TextBox ID="txt_rec_chq" runat="server" Width="240px" /><br />
                            <br />
                            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
              <asp:Label ID="Label3" Text="Total Recettes" runat="server" Width="218px" />                                  
              <asp:TextBox ID="txt_rec" runat="server" Width="240px" /><br />
                            <br />
                            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
              <asp:Label ID="Label4" Text="Total Dépenses" runat="server" Width="218px" />                                  
            <asp:TextBox ID="txt_sld_esp" runat="server" Width="240px" /><br />
                            <br />
                            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
              <asp:Label ID="Label5" Text='Solde Espèce' runat="server" Width="218px" />                                  
            <asp:TextBox ID="txt_dep" runat="server" Width="240px" /><br />
                            <br />
                            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
                <asp:Label ID="Label6" Text="Solde Chéques" runat="server" Width="218px" />                                                              
            <asp:TextBox ID="txt_sld_chq" runat="server" Width="240px" /><br />
                        </ContentTemplate>
                    </cc1:TabPanel>
                    <cc1:TabPanel ID="TabPanel2" runat="server" HeaderText="Recettes">
                        <ContentTemplate>
                            &nbsp;<asp:GridView ID="data_recette" runat="server" AutoGenerateColumns="False" Height="378px" Width="1201px">
                                <Columns>
                                    <asp:BoundField DataField="designation" HeaderText="Recette" />
                                    <asp:BoundField DataField="type_mv" HeaderText="Type Mvt" />
                                    <asp:BoundField DataField="Montant" HeaderText="Montant" />
                                    <asp:BoundField DataField="reference_mvt" HeaderText="Reference" />
                                    <asp:BoundField DataField="observation" HeaderText="Observation" />
                                    <asp:BoundField DataField="n_piece" HeaderText="N° Piece" />
                                    <asp:BoundField DataField="Banque" HeaderText="Banque" />
                                </Columns>
                            </asp:GridView>
                        </ContentTemplate>
                    </cc1:TabPanel>
     
                     <cc1:TabPanel ID="TabPanel3" runat="server" HeaderText="Dépenses">
                        <ContentTemplate>
                            &nbsp;<asp:GridView ID="data_depense" runat="server" AutoGenerateColumns="False" Height="370px" Width="1202px">
                                <Columns>
                                    <asp:BoundField DataField="designation" HeaderText="Dépense" />
                                    <asp:BoundField DataField="type_mv" HeaderText="Type Mvt" />
                                    <asp:BoundField DataField="Montant" HeaderText="Montant" />
                                    <asp:BoundField DataField="reference_mvt" HeaderText="Reference" />
                                    <asp:BoundField DataField="observation" HeaderText="Observation" />
                                </Columns>
                            </asp:GridView>
                        </ContentTemplate>
                    </cc1:TabPanel>
     
                </cc1:TabContainer>
     
    </asp:Content>

  8. #8
    Membre à l'essai
    Inscrit en
    Juillet 2005
    Messages
    36
    Détails du profil
    Informations forums :
    Inscription : Juillet 2005
    Messages : 36
    Points : 24
    Points
    24
    Par défaut
    j'ai essayer d'ajouter 2 autre controle sur la page en dehors de tabcontainer,un en haut et lautre en bas
    ces derniers apparaient, mais le tabcontainer non plu, par contyre j'ai du vide à sa place

  9. #9
    Membre actif
    Profil pro
    Inscrit en
    Avril 2008
    Messages
    205
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2008
    Messages : 205
    Points : 206
    Points
    206
    Par défaut
    cela signifie que tu ne mets pas de données dans tes contrôles je pense

    Dans un gridview, si pas de données, les nom de colonne n'apparaissent pas non-plus.

  10. #10
    Membre à l'essai
    Inscrit en
    Juillet 2005
    Messages
    36
    Détails du profil
    Informations forums :
    Inscription : Juillet 2005
    Messages : 36
    Points : 24
    Points
    24
    Par défaut
    non c'est pas ç le probleme , parceque j'ai deja mis le code de gridview
    et meme je l'ai supprime pour enlever le doute
    mais le tabstrip de ajax n'apparait pas, je sais pas prk

  11. #11
    Membre confirmé Avatar de Redouane
    Profil pro
    Inscrit en
    Octobre 2003
    Messages
    435
    Détails du profil
    Informations personnelles :
    Âge : 45
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Octobre 2003
    Messages : 435
    Points : 569
    Points
    569
    Par défaut
    Bonjour,

    Forecement c'est un probeleme de version, alors sachant que t'a le framework 3.5 (donc ajax version 3.5.0.0 déjà installé) et que t'a le
    Ajax Control Toolkit -- May 2009 Release, ci-aprés un exemple d'une page comme la tienne qui marche bien, et je te donne aussi le web.config (ci important)
    ci au niveau du configuration des versions dans le fichier web.config, que ça se passe.

    bon, voici le code du fichier de configuration (web.config) :

    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
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    <?xml version="1.0"?>
    <!-- 
        Note: As an alternative to hand editing this file you can use the 
        web admin tool to configure settings for your application. Use
        the Website->Asp.Net Configuration option in Visual Studio.
        A full list of settings and comments can be found in 
        machine.config.comments usually located in 
        \Windows\Microsoft.Net\Framework\v2.x\Config 
    -->
    <configuration>
    	<configSections>
    		<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
    			<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
    				<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
    				<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
    					<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/>
    					<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
    					<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
    					<section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
    				</sectionGroup>
    			</sectionGroup>
    		</sectionGroup>
    	</configSections>
    	<appSettings/>
    	<connectionStrings/>
    	<system.web>
    		<trust level="Medium"/>
    		<!-- 
                Set compilation debug="true" to insert debugging 
                symbols into the compiled page. Because this 
                affects performance, set this value to true only 
                during development.
            -->
    		<compilation debug="false">
    			<assemblies>
    				<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
    				<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    				<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
    				<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
    				<add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    				<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
    				<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    				<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/></assemblies>
    		</compilation>
    		<!--
                The <authentication> section enables configuration 
                of the security authentication mode used by 
                ASP.NET to identify an incoming user. 
            -->
    		<authentication mode="Windows"/>
    		<!--
                The <customErrors> section enables configuration 
                of what to do if/when an unhandled error occurs 
                during the execution of a request. Specifically, 
                it enables developers to configure html error pages 
                to be displayed in place of a error stack trace.
     
            <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
                <error statusCode="403" redirect="NoAccess.htm" />
                <error statusCode="404" redirect="FileNotFound.htm" />
            </customErrors>
            -->
    		<pages>
    			<controls>
    				<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    				<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    			</controls>
    		</pages>
    		<httpHandlers>
    			<remove verb="*" path="*.asmx"/>
    			<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    			<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    			<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
    		</httpHandlers>
    		<httpModules>
    			<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    		</httpModules>
    		<siteMap defaultProvider="SamplesSiteMap">
    			<providers>
    				<add name="SamplesSiteMap" type="System.Web.XmlSiteMapProvider" siteMapFile="~/Samples.sitemap"/>
    				<add name="WalkthroughsSiteMap" type="System.Web.XmlSiteMapProvider" siteMapFile="~/Walkthroughs.sitemap"/>
    			</providers>
    		</siteMap>
    		<globalization culture="en-us" uiCulture="en"/>
    	</system.web>
    	<system.codedom>
    		<compilers>
    			<compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
    				<providerOption name="CompilerVersion" value="v3.5"/>
    				<providerOption name="WarnAsError" value="false"/>
    			</compiler>
    			<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
    				<providerOption name="CompilerVersion" value="v3.5"/>
    				<providerOption name="OptionInfer" value="true"/>
    				<providerOption name="WarnAsError" value="false"/>
    			</compiler>
    		</compilers>
    	</system.codedom>
    	<!-- 
            The system.webServer section is required for running ASP.NET AJAX under Internet
            Information Services 7.0.  It is not necessary for previous version of IIS.
        -->
    	<system.webServer>
    		<validation validateIntegratedModeConfiguration="false"/>
    		<modules>
    			<remove name="ScriptModule"/>
    			<add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    		</modules>
    		<handlers>
    			<remove name="WebServiceHandlerFactory-Integrated"/>
    			<remove name="ScriptHandlerFactory"/>
    			<remove name="ScriptHandlerFactoryAppServices"/>
    			<remove name="ScriptResource"/>
    			<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    			<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    			<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    		</handlers>
    	</system.webServer>
    	<runtime>
    		<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
    			<dependentAssembly>
    				<assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
    				<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
    			</dependentAssembly>
    			<dependentAssembly>
    				<assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
    				<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
    			</dependentAssembly>
    		</assemblyBinding>
    	</runtime>
    </configuration>
    et voici le code de ta page (que j'appelle ici default.aspx) :

    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
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    <%@ Page Language="VB" AutoEventWireup="true" CodeFile="Default.aspx.vb" Inherits="_Default" %>
     
    <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Untitled Page</title>
    </head>
    <body>
        <form id="form1" runat="server">
            <cc1:ToolkitScriptManager runat="Server" EnableScriptGlobalization="true" 
            EnableScriptLocalization="true" ID="ScriptManager1" />
            <div>
             <asp:TextBox runat="server" ID="Date1" autocomplete="off" /><br />
            <cc1:CalendarExtender ID="defaultCalendarExtender" runat="server" TargetControlID="Date1" />
     
          <cc1:TabContainer ID="TabContainer1" runat="server" >
                    <cc1:TabPanel ID="TabPanel1" runat="server" HeaderText="Synthèses">
                        <ContentTemplate>
                            <br />
                            <br />
                            <br />
                            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                            <asp:Label ID="Label1" Text="Total des recéttes en Espéces" runat="server" Width="218px" />
                            <asp:TextBox ID="txt_rec_esp" runat="server" Width="240px" /><br />
                            <br />
                            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                            <asp:Label ID="Label2" Text="Total des recéttes par chéques" runat="server" Width="218px" />
                            <asp:TextBox ID="txt_rec_chq" runat="server" Width="240px" /><br />
                            <br />
                            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                            <asp:Label ID="Label3" Text="Total Recettes" runat="server" Width="218px" />
                            <asp:TextBox ID="txt_rec" runat="server" Width="240px" /><br />
                            <br />
                            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                            <asp:Label ID="Label4" Text="Total Dépenses" runat="server" Width="218px" />
                            <asp:TextBox ID="txt_sld_esp" runat="server" Width="240px" /><br />
                            <br />
                            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                            <asp:Label ID="Label5" Text='Solde Espèce' runat="server" Width="218px" />
                            <asp:TextBox ID="txt_dep" runat="server" Width="240px" /><br />
                            <br />
                            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
                            <asp:Label ID="Label6" Text="Solde Chéques" runat="server" Width="218px" />
                            <asp:TextBox ID="txt_sld_chq" runat="server" Width="240px" /><br />
                        </ContentTemplate>
                    </cc1:TabPanel>
                    <cc1:TabPanel ID="TabPanel2" runat="server" HeaderText="Recettes">
                        <ContentTemplate>
                            &nbsp;<asp:GridView ID="data_recette" runat="server" AutoGenerateColumns="False"
                                Height="378px" Width="1201px">
                                <Columns>
                                    <asp:BoundField DataField="designation" HeaderText="Recette" />
                                    <asp:BoundField DataField="type_mv" HeaderText="Type Mvt" />
                                    <asp:BoundField DataField="Montant" HeaderText="Montant" />
                                    <asp:BoundField DataField="reference_mvt" HeaderText="Reference" />
                                    <asp:BoundField DataField="observation" HeaderText="Observation" />
                                    <asp:BoundField DataField="n_piece" HeaderText="N° Piece" />
                                    <asp:BoundField DataField="Banque" HeaderText="Banque" />
                                </Columns>
                            </asp:GridView>
                        </ContentTemplate>
                    </cc1:TabPanel>
                    <cc1:TabPanel ID="TabPanel3" runat="server" HeaderText="Dépenses">
                        <ContentTemplate>
                            &nbsp;<asp:GridView ID="data_depense" runat="server" AutoGenerateColumns="False"
                                Height="370px" Width="1202px">
                                <Columns>
                                    <asp:BoundField DataField="designation" HeaderText="Dépense" />
                                    <asp:BoundField DataField="type_mv" HeaderText="Type Mvt" />
                                    <asp:BoundField DataField="Montant" HeaderText="Montant" />
                                    <asp:BoundField DataField="reference_mvt" HeaderText="Reference" />
                                    <asp:BoundField DataField="observation" HeaderText="Observation" />
                                </Columns>
                            </asp:GridView>
                        </ContentTemplate>
                    </cc1:TabPanel>
                </cc1:TabContainer>
            </div>
        </form>
     
    </body>
    </html>
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    Redouane me = new Redouane();
    if (me.Connect())
        me.ShareInformations();

Discussions similaires

  1. Réponses: 36
    Dernier message: 26/08/2008, 15h24
  2. Refresh de page, Event et ASP.NET
    Par e.rave dans le forum ASP.NET
    Réponses: 3
    Dernier message: 23/11/2007, 09h51
  3. Réponses: 4
    Dernier message: 27/06/2007, 09h13
  4. Réponses: 5
    Dernier message: 16/06/2006, 14h01
  5. Conversion de pages PERL en ASP.NET
    Par appwnet dans le forum Modules
    Réponses: 4
    Dernier message: 14/02/2006, 01h28

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