|
Home > Archive > Microsoft Content Management Server > August 2005 > Ugly URLS and form postback
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Ugly URLS and form postback
|
|
| Victor-Seán 2005-08-31, 7:49 am |
| Hi all,
I'm completely stumped by a problem we are encountering with a cutom
searchform we have built on a project here. The main issue lo and
behold is the "Warning: Page has expired" issue that happens when
postbacks occur within the form, the user clicks a result and then
tries to use the back button. But this only happens in IE, not an issue
in Firefox. I searched around for a solution to this, tried to persist
the form url in the address bar, disabled/enabled viewstate, set all
kinds of output caching directives and nothing works.
Where the ugly url issue is involved is that we set the postback action
of the form as follows:
<script type="text/javascript">
<!--
__CMS_PostbackForm.action = '<% =
CmsHttpContext.Current.ChannelItem.URl %>';
// -->
</script>
The above was used to avoid urgly urls on postback e.g.
/Templates/*****etc and Stefans HTTPModule wasn't an option for our
live server. This may be a general IE issue but surely someone else in
this group has had similar issues in CMS?
Thanks in advance for any help,
Vic
| |
| Stefan [MSFT] 2005-08-31, 7:49 am |
| Hi Victor,
that is a normal behaviour for IE.
When a page is displayed from a POST request it needs to do the POST again
in order to display it again.
As this question is not MCMS related you should post it to an IE related
newsgroup. If a workaround exists, then these people will know.
Cheers,
Stefan
--
This posting is provided "AS IS" with no warranties, and confers no rights
New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
----------------------
"Victor-Seán" <vic@ireland.com> wrote in message
news:1125485197.963323.224030@f14g2000cwb.googlegroups.com...
> Hi all,
> I'm completely stumped by a problem we are encountering with a cutom
> searchform we have built on a project here. The main issue lo and
> behold is the "Warning: Page has expired" issue that happens when
> postbacks occur within the form, the user clicks a result and then
> tries to use the back button. But this only happens in IE, not an issue
> in Firefox. I searched around for a solution to this, tried to persist
> the form url in the address bar, disabled/enabled viewstate, set all
> kinds of output caching directives and nothing works.
>
> Where the ugly url issue is involved is that we set the postback action
> of the form as follows:
> <script type="text/javascript">
> <!--
> __CMS_PostbackForm.action = '<% =
> CmsHttpContext.Current.ChannelItem.URl %>';
> // -->
> </script>
>
> The above was used to avoid urgly urls on postback e.g.
> /Templates/*****etc and Stefans HTTPModule wasn't an option for our
> live server. This may be a general IE issue but surely someone else in
> this group has had similar issues in CMS?
>
> Thanks in advance for any help,
> Vic
>
| |
| Victor-Seán 2005-08-31, 7:49 am |
| Thanks Stefan, I figured as much but wanted to be sure. I posted again
in the IE group.
|
|
|
|
|