473,388 Members | 1,256 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

Redirect fired when drop downlist change event occurs

Hi all,

I have a quick question...I believe. On my web page, call it page A, I
have a drop downlist with runat server enabled. When the drop downlist
change event occurs it repopulates a table depending on the value selected on
page A. After I redirect page A to some other page, call it page B, and use
the IE Back button to change my selection on the page A the page is forwarded
to page B without rebuilding the table on page A and allowing me to redirect
my request. My question is what am I doing wrong? Is there a setting on web
page A that I should know about to prevent this?
Nov 18 '05 #1
7 1656
Markus,
This is expected behavior. When you click back, you reexecute the
previous request, and that request did the redirecting. You'll have to use
another method if you want to be able to go back and change your selection.

Instead of doing a redirect, you can either display the correct content with
a user control on Page A, or you can put the selection in Page.Items
collection and do a Server.Transfer to Page B.

Best regards,
Jeffrey Palermo

"Markus McGee" <Markus Mc***@discussions.microsoft.com> wrote in message
news:49**********************************@microsof t.com...
Hi all,

I have a quick question...I believe. On my web page, call it page A, I
have a drop downlist with runat server enabled. When the drop downlist
change event occurs it repopulates a table depending on the value selected on page A. After I redirect page A to some other page, call it page B, and use the IE Back button to change my selection on the page A the page is forwarded to page B without rebuilding the table on page A and allowing me to redirect my request. My question is what am I doing wrong? Is there a setting on web page A that I should know about to prevent this?

Nov 18 '05 #2
Thanks...I'll give it a try.

"Jeffrey Palermo [MCP]" wrote:
Markus,
This is expected behavior. When you click back, you reexecute the
previous request, and that request did the redirecting. You'll have to use
another method if you want to be able to go back and change your selection.

Instead of doing a redirect, you can either display the correct content with
a user control on Page A, or you can put the selection in Page.Items
collection and do a Server.Transfer to Page B.

Best regards,
Jeffrey Palermo

"Markus McGee" <Markus Mc***@discussions.microsoft.com> wrote in message
news:49**********************************@microsof t.com...
Hi all,

I have a quick question...I believe. On my web page, call it page A, I
have a drop downlist with runat server enabled. When the drop downlist
change event occurs it repopulates a table depending on the value selected

on
page A. After I redirect page A to some other page, call it page B, and

use
the IE Back button to change my selection on the page A the page is

forwarded
to page B without rebuilding the table on page A and allowing me to

redirect
my request. My question is what am I doing wrong? Is there a setting on

web
page A that I should know about to prevent this?


Nov 18 '05 #3
You mean to use HttpContext right?

Markus

"Jeffrey Palermo [MCP]" wrote:
Markus,
This is expected behavior. When you click back, you reexecute the
previous request, and that request did the redirecting. You'll have to use
another method if you want to be able to go back and change your selection.

Instead of doing a redirect, you can either display the correct content with
a user control on Page A, or you can put the selection in Page.Items
collection and do a Server.Transfer to Page B.

Best regards,
Jeffrey Palermo

"Markus McGee" <Markus Mc***@discussions.microsoft.com> wrote in message
news:49**********************************@microsof t.com...
Hi all,

I have a quick question...I believe. On my web page, call it page A, I
have a drop downlist with runat server enabled. When the drop downlist
change event occurs it repopulates a table depending on the value selected

on
page A. After I redirect page A to some other page, call it page B, and

use
the IE Back button to change my selection on the page A the page is

forwarded
to page B without rebuilding the table on page A and allowing me to

redirect
my request. My question is what am I doing wrong? Is there a setting on

web
page A that I should know about to prevent this?


Nov 18 '05 #4
Yep. HttpContent.Current.Items
"Markus McGee" <Ma*********@discussions.microsoft.com> wrote in message
news:0C**********************************@microsof t.com...
You mean to use HttpContext right?

Markus

"Jeffrey Palermo [MCP]" wrote:
Markus,
This is expected behavior. When you click back, you reexecute the
previous request, and that request did the redirecting. You'll have to use another method if you want to be able to go back and change your selection.
Instead of doing a redirect, you can either display the correct content with a user control on Page A, or you can put the selection in Page.Items
collection and do a Server.Transfer to Page B.

Best regards,
Jeffrey Palermo

"Markus McGee" <Markus Mc***@discussions.microsoft.com> wrote in message
news:49**********************************@microsof t.com...
Hi all,

