C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




back button


Posted Date: 07 Oct 2008      Total Responses: 3

Posted By: vijendra       Member Level: Bronze     Points: 1


hi all
i have a button in all my pages of the site whose functionality is exactly similar to the back button of the browser
can someone give a solution for this




Responses

Author: ashfaqq    07 Oct 2008Member Level: SilverRating:     Points: 3
if a button is server control

pageload

btback.attributes.add("onclick","goBack()")


if buttin is html control

call javscript function on click

<script type="text/javascript">
function goBack()
{
window.history.back()
}
</script>



Author: Meetu Choudhary    07 Oct 2008Member Level: GoldRating:     Points: 3
for server side control

on pageload event use

 
btnback.attributes.add("onclick","goBack()");


for html control

call following javscript function on click


<script type="text/javascript">
function goBack()
{
window.history.back()
}
</script>




--
Thanks and Regards
Meetu Choudhary



Author: Manindra Upadhyay    07 Oct 2008Member Level: GoldRating:     Points: 3
OnClientClik="javascript:window.history.back(-1);"


Post Reply
You must Sign In to post a response.
Next : c# windows application
Previous : Send Mail
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

internet fax

Contact Us    Privacy Policy    Terms Of Use