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. hw to get data in a same page without redirecting

hw to get data in a same page without redirecting

Scheduled Pinned Locked Moved ASP.NET
help
15 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.
  • S Offline
    S Offline
    sowjanya3
    wrote on last edited by
    #1

    can any one help me in getting the data by clicking any particular button the respective data should be appeared in a frame.

    B A N C 4 Replies Last reply
    0
    • S sowjanya3

      can any one help me in getting the data by clicking any particular button the respective data should be appeared in a frame.

      B Offline
      B Offline
      Brij
      wrote on last edited by
      #2

      What is the problem you are facing?OnClick event of the button,you can fetch data and can show it on the page,where you want.

      Cheers!! Brij

      S 1 Reply Last reply
      0
      • S sowjanya3

        can any one help me in getting the data by clicking any particular button the respective data should be appeared in a frame.

        A Offline
        A Offline
        Abhijit Jana
        wrote on last edited by
        #3

        What I understood from your point, you want to show some data in Iframe on button click. As I frame is a different page, you can pass the data easily by Query String. Like on Button Click

        Response.Redirect("/Test.aspx?id=10&name=abc");

        and You set the IFrame Target with Test.aspx and on that page Load, you can easily read those data and can display on the page, Hope this will help you !!

        S 1 Reply Last reply
        0
        • S sowjanya3

          can any one help me in getting the data by clicking any particular button the respective data should be appeared in a frame.

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          AJAX allows you to update portions of the page without interfering with the whole


          I know the language. I've read a book. - _Madmatt

          S 1 Reply Last reply
          0
          • S sowjanya3

            can any one help me in getting the data by clicking any particular button the respective data should be appeared in a frame.

            C Offline
            C Offline
            carlecomm
            wrote on last edited by
            #5

            Hi,I think you can get the data when some event happens. e.g. onmouseover event, onkeydown event...

            S 1 Reply Last reply
            0
            • A Abhijit Jana

              What I understood from your point, you want to show some data in Iframe on button click. As I frame is a different page, you can pass the data easily by Query String. Like on Button Click

              Response.Redirect("/Test.aspx?id=10&name=abc");

              and You set the IFrame Target with Test.aspx and on that page Load, you can easily read those data and can display on the page, Hope this will help you !!

              S Offline
              S Offline
              sowjanya3
              wrote on last edited by
              #6

              acc to my requiremnt i cant use i frame so am using frame set which is working i have a tree view in left side of my pge. while clicking any button of tree view i should get data in right of my frame. the full page shld not get redirected. The tree view and the buttons on shld be visible always. this is my prob. which code shld i use nw help me

              A 1 Reply Last reply
              0
              • C carlecomm

                Hi,I think you can get the data when some event happens. e.g. onmouseover event, onkeydown event...

                S Offline
                S Offline
                sowjanya3
                wrote on last edited by
                #7

                acc to my requiremnt i cant use i frame so am using frame set which is working i have a tree view in left side of my pge. while clicking any button of tree view i should get data in right of my frame. the full page shld not get redirected. The tree view and the buttons on shld be visible always. this is my prob. which code shld i use nw help me. ya wen d event occurs it happens bt how to write the coding according to that am a fresher i dont have training. i want coding in VB

                S 1 Reply Last reply
                0
                • B Brij

                  What is the problem you are facing?OnClick event of the button,you can fetch data and can show it on the page,where you want.

                  Cheers!! Brij

                  S Offline
                  S Offline
                  sowjanya3
                  wrote on last edited by
                  #8

                  acc to my requiremnt i cant use i frame so am using frame set which is working i have a tree view in left side of my pge. while clicking any button of tree view i should get data in right of my frame. the full page shld not get redirected. The tree view and the buttons on shld be visible always. this is my prob. which code shld i use nw help me. hw to fetch the data and put in our selected place?.can v redirect the page in a single to other frame?

                  B 1 Reply Last reply
                  0
                  • N Not Active

                    AJAX allows you to update portions of the page without interfering with the whole


                    I know the language. I've read a book. - _Madmatt

                    S Offline
                    S Offline
                    sowjanya3
                    wrote on last edited by
                    #9

                    how we can do that? can u help me by giving sample coding? my main goal is as we click a button on left frame the data has to appeared on right frame

                    N 1 Reply Last reply
                    0
                    • S sowjanya3

                      acc to my requiremnt i cant use i frame so am using frame set which is working i have a tree view in left side of my pge. while clicking any button of tree view i should get data in right of my frame. the full page shld not get redirected. The tree view and the buttons on shld be visible always. this is my prob. which code shld i use nw help me. ya wen d event occurs it happens bt how to write the coding according to that am a fresher i dont have training. i want coding in VB

                      S Offline
                      S Offline
                      sashidhar
                      wrote on last edited by
                      #10

                      Try this link it may help..! http://forums.asp.net/t/1287824.aspx[^] http://www.treeview.net/treemenu/demos.asp[^] http://www.treeview.net/treemenu/3fr_beenthere.html[^]

                      LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.

                      1 Reply Last reply
                      0
                      • S sowjanya3

                        acc to my requiremnt i cant use i frame so am using frame set which is working i have a tree view in left side of my pge. while clicking any button of tree view i should get data in right of my frame. the full page shld not get redirected. The tree view and the buttons on shld be visible always. this is my prob. which code shld i use nw help me. hw to fetch the data and put in our selected place?.can v redirect the page in a single to other frame?

                        B Offline
                        B Offline
                        Brij
                        wrote on last edited by
                        #11

                        Then better if you use AJAX.Use update panel, to update the portion of the page that you want to update on the click event of the page. for sample of Updatepanels ,Have a look

                        Cheers!! Brij

                        S 1 Reply Last reply
                        0
                        • B Brij

                          Then better if you use AJAX.Use update panel, to update the portion of the page that you want to update on the click event of the page. for sample of Updatepanels ,Have a look

                          Cheers!! Brij

                          S Offline
                          S Offline
                          sowjanya3
                          wrote on last edited by
                          #12

                          Is this not possible in asp.net? what if my seniors say that v shuld not use AJAX thn hw would be the solution?

                          B 1 Reply Last reply
                          0
                          • S sowjanya3

                            Is this not possible in asp.net? what if my seniors say that v shuld not use AJAX thn hw would be the solution?

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

                            sowjanya3 wrote:

                            what if my seniors say that v shuld not use AJAX thn hw would be the solution?

                            You have make them understood,that you will have to use AJAX else the whole page will get refreshed. One more way to use callback,But It's complex and creates problems sometimes.

                            Cheers!! Brij

                            1 Reply Last reply
                            0
                            • S sowjanya3

                              acc to my requiremnt i cant use i frame so am using frame set which is working i have a tree view in left side of my pge. while clicking any button of tree view i should get data in right of my frame. the full page shld not get redirected. The tree view and the buttons on shld be visible always. this is my prob. which code shld i use nw help me

                              A Offline
                              A Offline
                              Abhijit Jana
                              wrote on last edited by
                              #14

                              sowjanya3 wrote:

                              acc

                              sowjanya3 wrote:

                              pge

                              sowjanya3 wrote:

                              prob

                              sowjanya3 wrote:

                              shld

                              sowjanya3 wrote:

                              nw

                              Hi, Please do not use this kind of short from ( Chat Language ) while asking any question. Please ask the question in proper way so that every one can understand easily. Can you please rephrase your question, that you are looking for :confused: Thanks ! Abhijit

                              1 Reply Last reply
                              0
                              • S sowjanya3

                                how we can do that? can u help me by giving sample coding? my main goal is as we click a button on left frame the data has to appeared on right frame

                                N Offline
                                N Offline
                                Not Active
                                wrote on last edited by
                                #15

                                Try here[^]


                                I know the language. I've read a book. - _Madmatt

                                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