473,804 Members | 3,228 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1676
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***@discussio ns.microsoft.co m> wrote in message
news:49******** *************** ***********@mic rosoft.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***@discussio ns.microsoft.co m> wrote in message
news:49******** *************** ***********@mic rosoft.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***@discussio ns.microsoft.co m> wrote in message
news:49******** *************** ***********@mic rosoft.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.Cur rent.Items
"Markus McGee" <Ma*********@di scussions.micro soft.com> wrote in message
news:0C******** *************** ***********@mic rosoft.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***@discussio ns.microsoft.co m> wrote in message
news:49******** *************** ***********@mic rosoft.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.Cur rent.Items
"Markus McGee" <Ma*********@di scussions.micro soft.com> wrote in message
news:0C******** *************** ***********@mic rosoft.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***@discussio ns.microsoft.co m> wrote in message
news:49******** *************** ***********@mic rosoft.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.c om
(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*********@di scussions.micro soft.com> wrote in message
news:BA******** *************** ***********@mic rosoft.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.Cur rent.Items
"Markus McGee" <Ma*********@di scussions.micro soft.com> wrote in message
news:0C******** *************** ***********@mic rosoft.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***@discussio ns.microsoft.co m> wrote in
message > news:49******** *************** ***********@mic rosoft.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.c om
(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*********@di scussions.micro soft.com> wrote in message
news:BA******** *************** ***********@mic rosoft.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.Cur rent.Items
"Markus McGee" <Ma*********@di scussions.micro soft.com> wrote in message
news:0C******** *************** ***********@mic rosoft.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***@discussio ns.microsoft.co m> wrote in message > > news:49******** *************** ***********@mic rosoft.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
1245
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 redirect i clearselection on listbox2 but the selection is still there when i return from the other site , her is some code, please help!!!! private void ListBox1_SelectedIndexChanged(object sender, System.EventArgs e) { string tStr;
2
1882
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 application and just go to another page. No matter where I put this Response.Redirect, it causes a blank row to be inserted into the database in addition to the intended row. Its like the Response.Redirect causes a postback and all the controls...
3
5636
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
4575
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 a session variable, and if it is not present, does a Response.Redirect to a webpage for the CAS passing a url parameter for the url to post back to. The CAS provides a page for the user to log into, validates the username and password, and then...
2
2556
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 a treeview, it creates the TopLevel object and subscribes to the ObjectChanged Event. When the event is fired, I rebuild the treeview. If I change data from TopLevelData, the event is fired just once. When I change data in ChildObject, the...
5
4877
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 drop down list and then clicks one of a couple of buttons to send them off to another page. We do a little bit of validation in the Event Handler and then do a Response.Redirect off to the next page. Then the page just sits there and never...
1
2533
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 works when I use either "http://localhost:8080/" or "http://IP:8080", but not when I use machine name in URL, example http://machine-name:8080 I overloaded OnLoggingIn(), Authenticate() and OnLoggedIn(); and none of them got called; and this...
5
4576
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 lnkButton_click event is fired. Most of the time, the functionality works. However, if a user clicks any other button on the page and then comes back to page 1 using the browser's back button, the link button redirects to that last page. Meaning, the...
2
2782
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 Div4.1 bla bla bla on embedded Div </div> </div>
0
9588
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,...
0
10589
Oralloy
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...
1
10327
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,...
1
7625
isladogs
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...
0
6857
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5527
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...
0
5663
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4302
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
3
2999
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 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...

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.