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 redirect to previous usercontrol when clicked on a "Back" Button

How to redirect to previous usercontrol when clicked on a "Back" Button

Scheduled Pinned Locked Moved ASP.NET
tutorialquestion
3 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.
  • G Offline
    G Offline
    getaccessyr
    wrote on last edited by
    #1

    Hi All, According our requirement we have to use three UserControls in a page,like Categories,shops,and few features as three usercontrols respectively.in the same page if select categories and click on next button it shud show next usercontrol then we have to select shops and if click next,it shud go to features control fine. Now again i want to come back the previous control if we select "Back" button Can i do the "Back"-button thing as i am doing now for "Next" -button,i mean i coded everything to get the next control.Like wise i can get previous too But i want to know whether any other way is there to get this? Let me know,if there Thanks In Advance, Yamuna

    D A 2 Replies Last reply
    0
    • G getaccessyr

      Hi All, According our requirement we have to use three UserControls in a page,like Categories,shops,and few features as three usercontrols respectively.in the same page if select categories and click on next button it shud show next usercontrol then we have to select shops and if click next,it shud go to features control fine. Now again i want to come back the previous control if we select "Back" button Can i do the "Back"-button thing as i am doing now for "Next" -button,i mean i coded everything to get the next control.Like wise i can get previous too But i want to know whether any other way is there to get this? Let me know,if there Thanks In Advance, Yamuna

      D Offline
      D Offline
      dan sh
      wrote on last edited by
      #2

      You can set the query string on the click of the buttons. Then in the load event check the value and load control accordingly.

      It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD

      1 Reply Last reply
      0
      • G getaccessyr

        Hi All, According our requirement we have to use three UserControls in a page,like Categories,shops,and few features as three usercontrols respectively.in the same page if select categories and click on next button it shud show next usercontrol then we have to select shops and if click next,it shud go to features control fine. Now again i want to come back the previous control if we select "Back" button Can i do the "Back"-button thing as i am doing now for "Next" -button,i mean i coded everything to get the next control.Like wise i can get previous too But i want to know whether any other way is there to get this? Let me know,if there Thanks In Advance, Yamuna

        A Offline
        A Offline
        Abhishek Sur
        wrote on last edited by
        #3

        You can use button onclick="javascript:history.go(-1)" to work the same way as your back button. But I personally suggest not to rely too much on history object. If user deletes cache.. back will not work. Rather implement back button to point to the location just prior to it so that it calls the proper page rather than using Cached page of the browser. :)

        Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


        My Latest Articles-->** Microsoft Bing MAP using Javascript
        CLR objects in SQL Server 2005
        Uncommon C# Keywords
        /xml>

        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