Connecting Tech Pros Worldwide Forums | Help | Site Map

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

Chad A. Beckner
Guest
 
Posts: n/a
#1: Nov 18 '05
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



EMW
Guest
 
Posts: n/a
#2: Nov 18 '05

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


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" <ChadBeckner@ProspectiveLink.com> schreef in bericht
news:%23Skc4PKVEHA.1036@TK2MSFTNGP12.phx.gbl...[color=blue]
> 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[/color]
back[color=blue]
> 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
>
>[/color]


Chad A. Beckner
Guest
 
Posts: n/a
#3: Nov 18 '05

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


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:40d2081e$0$84231$5fc3050@dreader2.news.tiscal i.nl...[color=blue]
> 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" <ChadBeckner@ProspectiveLink.com> schreef in bericht
> news:%23Skc4PKVEHA.1036@TK2MSFTNGP12.phx.gbl...[color=green]
> > Hey all,
> >
> > I have a ASP .NET webpage which contains several panels. When I click[/color][/color]
a[color=blue][color=green]
> > 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[/color]
> back[color=green]
> > button, the same panel shows up, not the "previous" panel. I need to[/color][/color]
fix[color=blue][color=green]
> > 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[/color][/color]
of[color=blue][color=green]
> > sites saying to use panels, but this is a major problem!
> >
> > Thanks for any help!
> >
> > Chad
> >
> >[/color]
>
>[/color]


Closed Thread