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. how to restrict the users not to enter any value on the address bar.

how to restrict the users not to enter any value on the address bar.

Scheduled Pinned Locked Moved ASP.NET
tutorial
12 Posts 5 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.
  • N N a v a n e e t h

    jagadeeshkumar2106 wrote:

    so how to restrict the user not to edit the address bar

    Disabling/Hiding browser address bar is not at all an efficient solution as user can take the URL from page info and give it directly on a fresh window. You need to write code for checking the query string value's and redirect to error pages if values are invalid.

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

    J Offline
    J Offline
    jagan123
    wrote on last edited by
    #3

    hi sir is it possible not to edit the address bar by the user ...if possible plz help me with code

    N 1 Reply Last reply
    0
    • J jagan123

      hi sir is it possible not to edit the address bar by the user ...if possible plz help me with code

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

      You can hide it in a popup. But as I told earlier, it's not reliable. So always check the values before you process them. Make sure the values passes through query string is valid. If you don't want to check the values passed, encrypt them before passing. So user won't understand the data.

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

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

        You can hide it in a popup. But as I told earlier, it's not reliable. So always check the values before you process them. Make sure the values passes through query string is valid. If you don't want to check the values passed, encrypt them before passing. So user won't understand the data.

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

        J Offline
        J Offline
        jagan123
        wrote on last edited by
        #5

        You can hide it in a popup..means wat sir and how it is done

        1 Reply Last reply
        0
        • J jagan123

          my project consists of several aspx pages where it is navigating to one page to another pages.but wh navigating the address bar is visble to the user and it can be editable .so how to restrict the user not to edit the address bar ..or not to do anything to the address bar content.

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #6

          Poor Navaneeth. How can an ASP.NET forum contain so many people who have no idea what ASP.NET is, and what it does ? There is literally no way you can do this. And, why would you want to ? I suspect you're trying to solve a different problem entirely, such as users being logged back in when they hit the back button. Fix your program, don't try to make life hard for your users, not least because it's not possible.

          Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

          N 1 Reply Last reply
          0
          • J jagan123

            my project consists of several aspx pages where it is navigating to one page to another pages.but wh navigating the address bar is visble to the user and it can be editable .so how to restrict the user not to edit the address bar ..or not to do anything to the address bar content.

            D Offline
            D Offline
            dilipv 0
            wrote on last edited by
            #7

            hi jagadeeshkumar2106, According to me there is no such possibilites of preveting user from editing Address bar. Because if you doesn't allow user to edit Address bar then how can user switch to some another website. I know you preveting user from editing your website's URL but if user wanna swtich to another website then it is not possible. It's better to use URL Rewriting which simply hide important contents of URL and show different URL to user. So, even User edit URL it doesn't effect your application at all. Hope this will help you. Thanks & Regards Dilipv

            Dilip Kumar Vishwakarma Programmer .Net Consulting

            1 Reply Last reply
            0
            • C Christian Graus

              Poor Navaneeth. How can an ASP.NET forum contain so many people who have no idea what ASP.NET is, and what it does ? There is literally no way you can do this. And, why would you want to ? I suspect you're trying to solve a different problem entirely, such as users being logged back in when they hit the back button. Fix your program, don't try to make life hard for your users, not least because it's not possible.

              Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

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

              Christian Graus wrote:

              Poor Navaneeth. How can an ASP.NET forum contain so many people who have no idea what ASP.NET is, and what it does ?

              :confused: I am sorry, but I am not getting you.

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

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

                Christian Graus wrote:

                Poor Navaneeth. How can an ASP.NET forum contain so many people who have no idea what ASP.NET is, and what it does ?

                :confused: I am sorry, but I am not getting you.

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

                C Offline
                C Offline
                Christian Graus
                wrote on last edited by
                #9

                Damn - sorry, that doesn't read like I meant it. I meant, poor you because you were saying the same thing over and over and, as often is the case here, getting a 'so how do I do it' response.

                Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

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

                  Christian Graus wrote:

                  Poor Navaneeth. How can an ASP.NET forum contain so many people who have no idea what ASP.NET is, and what it does ?

                  :confused: I am sorry, but I am not getting you.

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

                  _ Offline
                  _ Offline
                  _AK_
                  wrote on last edited by
                  #10

                  What he meant was that there are so many persons active in asp.net forum who dont know event the basics and you tireslessly trying to teach them the same.. :)

                  Apurva Kaushal

                  N 1 Reply Last reply
                  0
                  • C Christian Graus

                    Damn - sorry, that doesn't read like I meant it. I meant, poor you because you were saying the same thing over and over and, as often is the case here, getting a 'so how do I do it' response.

                    Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

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

                    Ohh, I misunderstood that one. No prob. :)

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

                    1 Reply Last reply
                    0
                    • _ _AK_

                      What he meant was that there are so many persons active in asp.net forum who dont know event the basics and you tireslessly trying to teach them the same.. :)

                      Apurva Kaushal

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

                      :) Now I understood

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

                      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