Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / April 2008

Tip: Looking for answers? Try searching our database.

Changing Item Template views.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Miguel - 21 Apr 2008 15:16 GMT
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 "<a>" 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.
Andy - 21 Apr 2008 17:02 GMT
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?
Miguel - 21 Apr 2008 17:55 GMT
> 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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.