-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: VaibhavModak
Message 2 in Discussion

Hi,  I am not sure whether this can be achieved by using C# as such. But you can 
easily do it using Javascript at the client side directly.   Here are some of the ways 
that I knew + found while searching for an answer to the query:         <body 
onLoad="history.go(+1)">
put it on the page where you dont want it to Go.        <a href="somwhere.asp" 
onclick="location.replace(this.href);<NOBR>return</NOBR> false;">TEST</a>
location.replace will not let you go back to the original page.         
onLoad="if(history.length>0)history.go(+1)"
        A way to do that without javascript is to use a meta refresh tag in the entry 
page to your site.  If you have a banner ad or a link to you from another site you can 
prevent the user from going back (leaving your site). Put the following meta tag in 
the <head></head> section of your page to redirect to page2.html after 0 seconds.
<meta http-equiv=refresh content="0, URL=page2.html">
You could put this in your home page and make page2.html your home page content.       
  onLoad="if(history.length>0)history.go(1-history.length)"              Simply use 
this code in head tag u will block user to go back through back button :) so simple it 
is
<script language="javascript">
     window.history.forward(1);
</script> 
Try these, and choose what ever suits your requirement. 
HTH, 
Regards,

Vaibhav Modak     

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to