I have a quick question...I believe. On my web page, call it page A, I have a drop downlist with runat server enabled. When the drop downlist change event occurs it repopulates a table depending on the value
selected on
page A. After I redirect page A to some other page, call it page B,
and use
the IE Back button to change my selection on the page A the page is

forwarded
to page B without rebuilding the table on page A and allowing me to

redirect
my request. My question is what am I doing wrong? Is there a setting
on web
page A that I should know about to prevent this?


Nov 18 '05 #5
Is there a website that covers this particular topic? I've been trying to
look up this information at the local Borders(s) but can't find anything. I
know it's common knowledge but I don't remember running into this in ASP.
The thingy that I'm running into know is page history. If I create a back
buttion and use the Referring page to go back...I can only go back so
far.Everytime I post to a page I save the referring url and us this to do a
back like action. Actually one page deep. What If I wanted to back all the
way out of the application using the my back button or the IE Back buttion?

Last question...I hope.

Markus McGee
"Jeffrey Palermo [MCP]" wrote:
Yep. HttpContent.Current.Items
"Markus McGee" <Ma*********@discussions.microsoft.com> wrote in message
news:0C**********************************@microsof t.com...
You mean to use HttpContext right?

Markus

"Jeffrey Palermo [MCP]" wrote:
Markus,
This is expected behavior. When you click back, you reexecute the
previous request, and that request did the redirecting. You'll have to use another method if you want to be able to go back and change your selection.
Instead of doing a redirect, you can either display the correct content with a user control on Page A, or you can put the selection in Page.Items
collection and do a Server.Transfer to Page B.

Best regards,
Jeffrey Palermo

"Markus McGee" <Markus Mc***@discussions.microsoft.com> wrote in message
news:49**********************************@microsof t.com...
> Hi all,
>
> I have a quick question...I believe. On my web page, call it page A, I > have a drop downlist with runat server enabled. When the drop downlist > change event occurs it repopulates a table depending on the value selected on
> page A. After I redirect page A to some other page, call it page B, and use
> the IE Back button to change my selection on the page A the page is
forwarded
> to page B without rebuilding the table on page A and allowing me to
redirect
> my request. My question is what am I doing wrong? Is there a setting on web
> page A that I should know about to prevent this?


Nov 18 '05 #6
Markus,
Google is your best friend. Search Google and groups.google.com
(newsgroups).
I would recommend not implementing a custom back button because it becomes
very cumbersome. Code your pages so that the browsers back button continues
to function. This might take a little effort, but it will result in a
better experience for your users.

Best regards,
Jeffrey Palermo
"Markus McGee" <Ma*********@discussions.microsoft.com> wrote in message
news:BA**********************************@microsof t.com...
Is there a website that covers this particular topic? I've been trying to
look up this information at the local Borders(s) but can't find anything. I know it's common knowledge but I don't remember running into this in ASP.
The thingy that I'm running into know is page history. If I create a back
buttion and use the Referring page to go back...I can only go back so
far.Everytime I post to a page I save the referring url and us this to do a back like action. Actually one page deep. What If I wanted to back all the way out of the application using the my back button or the IE Back buttion?
Last question...I hope.

Markus McGee
"Jeffrey Palermo [MCP]" wrote:
Yep. HttpContent.Current.Items
"Markus McGee" <Ma*********@discussions.microsoft.com> wrote in message
news:0C**********************************@microsof t.com...
You mean to use HttpContext right?

Markus

"Jeffrey Palermo [MCP]" wrote:

> Markus,
> This is expected behavior. When you click back, you reexecute the > previous request, and that request did the redirecting. You'll have to
use
> another method if you want to be able to go back and change your

selection.
>
> Instead of doing a redirect, you can either display the correct
content with
> a user control on Page A, or you can put the selection in Page.Items
> collection and do a Server.Transfer to Page B.
>
> Best regards,
> Jeffrey Palermo
>
> "Markus McGee" <Markus Mc***@discussions.microsoft.com> wrote in
message > news:49**********************************@microsof t.com...
> > Hi all,
> >
> > I have a quick question...I believe. On my web page, call it page A, I
> > have a drop downlist with runat server enabled. When the drop

downlist
> > change event occurs it repopulates a table depending on the value

selected
> on
> > page A. After I redirect page A to some other page, call it page
B, and
> use
> > the IE Back button to change my selection on the page A the page
is > forwarded
> > to page B without rebuilding the table on page A and allowing me to > redirect
> > my request. My question is what am I doing wrong? Is there a

setting on
> web
> > page A that I should know about to prevent this?
>
>
>


