Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Ajax

Ajax

Scheduled Pinned Locked Moved ASP.NET
help
17 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Vimalsoft Pty Ltd

    in your Toolbox there is a Section for Ajax. There is an updatecontrol panel. take your controls and drop them inside this control. Now onselectedindex change of your dropdown, your page will not do a whole page postback again. Contain only controls that you want to do partial postback on them. Hope it helps

    Vuyiswa Maseko, Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers." C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.somee.com http://www.vuyiswamaseko.tiyaneProperties.co.za vuyiswa@its.co.za http://www.itsabacus.co.za/itsabacus/

    E Offline
    E Offline
    Ersan Ercek
    wrote on last edited by
    #4

    Thanks for the answer I tried this via source page, however when I put dropdownlist under update panel, it says dropdown is not a known element for update panel

    V 1 Reply Last reply
    0
    • E Ersan Ercek

      Thanks for the answer I tried this via source page, however when I put dropdownlist under update panel, it says dropdown is not a known element for update panel

      V Offline
      V Offline
      Vimalsoft Pty Ltd
      wrote on last edited by
      #5

      can i see the markup(ASPX page) i will tell you what is wrong

      Vuyiswa Maseko, Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers." C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.somee.com http://www.vuyiswamaseko.tiyaneProperties.co.za vuyiswa@its.co.za http://www.itsabacus.co.za/itsabacus/

      E 1 Reply Last reply
      0
      • V Vimalsoft Pty Ltd

        can i see the markup(ASPX page) i will tell you what is wrong

        Vuyiswa Maseko, Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers." C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.somee.com http://www.vuyiswamaseko.tiyaneProperties.co.za vuyiswa@its.co.za http://www.itsabacus.co.za/itsabacus/

        E Offline
        E Offline
        Ersan Ercek
        wrote on last edited by
        #6

        here is my aspx page, could you please let me know how to put dds under a update panel <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Üye Kayıt</title> <link href="style.css" rel="stylesheet" type="text/css" /> <script language="javascript" src="func.js"> </script> </head> <body> <form id="form1" runat="server"> <div id="centrallarge"> <h1><img src="images\digersayfa.jpg" alt="photo" /></h1> </div> <div id="central"> <div id="leftsub"> <h1 style="height:200px"> <asp:Image ID="Image1" runat="server" Height="141px" Width="170px" BorderColor="White" BorderStyle="Ridge" BorderWidth="10px" /> </h1> <p> <asp:FileUpload ID="FileUpload1" runat="server"/> </p> <p>  </p> </div> <div id="rightsub"> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> </asp:UpdatePanel> <table style="width: 100%;"> <tr> <td> <asp:Label ID="Label17" runat="server" Font-Names="tahoma" Text="İl" Font-Size="Small" Font-Bold="True" ForeColor="#CC3300"></asp:Label> </td> <td> <asp:DropDownList ID="dpIl" runat="server" Height="16px" Width="150px" AutoPostBack="True" onselectedindexchanged="dpIl_SelectedIndexChanged"> </asp:DropDownList> </td> </tr> <tr> <td> <asp:Label ID="Label16" runat="server" Font-Names="tahoma" Text="Semt" Font-Size="Small" Font-Bold="True" ForeColor="#CC3300"></asp:Label> </td> <td> <asp:DropDownList ID="dpSemt" runat="server" Height="16px" Width="150px"> </asp:DropDownList> </td> </tr> <tr> <td> <asp:Label ID="Label1" runat

        B A B V 4 Replies Last reply
        0
        • E Ersan Ercek

          here is my aspx page, could you please let me know how to put dds under a update panel <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Üye Kayıt</title> <link href="style.css" rel="stylesheet" type="text/css" /> <script language="javascript" src="func.js"> </script> </head> <body> <form id="form1" runat="server"> <div id="centrallarge"> <h1><img src="images\digersayfa.jpg" alt="photo" /></h1> </div> <div id="central"> <div id="leftsub"> <h1 style="height:200px"> <asp:Image ID="Image1" runat="server" Height="141px" Width="170px" BorderColor="White" BorderStyle="Ridge" BorderWidth="10px" /> </h1> <p> <asp:FileUpload ID="FileUpload1" runat="server"/> </p> <p>  </p> </div> <div id="rightsub"> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> </asp:UpdatePanel> <table style="width: 100%;"> <tr> <td> <asp:Label ID="Label17" runat="server" Font-Names="tahoma" Text="İl" Font-Size="Small" Font-Bold="True" ForeColor="#CC3300"></asp:Label> </td> <td> <asp:DropDownList ID="dpIl" runat="server" Height="16px" Width="150px" AutoPostBack="True" onselectedindexchanged="dpIl_SelectedIndexChanged"> </asp:DropDownList> </td> </tr> <tr> <td> <asp:Label ID="Label16" runat="server" Font-Names="tahoma" Text="Semt" Font-Size="Small" Font-Bold="True" ForeColor="#CC3300"></asp:Label> </td> <td> <asp:DropDownList ID="dpSemt" runat="server" Height="16px" Width="150px"> </asp:DropDownList> </td> </tr> <tr> <td> <asp:Label ID="Label1" runat

          B Offline
          B Offline
          Baran M
          wrote on last edited by
          #7

          Which version of IDE are you using ? 2005 or 2008. Did you add the Script Manager as a first control.

          Education is not a way to escape poverty — it is a way of fighting it.

          1 Reply Last reply
          0
          • E Ersan Ercek

            here is my aspx page, could you please let me know how to put dds under a update panel <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Üye Kayıt</title> <link href="style.css" rel="stylesheet" type="text/css" /> <script language="javascript" src="func.js"> </script> </head> <body> <form id="form1" runat="server"> <div id="centrallarge"> <h1><img src="images\digersayfa.jpg" alt="photo" /></h1> </div> <div id="central"> <div id="leftsub"> <h1 style="height:200px"> <asp:Image ID="Image1" runat="server" Height="141px" Width="170px" BorderColor="White" BorderStyle="Ridge" BorderWidth="10px" /> </h1> <p> <asp:FileUpload ID="FileUpload1" runat="server"/> </p> <p>  </p> </div> <div id="rightsub"> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> </asp:UpdatePanel> <table style="width: 100%;"> <tr> <td> <asp:Label ID="Label17" runat="server" Font-Names="tahoma" Text="İl" Font-Size="Small" Font-Bold="True" ForeColor="#CC3300"></asp:Label> </td> <td> <asp:DropDownList ID="dpIl" runat="server" Height="16px" Width="150px" AutoPostBack="True" onselectedindexchanged="dpIl_SelectedIndexChanged"> </asp:DropDownList> </td> </tr> <tr> <td> <asp:Label ID="Label16" runat="server" Font-Names="tahoma" Text="Semt" Font-Size="Small" Font-Bold="True" ForeColor="#CC3300"></asp:Label> </td> <td> <asp:DropDownList ID="dpSemt" runat="server" Height="16px" Width="150px"> </asp:DropDownList> </td> </tr> <tr> <td> <asp:Label ID="Label1" runat

            A Offline
            A Offline
            ais07
            wrote on last edited by
            #8

            First take ScriptManager on top of your page.After that put your control in update panel.

            Life Is Beautiful

            1 Reply Last reply
            0
            • E Ersan Ercek

              here is my aspx page, could you please let me know how to put dds under a update panel <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Üye Kayıt</title> <link href="style.css" rel="stylesheet" type="text/css" /> <script language="javascript" src="func.js"> </script> </head> <body> <form id="form1" runat="server"> <div id="centrallarge"> <h1><img src="images\digersayfa.jpg" alt="photo" /></h1> </div> <div id="central"> <div id="leftsub"> <h1 style="height:200px"> <asp:Image ID="Image1" runat="server" Height="141px" Width="170px" BorderColor="White" BorderStyle="Ridge" BorderWidth="10px" /> </h1> <p> <asp:FileUpload ID="FileUpload1" runat="server"/> </p> <p>  </p> </div> <div id="rightsub"> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> </asp:UpdatePanel> <table style="width: 100%;"> <tr> <td> <asp:Label ID="Label17" runat="server" Font-Names="tahoma" Text="İl" Font-Size="Small" Font-Bold="True" ForeColor="#CC3300"></asp:Label> </td> <td> <asp:DropDownList ID="dpIl" runat="server" Height="16px" Width="150px" AutoPostBack="True" onselectedindexchanged="dpIl_SelectedIndexChanged"> </asp:DropDownList> </td> </tr> <tr> <td> <asp:Label ID="Label16" runat="server" Font-Names="tahoma" Text="Semt" Font-Size="Small" Font-Bold="True" ForeColor="#CC3300"></asp:Label> </td> <td> <asp:DropDownList ID="dpSemt" runat="server" Height="16px" Width="150px"> </asp:DropDownList> </td> </tr> <tr> <td> <asp:Label ID="Label1" runat

              B Offline
              B Offline
              Blikkies
              wrote on last edited by
              #9

              <asp:UpdatePanel ID="UpdatePanel1" runat="server" ChildrenAsTriggers="true" > <ContentTemplate> <asp:DropDownList ID="dpSemt" runat="server" Height="16px" Width="150px" AutoPostBack="True" </asp:DropDownList> </ContentTemplate> </asp:UpdatePanel>

              E 1 Reply Last reply
              0
              • E Ersan Ercek

                here is my aspx page, could you please let me know how to put dds under a update panel <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Üye Kayıt</title> <link href="style.css" rel="stylesheet" type="text/css" /> <script language="javascript" src="func.js"> </script> </head> <body> <form id="form1" runat="server"> <div id="centrallarge"> <h1><img src="images\digersayfa.jpg" alt="photo" /></h1> </div> <div id="central"> <div id="leftsub"> <h1 style="height:200px"> <asp:Image ID="Image1" runat="server" Height="141px" Width="170px" BorderColor="White" BorderStyle="Ridge" BorderWidth="10px" /> </h1> <p> <asp:FileUpload ID="FileUpload1" runat="server"/> </p> <p>  </p> </div> <div id="rightsub"> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> </asp:UpdatePanel> <table style="width: 100%;"> <tr> <td> <asp:Label ID="Label17" runat="server" Font-Names="tahoma" Text="İl" Font-Size="Small" Font-Bold="True" ForeColor="#CC3300"></asp:Label> </td> <td> <asp:DropDownList ID="dpIl" runat="server" Height="16px" Width="150px" AutoPostBack="True" onselectedindexchanged="dpIl_SelectedIndexChanged"> </asp:DropDownList> </td> </tr> <tr> <td> <asp:Label ID="Label16" runat="server" Font-Names="tahoma" Text="Semt" Font-Size="Small" Font-Bold="True" ForeColor="#CC3300"></asp:Label> </td> <td> <asp:DropDownList ID="dpSemt" runat="server" Height="16px" Width="150px"> </asp:DropDownList> </td> </tr> <tr> <td> <asp:Label ID="Label1" runat

                V Offline
                V Offline
                Vimalsoft Pty Ltd
                wrote on last edited by
                #10

                Try this

                <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>

                <%@ 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">
                <div>
                <asp:ScriptManager ID="ScriptManager1" runat="server">
                </asp:ScriptManager>
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                <img alt="photo" src="images\digersayfa.jpg" /><br />
                <h1 style="height: 200px">
                <asp:Image ID="Image1" runat="server" BorderColor="White" BorderStyle="Ridge" BorderWidth="10px"
                Height="141px" Width="170px" />
                </h1>

                &lt;/div&gt;
                    &lt;asp:FileUpload ID="FileUpload1" runat="server" /&gt;&lt;br /&gt;
                    &lt;table style="width: 100%"&gt;
                        &lt;tr&gt;
                            &lt;td&gt;
                                &lt;asp:Label ID="Label17" runat="server" Font-Bold="True" Font-Names="tahoma" Font-Size="Small"
                                    ForeColor="#CC3300" Text="İl"&gt;&lt;/asp:Label&gt;
                            &lt;/td&gt;
                            &lt;td style="font-size: 12pt; font-family: Times New Roman"&gt;
                                &lt;asp:DropDownList ID="dpIl" runat="server" AutoPostBack="True" Height="16px" OnSelectedIndexChanged="dpIl\_SelectedIndexChanged"
                                    Width="150px"&gt;
                                &lt;/asp:DropDownList&gt;
                            &lt;/td&gt;
                        &lt;/tr&gt;
                        &lt;tr style="font-size: 12pt; font-family: Times New Roman"&gt;
                            &lt;td&gt;
                                &lt;asp:Label ID="Label16" runat="server" Font-Bold="True" Font-Names="tahoma" Font-Size="Small"
                                    ForeColor="#CC3300" Text="Semt"&gt;&lt;/asp:Label&a
                
                E 1 Reply Last reply
                0
                • B Blikkies

                  <asp:UpdatePanel ID="UpdatePanel1" runat="server" ChildrenAsTriggers="true" > <ContentTemplate> <asp:DropDownList ID="dpSemt" runat="server" Height="16px" Width="150px" AutoPostBack="True" </asp:DropDownList> </ContentTemplate> </asp:UpdatePanel>

                  E Offline
                  E Offline
                  Ersan Ercek
                  wrote on last edited by
                  #11

                  very funny

                  B 1 Reply Last reply
                  0
                  • V Vimalsoft Pty Ltd

                    Try this

                    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>

                    <%@ 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">
                    <div>
                    <asp:ScriptManager ID="ScriptManager1" runat="server">
                    </asp:ScriptManager>
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                    <img alt="photo" src="images\digersayfa.jpg" /><br />
                    <h1 style="height: 200px">
                    <asp:Image ID="Image1" runat="server" BorderColor="White" BorderStyle="Ridge" BorderWidth="10px"
                    Height="141px" Width="170px" />
                    </h1>

                    &lt;/div&gt;
                        &lt;asp:FileUpload ID="FileUpload1" runat="server" /&gt;&lt;br /&gt;
                        &lt;table style="width: 100%"&gt;
                            &lt;tr&gt;
                                &lt;td&gt;
                                    &lt;asp:Label ID="Label17" runat="server" Font-Bold="True" Font-Names="tahoma" Font-Size="Small"
                                        ForeColor="#CC3300" Text="İl"&gt;&lt;/asp:Label&gt;
                                &lt;/td&gt;
                                &lt;td style="font-size: 12pt; font-family: Times New Roman"&gt;
                                    &lt;asp:DropDownList ID="dpIl" runat="server" AutoPostBack="True" Height="16px" OnSelectedIndexChanged="dpIl\_SelectedIndexChanged"
                                        Width="150px"&gt;
                                    &lt;/asp:DropDownList&gt;
                                &lt;/td&gt;
                            &lt;/tr&gt;
                            &lt;tr style="font-size: 12pt; font-family: Times New Roman"&gt;
                                &lt;td&gt;
                                    &lt;asp:Label ID="Label16" runat="server" Font-Bold="True" Font-Names="tahoma" Font-Size="Small"
                                        ForeColor="#CC3300" Text="Semt"&gt;&lt;/asp:Label&a
                    
                    E Offline
                    E Offline
                    Ersan Ercek
                    wrote on last edited by
                    #12

                    thanks man it worked

                    V 1 Reply Last reply
                    0
                    • E Ersan Ercek

                      very funny

                      B Offline
                      B Offline
                      Blikkies
                      wrote on last edited by
                      #13

                      Whats funny?

                      E 1 Reply Last reply
                      0
                      • B Blikkies

                        Whats funny?

                        E Offline
                        E Offline
                        Ersan Ercek
                        wrote on last edited by
                        #14

                        <asp:UpdatePanel ID="UpdatePanel1" runat="server" ChildrenAsTriggers="true" > <asp:DropDownList ID="dpSemt" runat="server" Height="16px" Width="150px" AutoPostBack="True" Your first message I opened was displayed like above on my computer, so I thought you made fun of me.. (putting dd under updatepanel)

                        B 1 Reply Last reply
                        0
                        • E Ersan Ercek

                          <asp:UpdatePanel ID="UpdatePanel1" runat="server" ChildrenAsTriggers="true" > <asp:DropDownList ID="dpSemt" runat="server" Height="16px" Width="150px" AutoPostBack="True" Your first message I opened was displayed like above on my computer, so I thought you made fun of me.. (putting dd under updatepanel)

                          B Offline
                          B Offline
                          Blikkies
                          wrote on last edited by
                          #15

                          O, lol. It was the first post but i did modified it afterwards.

                          E 1 Reply Last reply
                          0
                          • E Ersan Ercek

                            thanks man it worked

                            V Offline
                            V Offline
                            Vimalsoft Pty Ltd
                            wrote on last edited by
                            #16

                            You are Welcome :)

                            Vuyiswa Maseko, Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers." C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.somee.com http://www.vuyiswamaseko.tiyaneProperties.co.za vuyiswa@its.co.za http://www.itsabacus.co.za/itsabacus/

                            1 Reply Last reply
                            0
                            • B Blikkies

                              O, lol. It was the first post but i did modified it afterwards.

                              E Offline
                              E Offline
                              Ersan Ercek
                              wrote on last edited by
                              #17

                              I see :), thanks for helping

                              1 Reply Last reply
                              0
                              Reply
                              • Reply as topic
                              Log in to reply
                              • Oldest to Newest
                              • Newest to Oldest
                              • Most Votes


                              • Login

                              • Don't have an account? Register

                              • Login or register to search.
                              • First post
                                Last post
                              0
                              • Categories
                              • Recent
                              • Tags
                              • Popular
                              • World
                              • Users
                              • Groups