Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

DataList ItemCommand CommandArgument returning old (cached?) value

Posted on 2006-06-27
2
Medium Priority
?
1,971 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
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Loops Section Overview
Suggested Courses

877 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