C# Tutorials and offshore development in India
Tutorials Resources Forum Reviews Communities Interview Jobs Projects Training Your Ad Here


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Resources » Code Snippets » Active Directory »

Go Back to Previous Page


Posted Date: 14 Mar 2008    Resource Type: Code Snippets    Category: Active Directory
Author: anish vargheseMember Level: Silver    
Rating: 1 out of 5Points: 12



The code sample shows a simple code to enable the user to navigate back to the previous page.

							

<input type="button" value="Back to Previous Page" onClick="javascript: history.go(-1)">



The code uses the "history" object provided by the DOM of the web browser. History object's go () method takes -1 as argument to signify the previous page.
The output of the above example can be readily seen below






Responses to the resource: "Go Back to Previous Page"
Author: vilas fulzele    30 Jul 2008Member Level: Silver   Points : 0
very nice code.
This code is helpful for me.



Author: UltimateRengan    01 Aug 2008Member Level: Diamond   Points : 1
hi,
Really very nice one.
continue for sharing your knowledge

Regards

Ultimate Rengan





Author: dlna    05 Jun 2009Member Level: Bronze   Points : 1
hi,
This would create a simple button in the designer.

Is it possible to do the same function in an Imagebutton. I tried but it didnt really work.

Could you please help me in figuring this out.

PS: I'm really new into programming and dont know much.


Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Sign In to add tags.
Javascript  .  Page navigation  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Login Form
Previous Resource: Select/Deselect all Checkboxes at Server side in ASP.NET using C#
Return to Discussion Resource Index
Post New Resource
Category: Active Directory


Post resources and earn money!
 
More Resources




About Us    Contact Us    Privacy Policy    Terms Of Use