473,513 Members | 2,378 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

problem with back button

Hey guys,

I have a problem with events misfiring when the back button is used.

I have two controls (a drop-down list and a text field) and two buttons, one
for each of the controls, on a "quick search" type bar/control. When I
click the button that submits the drop-down list, I do some processing on
the button click event postback, and redirect to another page. That's fine.
The problem is, when I hit the browser BACK button, and then attempt to
click the button to submit the text field this time, the event for the
dropdown list button fires instead, that is, the event that I called
previously.

What gives? Any ideas?

ib.
Nov 18 '05 #1
2 1462
I like this model. Set up a panel for each step. Make all but the first
invisible. Force the user to click a button for each step, which you can get
rid of as you step down (Visible = false). You still have all elements in
the ViewState, but you divide out the user experience into logical steps.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************** *************
Think outside the box!
************************************************** *************
"Ireney Berezniak" <ir**************@hotmail.com> wrote in message
news:LpXcc.19395$J56.12531@edtnps89...
Hey guys,

I have a problem with events misfiring when the back button is used.

I have two controls (a drop-down list and a text field) and two buttons, one for each of the controls, on a "quick search" type bar/control. When I
click the button that submits the drop-down list, I do some processing on
the button click event postback, and redirect to another page. That's fine. The problem is, when I hit the browser BACK button, and then attempt to
click the button to submit the text field this time, the event for the
dropdown list button fires instead, that is, the event that I called
previously.

What gives? Any ideas?

ib.

Nov 18 '05 #2
I like this model. Set up a panel for each step. Make all but the first
invisible. Force the user to click a button for each step, which you can get
rid of as you step down (Visible = false). You still have all elements in
the ViewState, but you divide out the user experience into logical steps.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************** *************
Think outside the box!
************************************************** *************
"Ireney Berezniak" <ir**************@hotmail.com> wrote in message
news:LpXcc.19395$J56.12531@edtnps89...
Hey guys,

I have a problem with events misfiring when the back button is used.

I have two controls (a drop-down list and a text field) and two buttons, one for each of the controls, on a "quick search" type bar/control. When I
click the button that submits the drop-down list, I do some processing on
the button click event postback, and redirect to another page. That's fine. The problem is, when I hit the browser BACK button, and then attempt to
click the button to submit the text field this time, the event for the
dropdown list button fires instead, that is, the event that I called
previously.

What gives? Any ideas?

ib.

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
3621
by: Amy | last post by:
When accessing my JSP I get the following error: org.apache.jasper.JasperException: Missing message for key button.next Can anyone tell me what the problem is? I have tried to figure this out...
5
569
by: fripper | last post by:
I posted this problem a couple of days ago but felt I might have better luck re-stating the problem. Apparently I messed up IIS (v. 5) somehow because I am suddenly unable to load web forms! A...
4
7584
by: Hypo | last post by:
I added a 'Back' button to my page, and wrote 'OnClick' code something like this: Response.Write("<script>history.go(-" + iDepthIndex.ToString() + ");</script>"); But, it dosnt work! Effect...
3
1475
by: Quentin Huo | last post by:
Hi: When I tried the following code, I got an error: if I clicked "Click me" button more than one time, and than click "back" button in the IE browser Toolbar, I will get an error: "The page...
11
26780
by: Russ | last post by:
My web app writes some binary data to a file at the client site via Response.Write and Response.BinaryWrite. This action is accomplished in response to a button click, with C# code behind as...
0
1577
by: anandv81 | last post by:
Hi, I encountered a strange problem while working on an application, the problem goes like this. I am generating a few textboxes at runtime at the server side and added to a placeholder, a...
8
1786
by: Nacho | last post by:
Hello people I have the following problem I have a private area in my site. The user enters the username and password, then clicks "enter" and the session is created and also a session...
7
8338
by: mohammed.naghman | last post by:
Hi, I have 2 submit buttons in a jsp page. One of them takes me to page2.jsp and also passes the values enetered to page2.I have a link in the page2 that does a history.back to come to the...
8
2016
by: =?Utf-8?B?V2ViQnVpbGRlcjQ1MQ==?= | last post by:
I the page knows there was a cross post back. but i can not find the control. (asp.net 3.5) calling page has a master calling control: <asp:Button ID="btnSendAlert" runat="server" Text="Go"...
2
3131
by: swethak | last post by:
Hi, I am getting the problem the problem with google map in Internet Explorer. This map worked fine in mozilla . When i opened the same map in Internet Explorer i am getting the error...
0
7175
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...
0
7553
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7542
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5697
agi2029
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,...
0
4754
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3235
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1609
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 ...
1
809
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
466
bsmnconsultancy
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.