473,387 Members | 1,512 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,387 software developers and data experts.

ASP .NET Panels/Back Button Problem! NEED HELP ASAP!

Hey all,

I have a ASP .NET webpage which contains several panels. When I click a
button on the first "panel" page, it postsback to the same page, and I
switch the visibility of the panels accordingly. BUT, when I click the back
button, the same panel shows up, not the "previous" panel. I need to fix
this ASAP! I have tried expiring the page, but then I seem to lose
viewstate on the previous page (panel). How can I do this, I see a lot of
sites saying to use panels, but this is a major problem!

Thanks for any help!

Chad
Nov 18 '05 #1
2 1589
EMW
I have a simular thing, but no problems.

sub Button1(....) handles button1.click
'this button is on panel2
panel2.visible=false
panel1.visible = true

end sub

sub Button2(...) handles button2.click
'this button is on panel1

panel1.visible=false
panel2.visible=true
end sub

rg,
Eric
"Chad A. Beckner" <Ch*********@ProspectiveLink.com> schreef in bericht
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hey all,

I have a ASP .NET webpage which contains several panels. When I click a
button on the first "panel" page, it postsback to the same page, and I
switch the visibility of the panels accordingly. BUT, when I click the back button, the same panel shows up, not the "previous" panel. I need to fix
this ASAP! I have tried expiring the page, but then I seem to lose
viewstate on the previous page (panel). How can I do this, I see a lot of
sites saying to use panels, but this is a major problem!

Thanks for any help!

Chad

Nov 18 '05 #2
But what happens when user clicks the "Back" button of the browser? Does
the correct panels show up? Is there anything special that I need in the
Page_Load event (or other event?)

Chad

"EMW" <SomeOne@MicroSoftdotCom> wrote in message
news:40**********************@dreader2.news.tiscal i.nl...
I have a simular thing, but no problems.

sub Button1(....) handles button1.click
'this button is on panel2
panel2.visible=false
panel1.visible = true

end sub

sub Button2(...) handles button2.click
'this button is on panel1

panel1.visible=false
panel2.visible=true
end sub

rg,
Eric
"Chad A. Beckner" <Ch*********@ProspectiveLink.com> schreef in bericht
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hey all,

I have a ASP .NET webpage which contains several panels. When I click a button on the first "panel" page, it postsback to the same page, and I
switch the visibility of the panels accordingly. BUT, when I click the

back
button, the same panel shows up, not the "previous" panel. I need to fix this ASAP! I have tried expiring the page, but then I seem to lose
viewstate on the previous page (panel). How can I do this, I see a lot of sites saying to use panels, but this is a major problem!

Thanks for any help!

Chad


Nov 18 '05 #3

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

Similar topics

3
by: JJ | last post by:
Hi All, I have 2 panels that have controls on them in a win form. On Init of app I hide panel2 and show panel1, no problem. On button Click I hide panel 1 and show panel 2, panel 1 disappears...
4
by: BBM | last post by:
I'm trying to set up a form with two panels divided by a Splitter control. I can make the Splitter work in the situations described in the documentation (Listbox or TreeView on left w/Dock set to...
4
by: Chris Ruegsegger | last post by:
I have a registration type page that asks a series of questions but does so using Panels to display only a couple at a time. I have a Next and Back button on each panel for navigation purposes. ...
2
by: Lerp | last post by:
Hi all, I was just playing around with some code to hide/show panels and I discovered that I am losing a variable's value when my sub is called from a button in paneltwo. Why is this? Cheers...
4
by: Miguel Dias Moura | last post by:
Hello, i have 5 panels in an ASP.net / VB page. The panel 1 is visible the other 4 are NOT visible. I also have 5 images: image 1, image 2, ..., image5. When i click one of the images,...
2
by: JJ | last post by:
Hi, How can I lay one panel over the other? I want to switch back and forth between panels that overlap. If I do this and make one invisible can I still load controls with data if that...
3
by: Jonas | last post by:
Hi! I have aspx-page where I use multiple panels to make room for more controls than would otherwise fit onto one page. On submit, the controls on all panels, visible or not, should be validated...
1
by: Demetri | last post by:
I'm trying to determine if we want to use panels or user controls for our pages. Our primary concern is performance, page loading and posting speed. To illustrate my question, lets use the...
2
by: randy1200 | last post by:
I'm working in Visual Studio 2005 and C#. I have a WinForms application with two panels (left panel and right panel). I have a textbox on the left panel, and a button on the right panel. I'd like...
0
by: aarepasky | last post by:
I am using ASP.NET 2.0 and C#. I am creating a page with multiple panels on it. In the panels are user controls that have the screen layout to input data. I only show one panel at a time by...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
marktang
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,...
0
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
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,...

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.