papa_k Posted November 17, 2003 Posted November 17, 2003 how do i get a button to move back a page like the tool bar back button does in vb asp.net? Quote without time nothing ever ends
Moderators Robby Posted November 17, 2003 Moderators Posted November 17, 2003 Add an attribute to an html button .... OnClick="javascript:history.back()" Quote Visit...Bassic Software
papa_k Posted November 24, 2003 Author Posted November 24, 2003 (edited) Oh, i see, but how do i... Add an attribute to an html button .... OnClick="javascript:history.back()" Was posted by Papa but changed do i create a web forms button or an html button on the form? Where is the above code assigned to the button once i have created it? Within the HTML page code, within the VB code for the form? thanks. Papa After some clutching of straws and other such things i managed to get this to work. I had to create a HTML button on my form, then convert it to a server control (right click to convert) and then on the page load, within the vb/js of the page i had this code... cmdBackButton.Attributes.Add("OnClick", "javascript:history.back()") cheers, papa. Edited November 24, 2003 by papa_k Quote without time nothing ever ends
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.