Connecting Tech Pros Worldwide Forums | Help | Site Map

question on refresh

Mark
Guest
 
Posts: n/a
#1: Nov 17 '05
Hi,

I don't know if I'm just missing something obvious, but when running my app,
not matter what page I'm on, when I hit 'refresh' on my browser, it takes me
back to my homepage.


I'm using global.asax and webconfig to fire some session onstart events and
to set a few variables (connstring and such) and also for forms
authentication.

I don't think I modified anything to cause this.. I didn't notice the
problem till now, as I finally have enough of it completed that I can view
other pages (lol).

Any idea on what is causing this problem?



Steve C. Orr [MVP, MCSD]
Guest
 
Posts: n/a
#2: Nov 17 '05

re: question on refresh


My first guess would be that you're using Server.Transfer to send the user
between pages. This causes the original URL to remain in the browsers
address bar. Therefore when you tell the browser to refresh, that's the
address it refreshes.

My second guess would be that you're using frames, and the browser simply
refreshes the top frameset.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com



"Mark" <pyedubois@hotmail.com> wrote in message
news:vorntk2h50iq0a@corp.supernews.com...[color=blue]
> Hi,
>
> I don't know if I'm just missing something obvious, but when running my[/color]
app,[color=blue]
> not matter what page I'm on, when I hit 'refresh' on my browser, it takes[/color]
me[color=blue]
> back to my homepage.
>
>
> I'm using global.asax and webconfig to fire some session onstart events[/color]
and[color=blue]
> to set a few variables (connstring and such) and also for forms
> authentication.
>
> I don't think I modified anything to cause this.. I didn't notice the
> problem till now, as I finally have enough of it completed that I can view
> other pages (lol).
>
> Any idea on what is causing this problem?
>
>[/color]


Mark
Guest
 
Posts: n/a
#3: Nov 17 '05

re: question on refresh


I should have stated, I am using frames--a header frame and a content frame
(titled 'main'). Is there any way around the refresh problem in this
situation? I only want to refresh the 'main' frame.
"Steve C. Orr [MVP, MCSD]" <Steve@Orr.net> wrote in message
news:urizJp3kDHA.2776@tk2msftngp13.phx.gbl...[color=blue]
> My first guess would be that you're using Server.Transfer to send the user
> between pages. This causes the original URL to remain in the browsers
> address bar. Therefore when you tell the browser to refresh, that's the
> address it refreshes.
>
> My second guess would be that you're using frames, and the browser simply
> refreshes the top frameset.
>
> --
> I hope this helps,
> Steve C. Orr, MCSD, MVP
> http://Steve.Orr.net
> Hire top-notch developers at http://www.able-consulting.com
>
>
>
> "Mark" <pyedubois@hotmail.com> wrote in message
> news:vorntk2h50iq0a@corp.supernews.com...[color=green]
> > Hi,
> >
> > I don't know if I'm just missing something obvious, but when running my[/color]
> app,[color=green]
> > not matter what page I'm on, when I hit 'refresh' on my browser, it[/color][/color]
takes[color=blue]
> me[color=green]
> > back to my homepage.
> >
> >
> > I'm using global.asax and webconfig to fire some session onstart events[/color]
> and[color=green]
> > to set a few variables (connstring and such) and also for forms
> > authentication.
> >
> > I don't think I modified anything to cause this.. I didn't notice the
> > problem till now, as I finally have enough of it completed that I can[/color][/color]
view[color=blue][color=green]
> > other pages (lol).
> >
> > Any idea on what is causing this problem?
> >
> >[/color]
>
>[/color]


Steve C. Orr [MVP, MCSD]
Guest
 
Posts: n/a
#4: Nov 17 '05

re: question on refresh


That is a difficult problem to solve.
This is one of the (many) reasons that frames should be avoided.
Usually you can partition logical sections of your page into web controls
instead of using frames. It's normally a better and more object oriented
aproach
Here's more info:
http://msdn.microsoft.com/library/de...ercontrols.asp
http://msdn.microsoft.com/library/de...ercontrols.asp
http://msdn.microsoft.com/library/de...ebControls.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com



"Mark" <pyedubois@hotmail.com> wrote in message
news:vos1iolbd29840@corp.supernews.com...[color=blue]
> I should have stated, I am using frames--a header frame and a content[/color]
frame[color=blue]
> (titled 'main'). Is there any way around the refresh problem in this
> situation? I only want to refresh the 'main' frame.
> "Steve C. Orr [MVP, MCSD]" <Steve@Orr.net> wrote in message
> news:urizJp3kDHA.2776@tk2msftngp13.phx.gbl...[color=green]
> > My first guess would be that you're using Server.Transfer to send the[/color][/color]
user[color=blue][color=green]
> > between pages. This causes the original URL to remain in the browsers
> > address bar. Therefore when you tell the browser to refresh, that's the
> > address it refreshes.
> >
> > My second guess would be that you're using frames, and the browser[/color][/color]
simply[color=blue][color=green]
> > refreshes the top frameset.
> >
> > --
> > I hope this helps,
> > Steve C. Orr, MCSD, MVP
> > http://Steve.Orr.net
> > Hire top-notch developers at http://www.able-consulting.com
> >
> >
> >
> > "Mark" <pyedubois@hotmail.com> wrote in message
> > news:vorntk2h50iq0a@corp.supernews.com...[color=darkred]
> > > Hi,
> > >
> > > I don't know if I'm just missing something obvious, but when running[/color][/color][/color]
my[color=blue][color=green]
> > app,[color=darkred]
> > > not matter what page I'm on, when I hit 'refresh' on my browser, it[/color][/color]
> takes[color=green]
> > me[color=darkred]
> > > back to my homepage.
> > >
> > >
> > > I'm using global.asax and webconfig to fire some session onstart[/color][/color][/color]
events[color=blue][color=green]
> > and[color=darkred]
> > > to set a few variables (connstring and such) and also for forms
> > > authentication.
> > >
> > > I don't think I modified anything to cause this.. I didn't notice the
> > > problem till now, as I finally have enough of it completed that I can[/color][/color]
> view[color=green][color=darkred]
> > > other pages (lol).
> > >
> > > Any idea on what is causing this problem?
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]


Closed Thread