Changing Item Template views.

Changing Item Template views.

am 21.04.2008 16:16:57 von Miguel

Hello,

I have a DataList with the results of a search. The ItemTemplate
of the DataList is a Repeated template with all the records.

I have a Link Button with a Command Name called Select that allows me
to show the user extended information about the record. ( This view is
the Selected Item template view ).

Here I have a "Back" Button. ( an HTML "" anchor ).

Either setting a "JavaScript:history.back()" event or
"document.form1.submit();" I go back to the previous view but once I
am on that view I have only the Selected Item view on each button. It
seems that the server "Remember" that my previous choice was "--> go
to Selected Item Template".

Do you know how can I make a "Back" button, and keep on paging normaly
afterwards?.

Thank you.

Miguel.

Re: Changing Item Template views.

am 21.04.2008 18:02:24 von Andy

Sounds like you are paging through Internet Explorer's page cache and
history file.

Have you tried setting the page content to expire immediately in IIS
for the website?

Re: Changing Item Template views.

am 21.04.2008 18:55:08 von Miguel

On 21 abr, 18:02, Andy wrote:
> Sounds like you are paging through Internet Explorer's page cache and
> history file.
>
> Have you tried setting the page content to expire immediately in IIS
> for the website?


Thanx Andy for your answer.

But the problem is not on my Internet Explorer.

The matter is that when I use a linkButton when a CommandName="Select"
it goes to the SelectedItem Template, and I don't know how to go back
to the Item Template.