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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. AJAX Accordion

AJAX Accordion

Scheduled Pinned Locked Moved ASP.NET
questioncsharpasp-netcomhelp
9 Posts 3 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.
  • Y Offline
    Y Offline
    Yajjoj
    wrote on last edited by
    #1

    Hi guys Can you help me please??!! First : I have two asp.net pages The first one is Default.aspx and it contain links like this: http://srv0204-07.sjc3.imeem.com/g/p/d1c268e05b0d66e5fcd78596c4c37eef_raw.jpg And thes second dete.aspx contain AJAX Accordion1 and it shown like this: http://srv0204-02.sjc3.imeem.com/g/p/cffdf204fbf09d156c87d3ef44921ec0_raw.jpg Now ,the question is how to pass the the number of the link in the first page to the second page? Because I want to pass the number of the link in Default.aspx to dete.aspx and put it SelectedIndex ="Here". So when I Press on the first link "Flights Events" (Default.aspx) it should be go to the second page and open AccordionPane1 (dete.aspx) And when I press on the link Games & fun (Default.aspx) it should open the AccordionPane2 in (dete.aspx) :wtf: :wtf: :wtf: :wtf: :wtf: :wtf:

    al hajjaj

    N 1 Reply Last reply
    0
    • Y Yajjoj

      Hi guys Can you help me please??!! First : I have two asp.net pages The first one is Default.aspx and it contain links like this: http://srv0204-07.sjc3.imeem.com/g/p/d1c268e05b0d66e5fcd78596c4c37eef_raw.jpg And thes second dete.aspx contain AJAX Accordion1 and it shown like this: http://srv0204-02.sjc3.imeem.com/g/p/cffdf204fbf09d156c87d3ef44921ec0_raw.jpg Now ,the question is how to pass the the number of the link in the first page to the second page? Because I want to pass the number of the link in Default.aspx to dete.aspx and put it SelectedIndex ="Here". So when I Press on the first link "Flights Events" (Default.aspx) it should be go to the second page and open AccordionPane1 (dete.aspx) And when I press on the link Games & fun (Default.aspx) it should open the AccordionPane2 in (dete.aspx) :wtf: :wtf: :wtf: :wtf: :wtf: :wtf:

      al hajjaj

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      Can't you pass the value as query string?

      Navaneeth How to use google | Ask smart questions

      Y 2 Replies Last reply
      0
      • N N a v a n e e t h

        Can't you pass the value as query string?

        Navaneeth How to use google | Ask smart questions

        Y Offline
        Y Offline
        Yajjoj
        wrote on last edited by
        #3

        How? i dont know? :(( :(( :((

        al hajjaj

        Y 1 Reply Last reply
        0
        • Y Yajjoj

          How? i dont know? :(( :(( :((

          al hajjaj

          Y Offline
          Y Offline
          Yajjoj
          wrote on last edited by
          #4
                        AccordionPane1
                        
                        
          
                        some words
                        
                        
                        
                        AccordionPane2
                        
          
                        ha ha ha ha ha h
                        
                        hahah
                        ah
                        ah
                        ah
                        ah
                        ah
                        ah
                        ah
          

          this is the code so how to pass value from another page to this page, i wanna to change SelectedIndex ="0" to the passed value????? :omg:

          al hajjaj

          V 1 Reply Last reply
          0
          • Y Yajjoj
                          AccordionPane1
                          
                          
            
                          some words
                          
                          
                          
                          AccordionPane2
                          
            
                          ha ha ha ha ha h
                          
                          hahah
                          ah
                          ah
                          ah
                          ah
                          ah
                          ah
                          ah
            

            this is the code so how to pass value from another page to this page, i wanna to change SelectedIndex ="0" to the passed value????? :omg:

            al hajjaj

            V Offline
            V Offline
            VikashGohil
            wrote on last edited by
            #5

            You can use QueryString. QueryString is a pair that you can pass in your URL. eg. www..com/Default.aspx?var1=1 when you click the above link, it will open the Default.aspx page and you will a QueryString variable which you access and use it's value on Default.aspx page On Default.aspx page_load event, do this, dim xyz as string = Request.QueryString("var1") this will put 1 in xyz on page load. Hope this will solve your problem.

            Y 2 Replies Last reply
            0
            • V VikashGohil

              You can use QueryString. QueryString is a pair that you can pass in your URL. eg. www..com/Default.aspx?var1=1 when you click the above link, it will open the Default.aspx page and you will a QueryString variable which you access and use it's value on Default.aspx page On Default.aspx page_load event, do this, dim xyz as string = Request.QueryString("var1") this will put 1 in xyz on page load. Hope this will solve your problem.

              Y Offline
              Y Offline
              Yajjoj
              wrote on last edited by
              #6

              thanks VikashGohil for your help. but this way won't work. because i want to pass a value to HTML(but it's AJAX component) cod not VB.cod! so how can i pass value to HTML property? you it just like you send value for table size!! can we use GET or something like that? :wtf: :wtf:

              al hajjaj

              Y 1 Reply Last reply
              0
              • Y Yajjoj

                thanks VikashGohil for your help. but this way won't work. because i want to pass a value to HTML(but it's AJAX component) cod not VB.cod! so how can i pass value to HTML property? you it just like you send value for table size!! can we use GET or something like that? :wtf: :wtf:

                al hajjaj

                Y Offline
                Y Offline
                Yajjoj
                wrote on last edited by
                #7

                please somebody help me.......... how can i pass value to Accordion (SelectedIndex property)??????

                al hajjaj

                1 Reply Last reply
                0
                • V VikashGohil

                  You can use QueryString. QueryString is a pair that you can pass in your URL. eg. www..com/Default.aspx?var1=1 when you click the above link, it will open the Default.aspx page and you will a QueryString variable which you access and use it's value on Default.aspx page On Default.aspx page_load event, do this, dim xyz as string = Request.QueryString("var1") this will put 1 in xyz on page load. Hope this will solve your problem.

                  Y Offline
                  Y Offline
                  Yajjoj
                  wrote on last edited by
                  #8

                  VikashGohil i am so sorry your answer is right. i am fool :~ cuz i didn't add this : Accordion1.SelectedIndex = xyz thank you so much , and forgive me ,i am beginner. :((

                  al hajjaj

                  1 Reply Last reply
                  0
                  • N N a v a n e e t h

                    Can't you pass the value as query string?

                    Navaneeth How to use google | Ask smart questions

                    Y Offline
                    Y Offline
                    Yajjoj
                    wrote on last edited by
                    #9

                    you too :thumbsup:N a v a :rose:n e e t h:thumbsup: thank you so much.

                    al hajjaj

                    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