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. How to Process variable?

How to Process variable?

Scheduled Pinned Locked Moved ASP.NET
helptutorialquestion
7 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.
  • P Offline
    P Offline
    phuhoa
    wrote on last edited by
    #1

    I have a textbox and Button Search in the site A. When I input data in the TextBox and then click Button Submit I have data of Textbox input. However, when I use variable in the textbox of site A for site b then I meet error. If you know, tell me to process please, thanks

    RICHING MINDS,CHANGING LIVE

    R S 2 Replies Last reply
    0
    • P phuhoa

      I have a textbox and Button Search in the site A. When I input data in the TextBox and then click Button Submit I have data of Textbox input. However, when I use variable in the textbox of site A for site b then I meet error. If you know, tell me to process please, thanks

      RICHING MINDS,CHANGING LIVE

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

      Hi phuhoa In ASPX, variable not stored in a long time. Just whene the page is created. To use long life variable use session (however in default just 20 minuites). Like the example: First, store your variable Session("textbox1") = textbox1.text To retrieve it textbox2.text = Session("textbox1") Hope it is usefull for you.

      1 Reply Last reply
      0
      • P phuhoa

        I have a textbox and Button Search in the site A. When I input data in the TextBox and then click Button Submit I have data of Textbox input. However, when I use variable in the textbox of site A for site b then I meet error. If you know, tell me to process please, thanks

        RICHING MINDS,CHANGING LIVE

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

        I am confused can you tell me What is Site A and Site B If both are different web application then pass the value in query string if you don't know how to pass the query string please google it

        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... "

        R 1 Reply Last reply
        0
        • S Sandeep Akhare

          I am confused can you tell me What is Site A and Site B If both are different web application then pass the value in query string if you don't know how to pass the query string please google it

          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... "

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

          Hi Sandeep, Hi phuhoa Query string is also a nice choice to "transfer" the variable. However, it is not really safe, when we deal with the security. Let us follow the sample: Me.TextBox1.Text = Request.QueryString.Get("prevpage").ToString *Change the prevpage with the value of previous page. Regards, Riza Azmi (rizaazmi@yahoo.co.id)

          S 1 Reply Last reply
          0
          • R Riza Azmi

            Hi Sandeep, Hi phuhoa Query string is also a nice choice to "transfer" the variable. However, it is not really safe, when we deal with the security. Let us follow the sample: Me.TextBox1.Text = Request.QueryString.Get("prevpage").ToString *Change the prevpage with the value of previous page. Regards, Riza Azmi (rizaazmi@yahoo.co.id)

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

            Yes its not Secured but i think in his application that is not main concern as it is the value that user is going to enter i don't think it will cause any trouble or security concerned . If you change the the quesry string then result will different just simple ;)

            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... "

            R 1 Reply Last reply
            0
            • S Sandeep Akhare

              Yes its not Secured but i think in his application that is not main concern as it is the value that user is going to enter i don't think it will cause any trouble or security concerned . If you change the the quesry string then result will different just simple ;)

              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... "

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

              Sssssssssst... The thread starter are sleeping. :laugh:

              S 1 Reply Last reply
              0
              • R Riza Azmi

                Sssssssssst... The thread starter are sleeping. :laugh:

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

                I am really surprised the the owner of this thread is silver member he is member of CP since 2 years and this is his first post :omg::wtf:

                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... "

                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