Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

DataList ItemCommand CommandArgument returning old (cached?) value

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

705 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