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. data sending problem.

data sending problem.

Scheduled Pinned Locked Moved ASP.NET
questiondatabasehelp
10 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.
  • S Offline
    S Offline
    Sonia Gupta
    wrote on last edited by
    #1

    i have some data , which is commig from the previous page .in the current page , i am fetching it using the query string at form load. after clicking the close button of my aspx page , i am redirecting the user to some other page. i am currently in the source file , where after clicking the close button , i am navigating the user , now the question is , how can i sent the data to that page , which was coming from the previous one. i am writing there only location.hef = 'pe.aspx'; how should i add the data , along with the page name.

    Soniagupta1@yahoo.co.in Yahoo Messenger Id = soniagupta1

    R N 2 Replies Last reply
    0
    • S Sonia Gupta

      i have some data , which is commig from the previous page .in the current page , i am fetching it using the query string at form load. after clicking the close button of my aspx page , i am redirecting the user to some other page. i am currently in the source file , where after clicking the close button , i am navigating the user , now the question is , how can i sent the data to that page , which was coming from the previous one. i am writing there only location.hef = 'pe.aspx'; how should i add the data , along with the page name.

      Soniagupta1@yahoo.co.in Yahoo Messenger Id = soniagupta1

      R Offline
      R Offline
      Riza Azmi
      wrote on last edited by
      #2

      Hi Sonia You can use session to bypass the value in previous page session("test") = "123" in current page (onload) textbox1.text=session("test") If, it is on the opener you can use javascript: window.opener.Form1("Your_Field_Name").value="Your Value" Hope it is usefull

      Regards, Riza Azmi Simple thing should be simple, complex thing should be possible

      S 1 Reply Last reply
      0
      • S Sonia Gupta

        i have some data , which is commig from the previous page .in the current page , i am fetching it using the query string at form load. after clicking the close button of my aspx page , i am redirecting the user to some other page. i am currently in the source file , where after clicking the close button , i am navigating the user , now the question is , how can i sent the data to that page , which was coming from the previous one. i am writing there only location.hef = 'pe.aspx'; how should i add the data , along with the page name.

        Soniagupta1@yahoo.co.in Yahoo Messenger Id = soniagupta1

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

        Sonia Gupta wrote:

        after clicking the close button of my aspx page , i am redirecting the user to some other page

        Are you trying to redirect when browser window is closed or a separate close button on your web form ?

        All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions

        S 1 Reply Last reply
        0
        • R Riza Azmi

          Hi Sonia You can use session to bypass the value in previous page session("test") = "123" in current page (onload) textbox1.text=session("test") If, it is on the opener you can use javascript: window.opener.Form1("Your_Field_Name").value="Your Value" Hope it is usefull

          Regards, Riza Azmi Simple thing should be simple, complex thing should be possible

          S Offline
          S Offline
          Sonia Gupta
          wrote on last edited by
          #4

          form1 is the name of aspx page? Your_Field_Name is the variable with the page name , in wich i am passing the data, i meant

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

            Sonia Gupta wrote:

            after clicking the close button of my aspx page , i am redirecting the user to some other page

            Are you trying to redirect when browser window is closed or a separate close button on your web form ?

            All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions

            S Offline
            S Offline
            Sonia Gupta
            wrote on last edited by
            #5

            former case.

            Soniagupta1@yahoo.co.in Yahoo Messenger Id = soniagupta1

            N 1 Reply Last reply
            0
            • S Sonia Gupta

              former case.

              Soniagupta1@yahoo.co.in Yahoo Messenger Id = soniagupta1

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

              You can pass as query string. But is it redirecting when browser close is clicked ?

              All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions

              S 1 Reply Last reply
              0
              • S Sonia Gupta

                form1 is the name of aspx page? Your_Field_Name is the variable with the page name , in wich i am passing the data, i meant

                R Offline
                R Offline
                Riza Azmi
                wrote on last edited by
                #7

                Hi Sonia. It is use when you use a separate page. Just use session if it is not using separate page. Separate page is someknid like: There is page A: window.open("B.aspx") And in page B. you can use window.opener.Form1(The_Field_inPage_A.ASPX).value="Something" window.close

                Regards, Riza Azmi Simple thing should be simple, complex thing should be possible

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

                  You can pass as query string. But is it redirecting when browser close is clicked ?

                  All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions

                  S Offline
                  S Offline
                  Sonia Gupta
                  wrote on last edited by
                  #8

                  yes it is rediecting. problem is with redirecting , i have to pass the data,which is comming from the previous page. how should i get that data in the source file. i am not using the session variables.

                  Soniagupta1@yahoo.co.in Yahoo Messenger Id = soniagupta1

                  N 1 Reply Last reply
                  0
                  • S Sonia Gupta

                    yes it is rediecting. problem is with redirecting , i have to pass the data,which is comming from the previous page. how should i get that data in the source file. i am not using the session variables.

                    Soniagupta1@yahoo.co.in Yahoo Messenger Id = soniagupta1

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

                    Sonia Gupta wrote:

                    how should i get that data in the source file.

                    Declare a public variable in you code behind, and set the values to be passed in this variable. Use the variable in scriptlets in javascript like

                    var JSVariable = <% =PublicServerVariable >

                    . You can redirect to the URL with this value

                    All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions

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

                      Sonia Gupta wrote:

                      how should i get that data in the source file.

                      Declare a public variable in you code behind, and set the values to be passed in this variable. Use the variable in scriptlets in javascript like

                      var JSVariable = <% =PublicServerVariable >

                      . You can redirect to the URL with this value

                      All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions

                      S Offline
                      S Offline
                      Sonia Gupta
                      wrote on last edited by
                      #10

                      Thank You Navaneeth

                      Soniagupta1@yahoo.co.in Yahoo Messenger Id = soniagupta1

                      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