Nov 18 '05 #7
Wow...the Google new group has alot of answers and suggestions. I didn't
know they existed. The solution to my problem was to change the " HTML
select " into an "ASP.NET DropDownList". From what I can tell the back
button problem has gone away. Amazing. No further questions.

Markus McGee.

"Jeffrey Palermo [MCP]" wrote:
Markus,
Google is your best friend. Search Google and groups.google.com
(newsgroups).
I would recommend not implementing a custom back button because it becomes
very cumbersome. Code your pages so that the browsers back button continues
to function. This might take a little effort, but it will result in a
better experience for your users.

Best regards,
Jeffrey Palermo
"Markus McGee" <Ma*********@discussions.microsoft.com> wrote in message
news:BA**********************************@microsof t.com...
Is there a website that covers this particular topic? I've been trying to
look up this information at the local Borders(s) but can't find anything.

I
know it's common knowledge but I don't remember running into this in ASP.
The thingy that I'm running into know is page history. If I create a back
buttion and use the Referring page to go back...I can only go back so
far.Everytime I post to a page I save the referring url and us this to do

a
back like action. Actually one page deep. What If I wanted to back all

the
way out of the application using the my back button or the IE Back

buttion?

Last question...I hope.

Markus McGee
"Jeffrey Palermo [MCP]" wrote:
Yep. HttpContent.Current.Items
"Markus McGee" <Ma*********@discussions.microsoft.com> wrote in message
news:0C**********************************@microsof t.com...
> You mean to use HttpContext right?
>
> Markus
>
> "Jeffrey Palermo [MCP]" wrote:
>
> > Markus,
> > This is expected behavior. When you click back, you reexecute the > > previous request, and that request did the redirecting. You'll have to use
> > another method if you want to be able to go back and change your
selection.
> >
> > Instead of doing a redirect, you can either display the correct content with
> > a user control on Page A, or you can put the selection in Page.Items
> > collection and do a Server.Transfer to Page B.
> >
> > Best regards,
> > Jeffrey Palermo
> >
> > "Markus McGee" <Markus Mc***@discussions.microsoft.com> wrote in message > > news:49**********************************@microsof t.com...
> > > Hi all,
> > >
> > > I have a quick question...I believe. On my web page, call it page A, I
> > > have a drop downlist with runat server enabled. When the drop
downlist
> > > change event occurs it repopulates a table depending on the value
selected
> > on
> > > page A. After I redirect page A to some other page, call it page B, and
> > use
> > > the IE Back button to change my selection on the page A the page is > > forwarded
> > > to page B without rebuilding the table on page A and allowing me to > > redirect
> > > my request. My question is what am I doing wrong? Is there a setting on
> > web
> > > page A that I should know about to prevent this?
> >
> >
> >


Nov 18 '05 #8

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

Similar topics

1
by: ODB | last post by:
I have to Listbox's one I selected the contents of the other and i the other i Response.Redirect to a different site, but when i hit back from the site, my listbox is not valid, right before i...
2
by: Sam Miller | last post by:
I have a submit button. In the event handler for that button I connect to database and write all the control values to the db. Then I have a response.redirect after the Conn.Close to leave the...
3
by: Luke Xu | last post by:
In Heyperlink, you can specify the target of URL, such as _blank. But how can I specify the target in Response.Redirect? Thanks Luke
5
by: venner | last post by:
I'm having an issue with an ASP.NET website after upgrading to ASP.NET 2.0. The website makes use of a central authentication service (CAS) provided at the university I work for. Each page checks...
2
by: AMDRIT | last post by:
Hello Everyone, I am having an issue where an event appears to be fired repeatedly where I only expect it to be fired once. See below for objects and behaviors. I have a control that contains...
5
by: =?Utf-8?B?d2ViZ3V5QGNvbW11bml0eS5ub3NwYW0=?= | last post by:
We have been running into some problems where using Response.Redirect causes the page to hang and it never actually redirects. Here's the scenario: User opens the page, selects an item from the...
1
by: asnowfall | last post by:
After logging-in, I am not able to redirect to target.aspx. I am using System.Web.UI.WebControls.Login class in a simple sample code for Form based authentication . Redirecting to target.aspx...
5
by: developApps | last post by:
This problem only occurs in Firefox.... I have a page (page 1) with a link button. The link button uses response.redirect to pass parameters and take me to a second page (page 2) when the...
2
by: Num GG | last post by:
Hi all, Given this simple code: <div id="mydiv" ondblclick="alert(id)" //parent div Div4 bla bla bla bla on div 4 <div id="myembeddeddiv"ondblclick="alert(id)" // child div...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...

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.