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. code to perform cascading of dropdownlists without postback using c# in asp.net [modified]

code to perform cascading of dropdownlists without postback using c# in asp.net [modified]

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netvisual-studiohelp
4 Posts 4 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.
  • J Offline
    J Offline
    jaya86
    wrote on last edited by
    #1

    can someone help me out with the code in C# to cascade the dropdownlists without postback event ... im using MS visual studio .net 2003 ..where i cant use ajax .... the scenario is " .. i have four dropdownlists ... and wen i select an item fromthe first dropdown say("D1") the corresponding values for tht selected item shld get populated in the second dropdown say (D2).. and is the same with the other dropdowns as well ....

    modified on Tuesday, September 9, 2008 1:59 AM

    B S M 3 Replies Last reply
    0
    • J jaya86

      can someone help me out with the code in C# to cascade the dropdownlists without postback event ... im using MS visual studio .net 2003 ..where i cant use ajax .... the scenario is " .. i have four dropdownlists ... and wen i select an item fromthe first dropdown say("D1") the corresponding values for tht selected item shld get populated in the second dropdown say (D2).. and is the same with the other dropdowns as well ....

      modified on Tuesday, September 9, 2008 1:59 AM

      B Offline
      B Offline
      boy pockets
      wrote on last edited by
      #2

      if you can't use javascript and you don't want to use postbacks then I don't think it is possible...

      1 Reply Last reply
      0
      • J jaya86

        can someone help me out with the code in C# to cascade the dropdownlists without postback event ... im using MS visual studio .net 2003 ..where i cant use ajax .... the scenario is " .. i have four dropdownlists ... and wen i select an item fromthe first dropdown say("D1") the corresponding values for tht selected item shld get populated in the second dropdown say (D2).. and is the same with the other dropdowns as well ....

        modified on Tuesday, September 9, 2008 1:59 AM

        S Offline
        S Offline
        Sandeep Akhare
        wrote on last edited by
        #3

        jaya86 wrote:

        without postback event

        Why you don't want postbacks? If you want to use AJAX control then here is that control ? http://www.asp.net/AJAX/AjaxControlToolkit/Samples/CascadingDropDown/CascadingDropDown.aspx[^] Another alternative is using javascript There is one more method called PageMethods using AJAX search for it that can also help you

        Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... " Check My Blog

        1 Reply Last reply
        0
        • J jaya86

          can someone help me out with the code in C# to cascade the dropdownlists without postback event ... im using MS visual studio .net 2003 ..where i cant use ajax .... the scenario is " .. i have four dropdownlists ... and wen i select an item fromthe first dropdown say("D1") the corresponding values for tht selected item shld get populated in the second dropdown say (D2).. and is the same with the other dropdowns as well ....

          modified on Tuesday, September 9, 2008 1:59 AM

          M Offline
          M Offline
          meeram395
          wrote on last edited by
          #4

          Hi, Use JavaScript for that. Please check the JavaScript codes here: http://javascript.internet.com/forms/country-state-drop-down.html http://javascript.internet.com/forms/dynamic-drop-down-list.html Call the function in Attribute Collections, like DropDownList1.Attributes.Add("OnClick",....); Hope this helps.

          Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.

          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