Solved

DataList ItemCommand CommandArgument returning old (cached?) value

Posted on 2006-06-27
2
1,968 Views
Last Modified: 2008-02-01
In ASP.NET v1.1 using VB.NET, I have a DataList, with a column they can click to view details of the row.  Here is the html that creates the linkbutton:

<TD>
      <asp:LinkButton id=lnkView runat="server"
            CommandArgument='<%# DataBinder.Eval(Container, "DataItem.pmwrkord_code") %>'
            CommandName="View">View
      </asp:LinkButton>
</TD>

Then in my VB code in the ItemCommand handler for the datalist, I get the value out with the command:

sWO_code = e.CommandArgument

This has been working for over a year, and still works for most users.  Today, a user emailed me, and when he clicks on View the first time, it works right.  If he then clicks on View for a second row, it shows him the same first row, not the new row.  If I have him delete his temporary internet files (clear his cache), then click on a new row it works right, but if he then clicks on a new row, he gets the row he got right after clearing his cache.

Because this is working for everyone else, I assume this must be something with the setup of his computer.  Rebooting his computer did not fix the problem.  He is not aware of any changes to his system.

Does anyone have any ideas what could be causing this, or have ideas to help me track it down?

Thank you.
0
Comment
Question by:smoee
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 5

Author Comment

by:smoee
ID: 17003207
Sorry, I diagnosed the problem wrong.  

e.CommandArgument is returning the correct value.  The problem is the page that I open was opening a cached version, and not repopulating using the new value which I had placed in a session variable.

I fixed the problem by telling the page not to chache.
0
 

Accepted Solution

by:
EE_AutoDeleter earned 0 total points
ID: 17143249
smoee,
Because you have presented a solution to your own problem which may be helpful to future searches, this question is now PAQed and your points have been refunded.

EE_AutoDeleter
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question