i always forget to mection...<BR><BR>tks...but i am looking for ASP.NET code for goin back..<BR>cause the button i am using uis a imagebutton and its set to runtat="server"<BR>hope you can help...<BR>tks..
...client side JS code to a .NET image button.<BR><BR>Find the topic "Client-Side Functionality in a Server Control" in your .NET docs.<BR><BR>There are other ways, too. You don't *have* to use runat="server" if you don't use an <asp: provide image button. <BR><BR>
yeah, <input type="image" src="file.gif" onclick="self.history.go(-1)" /><BR><BR>that's what the asp:imagebutton generates anyway, and if you're not going to use it server-side, there's no point using the server-side object. same goes for ANY tag you don't use server-side. they all generate HTML output in the end.
...most ASP.NET pages do so much self-submitting. So you'll find the same page 3 or 4 or a dozen times in the history.<BR><BR>Maybe the thing to do is capture the HTTP_REFERER the *first* time you hit the page (look for isPostBack to be false) and then go ahead and use the asp imagebuggon and redirect to that location.