Hello,
how do I do history back when asp:button is clicked? I
can't use <input button> - I have to use asp:button.
Thanks! 4 19583
Hi
myButton.Attrib utes.Add("oncli ck","history.ba ck()");
--
Best Regards
Vidar Petursson
=============== ===============
Microsoft Internet Client & Controls MVP
=============== ===============
"szabelin" <se************ @countrywide.co m> wrote in message
news:04******** *************** *****@phx.gbl.. . Hello,
how do I do history back when asp:button is clicked? I can't use <input button> - I have to use asp:button.
Thanks!
I tried this already - it doesn't work for me. A button
click causes postback to server. Is there a way to cancel
postback? Here is my script code:
<asp:Button CssClass="AllBu ttons" CausesValidatio n="False"
Width="100px" Height="28px" Runat="server" Text="Back"
ID="NavBack" Enabled="True"> </asp:Button>
and I added:
NavBack.Attribu tes.Add("onclic k","history.bac k()");
in the Page_Load.....
thanks
Sergey -----Original Message----- Hi
myButton.Attri butes.Add("oncl ick","history.b ack()");
-- Best Regards Vidar Petursson =============== =============== Microsoft Internet Client & Controls MVP =============== =============== "szabelin" <se************ @countrywide.co m> wrote in
messagenews:04******* *************** ******@phx.gbl. .. Hello,
how do I do history back when asp:button is clicked? I can't use <input button> - I have to use asp:button.
Thanks!
.
NavBack.Attribu tes.Add("onclic k","history.bac k(); return false");
--
Best Regards
Vidar Petursson
=============== ===============
Microsoft Internet Client & Controls MVP
=============== ===============
"szabelin" <se************ @countrywide.co m> wrote in message
news:02******** *************** *****@phx.gbl.. .
I tried this already - it doesn't work for me. A button click causes postback to server. Is there a way to cancel postback? Here is my script code:
<asp:Button CssClass="AllBu ttons" CausesValidatio n="False" Width="100px" Height="28px" Runat="server" Text="Back" ID="NavBack" Enabled="True"> </asp:Button>
and I added: NavBack.Attribu tes.Add("onclic k","history.bac k()"); in the Page_Load.....
thanks Sergey
-----Original Message----- Hi
myButton.Attri butes.Add("oncl ick","history.b ack()");
-- Best Regards Vidar Petursson =============== =============== Microsoft Internet Client & Controls MVP =============== =============== "szabelin" <se************ @countrywide.co m> wrote in messagenews:04******* *************** ******@phx.gbl. .. Hello,
how do I do history back when asp:button is clicked? I can't use <input button> - I have to use asp:button.
Thanks!
.
Thank you Vidar.
Sergey -----Original Message-----
NavBack.Attrib utes.Add("oncli ck","history.ba ck(); return
false"); -- Best Regards Vidar Petursson =============== =============== Microsoft Internet Client & Controls MVP =============== =============== "szabelin" <se************ @countrywide.co m> wrote in
messagenews:02******* *************** ******@phx.gbl. ..
I tried this already - it doesn't work for me. A button click causes postback to server. Is there a way to
cancel postback? Here is my script code:
<asp:Button CssClass="AllBu ttons"
CausesValidatio n="False" Width="100px" Height="28px" Runat="server" Text="Back" ID="NavBack" Enabled="True"> </asp:Button>
and I added: NavBack.Attribu tes.Add("onclic k","history.bac k()"); in the Page_Load.....
thanks Sergey
>-----Original Message----- >Hi > >myButton.Attri butes.Add("oncl ick","history.b ack()"); > >-- >Best Regards > Vidar Petursson > =============== =============== >Microsoft Internet Client & Controls MVP > =============== =============== >"szabelin" <se************ @countrywide.co m> wrote in message >news:04******* *************** ******@phx.gbl. .. >> Hello, >> >> how do I do history back when asp:button is clicked?
I >> can't use <input button> - I have to use asp:button. >> >> >> Thanks! > > >. >
. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: BadOmen |
last post by:
I have used WinObj=window.open ("http://www.some_page","Holder")
No I want to press a button in an other window and make the Holder windows
history.go(-1) is that possible?
(I'm not using a button... I'm using MS Agent with Voice Command but if the
button thing will work, so will this...)
Yours, Jonas
|
by: Rob |
last post by:
Each time a webform is posted back (submitted), another URL is added to the browser's history list. My web application allows a back button to return to previously visited pages, but I do not wish to return to each Postback URL, but rather only the initial page URL. Is there a way to prevent Postback URL's from being added to the browser's history list
Thanks in advance for any help.
|
by: Ben |
last post by:
I'm having problems with cookies from asp.net to asp back to asp.net.
It seems like I can set a cookie in asp.net fine, and alter it at will, as
soon as asp touches it, asp.net won't have anything to do with it. Can
someone please help!
The code below, going from aspx to aspx, works great the cookie as expected
goes from qwerty to zxcvb and back. As soon as you hit the asp page, the
cookie goes to asdfg and stays there no matter how...
|
by: Tim Marsden |
last post by:
Hi,
If I navigate from Page1 to Page2 then to Page3, using the
response.redirect.
When the user press the Back button, I what then to go to Page 1 and start
again, not Page2. I dont want the to navigate to Page2 using the Back and
Forward buttons.
How do I do this.
|
by: Dan |
last post by:
Is there a way to obtain the last page visited? I don't want to go to
that page, I just want to be able find out what page they came from,
the url of that page. Is this possible?
| |
by: Jeff |
last post by:
I need to make a response.redirect that will take the user back 2 pages
after they login.
How can i implement this into response.redirect ?
Thanks
|
by: Scott Shuster |
last post by:
Hi,
I've been searching and testing and have not yet found the answer I'm
looking for.
I have an ASP.NET (vb) application with an ecommerce function. When
the user submits the page, I DON'T want them to be able to click on the
'BACK' button and get back to the form - they may inadvertently
re-submit the page and get charged again. I WANT them to get the "Page
has expired" message.
|
by: =?Utf-8?B?Y2FzaGRlc2ttYWM=?= |
last post by:
Hi,
Is it possible to clear the recent history so that a link with the href
"javascript:window.history.back()" doesn't record any postbacks?
For example, if I the user makes a few selections on a page and clicks the
Back link, I want them to go to the previous page rather than going to the
previous state of the page.
Any help is appreciated as always.
|
by: Max |
last post by:
I recently moved to ASPnet Ext 3.5
What I can't get with Ajax and History browser managemet is this:
User fills some fields (dropdown and textbox) on page 1 (all are in an
update panel)
User clicks Submit Button
I write the data into a DB
I add a history point with ScriptManager to be able to get back to this
point with browser back button
Page 2 is loaded with a response.redirect() command
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| | |